Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am red-green on github.
  • I am nwx (https://keybase.io/nwx) on keybase.
  • I have a public key whose fingerprint is C441 D86F 0E1D 63F6 02A3 D4CC 7C3C 155D C04F FEDE

To claim this, I am signing this object:

@vampjaz
vampjaz / Circlezzz2.pde
Created October 20, 2015 16:26
Cool program
void setup() {
size(displayWidth,displayHeight);
background(0);
colorMode(HSB);
}
float angle = 0;
float col = 0;
float increment = 0.7;
float linelen = 10;
@vampjaz
vampjaz / output.txt
Created November 11, 2015 02:56
This zip file was encrypted with the password vjht123jltccf and all of these apparently work to decrypt it
$ python zipcracker.py test.zip top_10000.txt 32
Thread 18 found a match: cheese
Thread 28 found a match: qwaszx
Thread 29 found a match: voyager
Thread 28 found a match: freaky
Thread 30 found a match: trumpet
Thread 23 found a match: napoleon
Thread 17 found a match: marcel
Thread 24 found a match: freak
Thread 21 found a match: asdzxc
@vampjaz
vampjaz / count.mbl
Created November 14, 2015 20:29
Marbelous counting program
.. @0 .. @1 .. @2 .. @3 .. @4 .. @5 .. @6 .. @7 .. @8 .. @9 .. @A .. @B .. @C .. @D .. @E .. @F .. @G .. @H .. @I .. @J
.. 00 .. 00 .. 00 .. 00 .. 00 .. 00 .. 00 .. 00 .. 00 .. 00 .. 00 .. 00 .. 00 .. 00 .. 00 .. 00 .. 00 .. 00 .. 00 .. 00
.. Eh un Eh un Eh un Eh un Eh un Eh un Eh un Eh un Eh un Eh un Eh un Eh un Eh un Eh un Eh un Eh un Eh un Eh un Eh un Eh un
.. ++ \\ &7 \\ &7 \\ &7 \\ &7 \\ &7 \\ &7 \\ &7 \\ &7 \\ &7 \\ &7 \\ &7 \\ &7 \\ &7 \\ &7 \\ &7 \\ &7 \\ &7 \\ &7 \\ &7 \/
.. &7 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..
.. /\ &8 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..
.. .. @0 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..
.. .. .. /\ &8 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..
.. .. // .. @1 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .
@vampjaz
vampjaz / findfiles.py
Last active December 19, 2017 07:39
Python files used to extract some data from iPhone backups
import sqlite3
import subprocess
import os
import pprint
import shutil
## required the directory 'data' to exist locally
## put in full file type to scan for (find it with typecount.py) and optional suffix to add
SCAN = 'gzip compressed data'
@vampjaz
vampjaz / fr24_hexdump.txt
Created December 23, 2015 00:26
Files from the exploration of my FlightRadar reciever
$ nc 10.0.1.75 30334 | hexdump
0000000 1a 32 00 e8 01 00 00 00 7e 5d a8 ae f3 cc 64 68
0000010 1a 32 00 e8 02 00 00 00 c9 5d a8 ae f3 cc 64 68
0000020 1a 32 00 e8 02 00 00 00 d4 5d a8 ae f3 cc 64 68
0000030 1a 32 00 e8 02 00 00 00 ca 06 4c e5 c0 2d f6 3f
0000040 1a 33 00 e8 02 00 00 00 df 98 c8 d1 41 93 39 70
0000050 0b 7d 8f fe 40 cc 26 1a 32 00 e8 03 00 00 00 51
0000060 5d a8 ae f3 cc 64 68 1a 32 00 e8 04 00 00 00 8c
0000070 5d a9 5d 9d 8a b4 06 1a 33 00 e8 07 00 00 00 de
0000080 8d a8 ae f3 58 af 77 22 e3 29 64 c0 52 a4 1a 32
@vampjaz
vampjaz / fr24_feed.py
Last active April 6, 2019 17:40
FlightRadar24 local streaming API parser
## test file to decode data from FlightRadar24 streaming server
## see http://redteamgreen.blogspot.com/2015/12/big-data-is-sometimes-big-pain.html
import socket
import sys, os
import time
def pad(s,l):
return ' '*(l-len(s)) + s
@vampjaz
vampjaz / server.py
Last active December 28, 2015 16:50
Server for easy browsing of textfiles in directories: http://imgur.com/a/CY4G3
### simple server (i hope) for textfiles data
### trying to make it all one file for portability
### by nWx aka red_green
### gplv2 i guess
# throw all the files in the same folder as this script and then start it up
# then go to localhost:5000
####################################
# IMPORTANT: NOT FOR A PUBLIC SERVER, DIRECTORY TRAVERSAL IS NOT SANITIZED AND YOUR DATA CAN BE STOLEN
@vampjaz
vampjaz / bin2hex.py
Created January 11, 2016 15:27
Random cs stuff
def bintohex(b):
b = str(b);bd = [];hv = []
while b:
if len(b) >= 4:
a = b[-4:]
b = b[:-4]
else:
a = '0'*(4-len(b)) + b
b = ''
bd.append(a)
@vampjaz
vampjaz / presidents.py
Last active January 17, 2016 21:57
Short study program for presidents and their political parties.
### presidents study program
import os,sys,random
## data from https://raw.githubusercontent.com/m0rt1m3r/US-Presidents/master/USPresidents.csv
## ['No ', 'President Name ', 'Took office ', 'Left office ', 'Party ']
data = [['1', 'George Washington', '30/04/1789', '4/03/1797', 'Independent'], ['2', 'John Adams', '4/03/1797', '4/03/1801', 'Federalist'], ['3', 'Thomas Jefferson', '4/03/1801', '4/03/1809', 'Democratic-Republican'], ['4', 'James Madison', '4/03/1809', '4/03/1817', 'Democratic-Republican'], ['5', 'James Monroe', '4/03/1817', '4/03/1825', 'Democratic-Republican'], ['6', 'John Quincy Adams', '4/03/1825', '4/03/1829', 'Democratic-Republican'], ['7', 'Andrew Jackson', '4/03/1829', '4/03/1837', 'Democratic'], ['8', 'Martin Van Buren', '4/03/1837', '4/03/1841', 'Democratic'], ['9', 'William Henry Harrison', '4/03/1841', '4/04/1841', 'Whig'], ['10', 'John Tyler', '4/04/1841', '4/03/1845', 'Whig'], ['11', 'James K. Polk', '4/03/1845', '4/03/1849', 'Democratic'], ['12', 'Zachary Taylor', '4/03/1849', '9/0