Skip to content

Instantly share code, notes, and snippets.

@cloud11665
Created April 13, 2023 21:17
Show Gist options
  • Save cloud11665/db1764f76427b2040efa1e169e908f79 to your computer and use it in GitHub Desktop.
Save cloud11665/db1764f76427b2040efa1e169e908f79 to your computer and use it in GitHub Desktop.
from pwn import *
from concurrent.futures import ThreadPoolExecutor
def run(i):
r = remote("mc.ax", 30376, level='error')
r.recv()
for k in bin(i)[2:].zfill(15):
r.recv()
r.send(b"n\n") if k == '0' else r.send(b"y\n")
r.send(b"y\n")
a = r.recv()
r.send(b"\n")
b = r.recv()
if b"bucket" in a:
print(i, a, b)
r.close()
with ThreadPoolExecutor(128) as w:
w.map(run, range(2**15))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment