Skip to content

hax3xploit/BufferOverFlow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Buffer OverFlow

python python

some quick scripts I prepared while stuyding for the OSCP.

Summarized steps

  • Crash the application (spiking)
  • Fuzzing (find aprox number of bytes where the crash took place)
  • Find offset
  • EIP control
  • Check for enough space on buffer
  • Badchars counting
  • Find return address (JMP ESP)
  • Create payload
β”œβ”€β”€ ( 1 ) spiking
β”‚Β Β  β”œβ”€β”€ (1)spikeTemplateGenerator.py
β”‚Β Β  β”œβ”€β”€ (2)autoSpiking.sh
β”‚Β Β  └── varList
β”œβ”€β”€ ( 2 ) fuzzing
β”‚Β Β  β”œβ”€β”€ (1)fuzzing.py
β”‚Β Β  β”œβ”€β”€ (2)OffsetFinder.py
β”‚Β Β  └── (3)pattern_offset.sh
β”œβ”€β”€ ( 3 ) EIP_controlling
β”‚Β Β  β”œβ”€β”€ (1)EIP-RW.py
β”‚Β Β  β”œβ”€β”€ (2)badchar.py
β”‚Β Β  └── (3)return_Address.py
└── ( 4 ) shellcode_generate
    β”œβ”€β”€ (1)shellcode_generator.sh
    └── (2)exploit.py
    

Requirments

apt-get update apt-get install python3 python3-pip python3-dev git libssl-dev libffi-dev build-essential python3 -m pip install --upgrade pip python3 -m pip install --upgrade pwntools

Credits

Thanks to these individuals for their contribution via code :)

About

some quick scripts I prepared while studying for the OSCP.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published