VirtuAlization GDb integrations in pwntools
Project description
VAGD
VirtuAlization GDb integrations in pwntools
Installation
pip install vagd
or from repo with
git clone https://github.com/gfelber/vagd
pip install ./vagd/
Usage
-
vagd template [OPTIONS] [BINARY] [IP] [PORT]
to generate a template, list OPTIONS with help-h
-
vagd info BINARY
to print info about binary
# run as process in VM
./exploit.py
# run as gdb server in VM requires tmux
./exploit.py GDB
# run on remote IP:PORT
./exploit.py REMOTE
I recommend using pwndbg.
Files
All created files ares stored in the local ./.vagd/
directory. Additional large files (e.g. cloudimages) are stored in the home directory ~/.vagd/
or handled by tools themselfs (e.g. Vagrant, Docker).
CLI
alias vagd="python -m vagd" # or install with pip / pipx
# help message
vagd -h
# analyses the binary, prints checksec and .comment (often includes Distro and Compiler info)
vagd info BINARY
# creates template, for more info use: vagd template -h
vagd template [OPTIONS] [BINARY] [IP] [PORT]
# ssh to current vagd instance, for more info use: vagd ssh -h
vagd ssh [OPTIONS]
# scp file to/from vagd instance, for more info use: vagd scp -h
# e.g. vagd scp ./test_file vagd:./ # vagd:./ is default target
vagd scp [OPTIONS] SOURCE [TARGET]
# stop and remove current vagd instance, for more info use: vagd clean -h
vagd clean [OPTIONS]
Documentation
Boxes
A listed of known working Boxes can be found in the Documentation.
Other images might also work but currently only distributions that use apt
and alpine for Docker are supported.
This limitation may be circumvented by creating a target yourself (with the dependencies gdbserver, python, openssh) and creating a ssh connection via Shgd.
Future plans
pre configured Vagrant boxes / QEMU Images / Docker Image
created pre configured environments with preinstalled lib debug symbols and gdbserver to lower init runtime.
Better Docker integration
created a Docker integration that allows loading existing Dockerfiles (maybe docker-compose), also add a feature that additionally virtualizes (Vagrant/Qemu) them to change the used kernel.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file vagd-1.1.2.tar.gz
.
File metadata
- Download URL: vagd-1.1.2.tar.gz
- Upload date:
- Size: 41.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58beb18aa5649fd1249d5942d658d8c92b07e499feb0b754a9ee7a80f23246bb |
|
MD5 | c4786894913db8567926184650710b52 |
|
BLAKE2b-256 | 222da5b7c363265f266b2724e4174c154b815650fe65432b268c74a159403bab |
File details
Details for the file vagd-1.1.2-py3-none-any.whl
.
File metadata
- Download URL: vagd-1.1.2-py3-none-any.whl
- Upload date:
- Size: 45.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f417323bc1d7f7490e508bcd911a94f2a9abc504612ad980189e3e9275d33241 |
|
MD5 | bcb482df4b85425ce9597358d6756207 |
|
BLAKE2b-256 | 1d1d15c4099df305420f2f1d4aaa6530bd18f8ba1da9e13d12e1fa76d9d16bf8 |