https://github.com/phra/bof-helper
Python Helper Utilities for SEH Overwrite Based Exploits
https://github.com/phra/bof-helper
Last synced: over 1 year ago
JSON representation
Python Helper Utilities for SEH Overwrite Based Exploits
- Host: GitHub
- URL: https://github.com/phra/bof-helper
- Owner: phra
- License: gpl-3.0
- Created: 2019-12-16T14:07:15.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-12-16T14:17:59.000Z (over 6 years ago)
- Last Synced: 2025-02-28T06:04:19.873Z (over 1 year ago)
- Language: Python
- Homepage: https://iwantmore.pizza
- Size: 19.5 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# bof-helper
Python Helper Utilities for SEH Overwrite Based Exploits
## Usage
```py
from helper import *
```
## Examples
1. pattern
```py
payload = pattern_create(3000)
```
2. offset
```py
nSEH_offset = pattern_offset('0x39644338')
egghunter_offset = pattern_offset('3Av4')
```
3. padding
```py
payload = pattern_create(egghunter_offset)
payload += egghunter
payload += fill(payload, farjmp_offset)
payload += farjmp
payload += fill(payload, nSEH_offset)
```
4. save_file
```py
save_file("payload.txt", payload)
```
5. packing
```py
def u8(x):
return struct.unpack("