Snippets

Some code snippets in various programming languages I wrote and don’t became a project. Just some experiments or stuff came into my mind and I want to try. Normally not active development and no documentation here, so read the source.

HTML

Periodic Table

A Periodic Table with some special effects based only on HTML and CSS3.

JavaScript

Chroma-Key

A JavaScript based Chroma-Key. Takes a video as input and outputs the chroma keyed result on a HTML 5 canvas. This actually does it’s job, but sometimes it is very slow. For serious chroma-keying with JavaScript I would recommend Seriously.js (linguistic joke :D).

Programs

bootimg.py

Bootimg.py is a tool to take Android’s boot.img apart. It displays also all meta information of the specified boot.img.

Usage: bootimg.py <image file>.

getmem.py

Getmem.py is a tool to get a full memory dump for a program running with a specified pid. It uses the GNU-Debugger and is useful for debugging and reverse engineering.

Usage: getmem.py <pid> <output directory>.

imagetools.sh

If you have a hard drive dump for example and you want to access the partitions on this dump this tool is the tool you are searching for. It could create and partition images as well as format or mount partitions on images. It has a menu based interface so it would not be too hard to use.

portscanner.py

Just wrote this because I was abroad and forgot to install nmap but I wanted to scan the network. It uses the Connect-Scan method. For serious portscanning I would recommend you nmap.

Usage: portscanner.py <ip address> <start port> <end port>.

Python

Fractals

Just checkout my blog post about some fun with fractals. An awesome obfuscated Python snippet looks like a Mandelbrot fractal which creates those and my own small python script which generates beautiful julia fractals.

GPlayer

This is just a small wrapper around GStreamer’s Python bindings which makes them more intuitive and brings the ability to play out of Python’s file objects.

Source, Example,

DNS

DNS protocol implementation in pure Python. Please check the source for more information.

TUN/TAP

Small wrapper around /dev/net/tun to control TUN and TAP devices out of Python. Please check the source for more information.

Sniffer

A simple network sniffer based on Unix RAW Sockets. It could decode Ethernet Frames, IP Packages, ICMP Packages and TCP/UDP Segments. Have a look at the blog post or the source if you want to know more.

Facebook

0.facebook.com Wikipedia proxy

Use a Facebook note to access Wikipedia pages over 0.facebook.com for free. Check the blog post.