wget https://raw.githubusercontent.com/anugrahn1/pwn-stub-generator/main/templates/generate.py -O generate.py
pip install -r requirements.txt
sudo cp generate.py /usr/bin/generate; rm generate.py
After following the Installation instructions, type generate.
It will ask for a binary. Type in the name of the file the CTF provided, and a file called get.py will be generated in the current directory.
If it detects another get.py file, it will ask to overwrite it.
This is the file it creates, where test is the name of the binary you typed:
from pwn import ELF, p64, p32, process, context, ROP, gdb, log, u64, u32, remote
context.binary = binary = ELF('test')
p = process()
p.interactive()