This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ab=ba; | |
that was easy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
from Tkinter import * | |
import sys | |
END = int(sys.argv[1]) # epoch in seconds | |
RATE = 50 | |
font1 = ("Helvetica", 30, 'bold') | |
font2 = ("Helvetica", 28) | |
root = Tk() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.. @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 .. .. .. .. .. .. .. .. .. .. .. .. .. .. . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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 |