Skip to content

Instantly share code, notes, and snippets.

View crc-exploit.py
import socket, struct, os, binascii, base64, zlib
import telnetlib
def readline(sc, show = True):
res = ""
while len(res) == 0 or res[-1] != "\n":
data = sc.recv(1)
if len(data) == 0:
print repr(res)
raise Exception("Server disconnected")
View fu-interpreter-exploit.py
import socket, struct, os, binascii, base64
import telnetlib
def readline(sc, show = True):
res = ""
while len(res) == 0 or res[-1] != "\n":
data = sc.recv(1)
if len(data) == 0:
print repr(res)
raise Exception("Server disconnected")
View yacp-solution.py
import socket, struct, os, binascii, base64, hashlib, sys
import telnetlib
from Crypto.Cipher import AES
import psyco; psyco.full()
def readline(sc, show = True):
res = ""
while len(res) == 0 or res[-1] != "\n":
View gameboy-exploit.py
import socket, struct, os, binascii, base64
import telnetlib
def readline(sc, show = True):
res = ""
while len(res) == 0 or res[-1] != "\n":
data = sc.recv(1)
if len(data) == 0:
print repr(res)
raise Exception("Server disconnected")
View recho_exploit.py
import socket, struct, os, binascii, base64
import telnetlib
def readline(sc, show = True):
res = ""
while len(res) == 0 or res[-1] != "\n":
data = sc.recv(1)
if len(data) == 0:
print repr(res)
raise Exception("Server disconnected")
View rsa_sign2_solution.py
import socket, struct, os, binascii, base64, hashlib
import telnetlib
import rsa
from gmpy2 import mpz, iroot, powmod, mul, t_mod
def readline(sc, show = True):
res = ""
while len(res) == 0 or res[-1] != "\n":
View babyenc_solution.py
# a b c d e f g h
# a^b b^c c^d d^e e^f f^g g^h
# a^c b^d c^e d^f e^g f^h
# a^b^c^d b^c^d^e c^d^e^f d^e^f^g e^f^g^h
# a^e b^f c^g d^h
View lights_solver.py
import binascii, sys
import psyco; psyco.full()
def main():
# arr = [ord(x) for x in binascii.a2b_hex("C766FCD65CB60DE829633BA8D8B823526FF8239C1DD6DE73EB963536B3483346")]
# print arr
#data = open("data-original", "rb").read()[8:]
View lcm-solver.py
import socket, struct, os, binascii, base64, subprocess
import telnetlib
import base58
def readline(sc, show = True):
res = ""
while len(res) == 0 or res[-1] != "\n":
data = sc.recv(1)
if len(data) == 0:
View makeflag.js
function get_flag() {
s = "ASIS{";
var r0 = 65;
var r7 = 0;
for (var r8 = 0; r8 <= 20; r8++) {
var r9 = 47;
r9 = r9 < r0;
if (!(r9 < 58)) {
r9 = 64;
r9 = r9 < r0;