Skip to content

Instantly share code, notes, and snippets.

var http = require('http');
var express = require('express');
var path = require('path');
var cookieParser = require('cookie-parser');
var bodyParser = require('body-parser');
var crypto = require('crypto');
var secrets = require('./secrets');
var app = express();
#!/usr/bin/python
from PIL import Image
import sys
from re import sub
print " ** SUPER SEKRIT DECRYPTOR DO NOT DISTRIBUTE ** "
def decode(text):
return sub(r'(\d+)(\D)', lambda m: m.group(2) * int(m.group(1)),text)
#!/usr/bin/python
from PIL import Image
import sys
from re import sub
import base64
if len(sys.argv) != 3:
print "usage: ./e.py [in_img] [in_data] saves to out.png"
sys.exit(0)
#!/usr/bin/python
# step 1: bruteforce
# our first stage is to brute force how many "A"'s I need
# to leak the admin pw.
# step 2: leak the pwd
# at this point, we control fully one %s pointer
# which is used in the data leak. we use this to leak
# the admin blog password
# step 3: authenticate and read the flag.
import os
import errno
import math
def draw():
current = 2
check_map("2")
print 'Press Ctrl + C to stop draw map'
while 1:
import os
def gothrough():
key = 1
roomtogo = [r for r in os.listdir(os.curdir)if os.path.isdir(r)]
for room in roomtogo:
key *= int(room)
os.system("start cmd /k echo Room number " + room + ": get key part")
# >>> 1000004059 * 1000004099 * 1000004119
if (key == 1000012277050240711531267079):
# 2016.06.25 20:27:03 AEST
#Embedded file name: digital_fortrees.py
import urllib2
def main():
print " /\\\n /`:\\\n /`'`:\\\n /`'`'`:\\\n /`'`'`'`:\\\n /`'`'`'`'`:\\\n |`'`'`'`:|\n _ _ _ _ _ |] ,-. :|_ _ _ _\n ||| || || || | | |_| ||| || || || |\n |`' `' `' `'.| | _'=' |`' `' `' `'.|\n : .:; |'-' : .:;\n \\-..____..:/ _ _ _ _ _ _| _ _'-\\-..____..:/\n :--------:_,' || || || || || || || `.::--------:\n |] .:|:. `' `'_`' `' `' `' `' | '-' .:|\n | ,-. .[|:._ '-' ____ ___ | ,-.'-|\n | | | .:|'--'_ ,'____`. '---' | | |.:|\n | |_| .:|:.'--' ()/,| |`|`.\\() __ | |_|.:|\n | '=' .:|:.
#!/usr/bin/python
from PIL import Image
import sys
f = Image.open("doge2.png")
f_rgb = f.convert("RGB")
print f_rgb.getpixel((370,336))
print f_rgb.getpixel((404,342))
import base64
from Crypto.Cipher import AES
from Crypto import Random
# pad = lambda s: s + (BS - len(s) % BS) * chr(BS - len(s) % BS)
# unpad = lambda s : s[:-ord(s[len(s)-1:])
KEY = "58897d583d888978b62469889d584472"
PW = "XIANJIAN "
#!/usr/bin/python
import pwn
p = pwn.remote('120.26.120.82',9999)
p.send("py09ce12e1-b775-4bda-af37-8abd886478ee\0djksa;fjhklajkdlsfjl;kajsdlkfa\n")
print p.recv()
p.interactive()
# p.interactive()
# p.send("pi09ce12e1-b775-4bda-af37-8abd886478ee\0ls\"asdf'asdf")