Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
fuck

Norm CreateRemoteThread

💭
fuck
View GitHub Profile
View twctf-nothing.py
#!/usr/bin/env python3
import sys
import pwn
import struct
import binascii
# nc pwn02.chal.ctf.westerns.tokyo 18247
if(len(sys.argv) > 1):
View gctf-bruter.py
#!/usr/bin/env python3
import subprocess
rebuildDb = {}
for char_pos in range(0,8):
for byte_pos in range(0,7):
out = ["9","9","9","9","9","9","9","9"]
out[char_pos] = ("%d" % byte_pos)
View gctf-reversing-solve.py
#!/usr/bin/env python3
import angr
import claripy
p = angr.Project("a.out")
flag_chars = [claripy.BVS("flag_%d" % i,8) for i in range(15)]
flag = claripy.Concat(*flag_chars + [claripy.BVV(b'\n')])
View aeroctf-oldcryptosolve.py
#!/usr/bin/python
import pwn
import base64
import binascii
p = pwn.remote("tasks.aeroctf.com",44323)
def encryptWithKey(p,blk):
p.recvuntil("> ")
View aeroctf-oldcryptoserver.py
#!/usr/bin/env python3
from Crypto.Cipher import AES
import base64
import sys
import signal
server_secret = "Aero{XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX}"
KEY = 'XXXXXXXXXXXXXXXX'.encode()
View cw303-test.py
#!/usr/bin/python
from __future__ import print_function, division
import time
import logging
import os
from collections import namedtuple
import csv
View hacklu-cobol-otp-brute.py
#!/usr/bin/env python3
f = open("out","rb")
data = f.read()
f.close()
state = False
a = []
for c in data:
if c == 0xd or c == 0xa:
state = True
View hacklu-cobol-otp-out.b64
RW50ZXIgeW91ciBtZXNzYWdlIHRvIGVuY3J5cHQ6CqbSE5Z5OxBkaHWf3UafXRdVamhDj4wtkjEH
VGBoJp/NRocxKlR7BF+m6wakcDARMkoK
View hacklu-cobol-otp
identification division.
program-id. otp.
environment division.
input-output section.
file-control.
select key-file assign to 'key.txt'
organization line sequential.
data division.
View seccon-encrypt.py
import sys
from Crypto.Cipher import AES
import base64
def encrypt(key, text):
s = ''
for i in range(len(text)):
s += chr((((ord(text[i]) - 0x20) + (ord(key[i % len(key)]) - 0x20)) % (0x7e - 0x20 + 1)) + 0x20)
return s
You can’t perform that action at this time.