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
@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 / 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 / fuzzer.py
Created September 24, 2016 18:14
Serial fuzzer written in Python3
#!/usr/bin/env python3
import serial
import binascii
#open serial
ser = serial.Serial(
port='/dev/tty.usbserial-A6005kdh',
baudrate=115200,
timeout=0.005
@RandomInsano
RandomInsano / 1b-button1.bin.base64
Last active May 29, 2023 09:18
Reverse Engineering an Airoha AB1127-based Bluetooth Selfie button
AAEAAElGAxAHAQBPAA0AXAA3AJMAYQD0ACUBGQAIASEAAgF7AAABIwEJAiwAawKXApoFMQCHBbgA6AagABEGsQACBrMABwa6AAcGwQAAN1cAAkUCAAAAAAAAAB5XAfnRLT9oEFb2aLEcn0FIo7WrrAMByR8EAVL6UenPKMtXW5xHbzFVi7Ge1DcKipEEAf8CAAFRVy8ZntSD/AwAAAAAAFRaVU1JIFNFTEZJRSBTVElDSwAAQCUAIDRWBJQAMiL8AgQ4GBgZgwEAAAAAAAAAAQAYAAATCVRaVU1JIFNFTEZJRSBTVElDSwMDJBEAAAAAAAAAG1YEAgSdBgE6CgEhEAHUCQYIZGQU8dQUAbsnAS4CBiz//y3/xXRWAgFBZQEKq1aJVhYC/v4CBAJYADwWAz6AUAEBUA0CBgYgAQANAQABAQMDAQAPAQMFAw8PFgEBAwQB8TYBAwUCBQUCAQMEAfIJAYEEDgJfAqECSQABAjMCdQK2ZgENAQP/AA0DAQ0BEv8ADQH/AA0C/wANA/8ADQT/ABaWgV2fg2kokTEjkTFtgUl6g2rtg2sJAAAAgU0bgoFxg2uFg2u1g2u6AAAAgpMKg2vTg2v3g2wLg2vfgv2EgpJXg2vrg2ymg2y9g2K4g097g2zMg2zog2ujgd9bg2OUgeIDgeESgeGFgeHBg2n2g2mIg2Lkgdv6g2w/gd3Yg2o3g172gd/6g17KgS+sg2z+g20Dg20IgTGIsVYRAQMFAQICDQQAAAEAAAEAAAEAAAEhAQMYAxvJUQEBgAEPLwC7qwFgrVsArgNsLf/FEzaDYcmDbQ2BX6GCZaeDYpWCGXAAAAAAAACCP9IAAAAAAACRMzyCdkWCdkaDXfeDZHaC/WWBNp62VwABAAAAAACVAosxAAASAW5cEgAN3JAABKXgRAjwAgDUW5AADZp0BPACAVKgAgDeDn4BfzcSAA7t72A7fgF/NxIADUyQADAY7vCj7/D1go6DdZMAo6Oj4JAAMBi0Ywvg/qPg/xIADJmA
@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 / 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 / DLink-BDSS16+Display.md
Last active October 17, 2015 01:24
How to play with shift registers from a specific network switch
#!/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