Skip to content

anugrahn1/pwn-stub-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

Lightweight Python script to generate a template for PWN challenges

Installation:

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

Using the program:

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.

Example:

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()

About

generates a stub for pwn challenges with pwntools

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages