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.0.tar.gz
.
File metadata
- Download URL: vagd-1.1.0.tar.gz
- Upload date:
- Size: 40.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ecbd5cad7e92cec3d4a8f17468d2aecbb9545ce4d2a8fb1c882e85ddbcd48c34 |
|
MD5 | b21e989080e86b1943e369f63e66dbee |
|
BLAKE2b-256 | 48ed7a00479da7c484462cdda0cfd7cd178b2f5e2fee7bc354515daa04e1a0e9 |
File details
Details for the file vagd-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: vagd-1.1.0-py3-none-any.whl
- Upload date:
- Size: 45.5 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 | 2ea92b75c474e4f0a917a4dab4056eaaa73380b899da206d868f2890bf66b11f |
|
MD5 | f3994168fbba0f07b9af6ae5a84ba59a |
|
BLAKE2b-256 | 262008a2a3aaa7a6dad361fcac80f50e85721ecca39e099ae2b3f7a1e6ca79cd |