Generate exploit template
Project description
Description
Generate Exploit Template
I've written this template generator to write my exploits.
Installation
Install from pip
:
pip install expl
Install from source
- clone it from repo:
git clone https://github.com/AlirezaKm/expl
- Install from source:
cd expl
pip install -e .
Usage
$ expl
Usage: expl [OPTIONS] COMMAND [ARGS]...
Options:
--help Show this message and exit.
Commands:
both Generate a Template for Local and Remote
local Generate Local Template
remote Generate Remote Template
More Info about commands
$ expl local --help
Usage: expl local [OPTIONS] FILE
Generate Local Template
Options:
-a, --arch TEXT Architecture of Executable File [default: x86_64]
--os TEXT OS of Executable File [default: linux]
-e, --endian TEXT OS of Executable File [default: little]
-l, --loglevel TEXT Log Level of pwntools [default: info]
-r, --realpath TEXT using realpath for Executable File [default: False]
--libc TEXT Address of LIBC
--heap Adding heap functions
-o, --output TEXT write to output
--help Show this message and exit.
Generate a template for a Local Executable File
$ expl local vuln
#!/usr/bin/python2
from pwn import *
context(arch='x86_64', os='linux', endian='little', log_level='info')
def info(s):
log.info(s)
def exploit(r):
r.interactive()
if __name__ == '__main__':
r = process(['vuln'])
print(util.proc.pidof(r))
pause()
exploit(r)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
expl-1.1.1.tar.gz
(3.1 kB
view details)
File details
Details for the file expl-1.1.1.tar.gz
.
File metadata
- Download URL: expl-1.1.1.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.23.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.43.0 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50ef7d0bc9fd4bd1c9a017e6bbebee7ed7d98c1b694cd6c7715d4a76f3bce3ad |
|
MD5 | fff31bd61819eb2baef6baa0b4c0dd10 |
|
BLAKE2b-256 | 334ad2727454d4dc5baa25acb2bf018024e986ba27b7fb4683a5b5577d5324e5 |