Skip to content

Commit 6dba7fc

Browse files
committedOct 9, 2023
forgot what i did but a lot
1 parent 1eb3f7c commit 6dba7fc

File tree

147 files changed

+100492
-11
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

147 files changed

+100492
-11
lines changed
 

‎.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
*/__pycache__/*
22
__pycache__/
33
libseccomp.so.2
4+
node_modules
5+
46

‎cryptohack/bean_counter.py

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
from pwn import xor
2+
import requests
3+
ct = bytes.fromhex(requests.get('https://aes.cryptohack.org/bean_counter/encrypt/').json()['encrypted'])
4+
target = bytes.fromhex('89 50 4e 47 0d 0a 1a 0a 00 00 00 0d 49 48 44 52')
5+
key = xor(target, ct[:16])
6+
img = xor(ct, key)
7+
with open('bean_flag.png', 'wb') as f:
8+
f.write(img)

0 commit comments

Comments
 (0)