Skip to content

Instantly share code, notes, and snippets.

View RandomInsano's full-sized avatar

Edwin Amsler RandomInsano

  • AWS Thinkbox
  • Winnipeg, Canada
View GitHub Profile
#!/usr/bin/env python
'''
Tool to read game media type header information from the original
XBOX's xbe executables.
In retrospect, it would have been much less fiddly to write this in C/C++
Info taken from here:
http://www.caustik.com/cxbx/download/xbe.htm
@RandomInsano
RandomInsano / DLink-BDSS16+Display.md
Last active October 17, 2015 01:24
How to play with shift registers from a specific network switch
@RandomInsano
RandomInsano / mayaOnUbuntu.sh
Last active December 19, 2015 20:08 — forked from heiths/mayaOnUbuntu.sh
Install Maya 2013 on Ubuntu Server 12.04 as easily as possible
#!/bin/bash
# Heith Seewald 2012
# Edwin Amsler 2013
#Feel free to extend/modify to meet your needs.
#Maya on Ubuntu v.1
#This is the base installer... I’ll add more features in later versions.
#if you have any issues, feel free email me at heiths@gmail.com (or Edwin at EdwinGuy@Gmail.com)
#### Lets run a few checks to make sure things work as expected.
@RandomInsano
RandomInsano / ToyCar.rst
Last active December 20, 2015 06:20
Making a toy car autonomous via Arduino/RPi

The plan this time around is to take a one-button remote control car and make it autonomous so it can wonder the house on its own. One day maybe I'll have it map things using a Raspberry Pi Zero, but for now it will be Arduino controlled and use an ultra-sonic sensor to 'see'.

The toy car itself is pretty simple, and seems to be designed to be modular with the control chip being on a daughter board. All of the control for lights, motor and sound run to that board-to-board connector making it easy to hack! For those looking for their own, it seems to run under the name "My First RC Car" and it's manufactured by a company called Parent's which is out of China. It has three following delightful traits:

  1. Six transistor-controlled LEDs (no idea amperage ability, 3 channels with two LEDs each)
  2. A speaker with amplifier (for vroom-vroom noises)
  3. A single momentary switch just for beep-beep noises
  4. A one-way single button radio
  5. A zainy drive system that can go forward or steer to the left (no reversing p
@RandomInsano
RandomInsano / install_me_modo_deps.sh
Last active August 9, 2016 20:41
All those wonderful packages Modo needs on a headless Ubuntu 16.04 install
#!/bin/sh
sudo apt-get install -y libgl1-mesa-dev libglu1-mesa-dev libsm6 libxrandr2 libxcursor libxcursor1 libxft2 libxi6 libxinerama1
@RandomInsano
RandomInsano / scale.py
Last active September 20, 2016 01:26
Playing around with xwiimote to make a weigh scale
#!/usr/bin/env python
import errno
from sys import stdout
from time import sleep
from select import poll, POLLIN
from inspect import getmembers
import xwiimote
def get_device(entry):
@RandomInsano
RandomInsano / copy.sh
Last active January 14, 2017 20:42
Simple scipt for backing up some floppies
#!/bin/bash
# usage: <drive path> <folder name>
#
# ex: copy.sh /dev/floppy0 "Where in the World is Carmen Sandeigo"
let a=0
echo "Creating directory for '$2'"
mkdir -p "$2"
@RandomInsano
RandomInsano / inject-key.sh
Last active January 23, 2017 15:50
Tool for injecting my keys places
#!/bin/sh
set +e
if [ "" = "$1" ]; then
echo "You need to specify a host dummy"
exit
fi
cat ~/.ssh/id_rsa.pub | ssh $1 "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys"
@RandomInsano
RandomInsano / EpsonM31a.rst
Last active April 24, 2017 03:22
Notes on hacking Epson's M-31a Printer Module

Reverse Engineering the Epson M-31a Printer Module

Electrical

Well, this guy seems pretty common to different printing calculators. I managed to find two different makes with the same module while shopping around at Value Village. The rule is to buy two (one to break to pieces, one to hack) but I broke my own rule along with the calculator and I now have to hunt down a third.

The pinout for the module from left to right is this:

@RandomInsano
RandomInsano / ntc-chp-files.md
Last active June 16, 2018 23:31
Trying to reverse engineer NTC's CHIP image files

The first 4MB of the file is a mystery, but the UBIFS seems to be stored uncompressed in the file and the UBIFS system is also uncompressed. You can find config files and others in the dump

UBIFS header starts with hex 31 18 10 06. I found this at offset 0x6593A, but I'm having trouble because the chip doesn't come with the nandsim kernel module.

I'm trying to follow these tutorials to mount and extract the root file system:

The partitions for UBIFS on the CHIP are the following: