Skip to main content

VirtuAlization GDb integrations in pwntools

Project description

PyPI docs

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

use python -m vagd to generate a template

# 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).

Documentation

Boxes

the following boxes were tested and work, box constants are inside vagd.box.Box

  • Vagrant
    • UBUNTU_JAMMY64 = 'ubuntu/jammy64'
    • UBUNTU_FOCAL64 = 'ubuntu/focal64'
    • UBUNTU_BIONIC64 = 'ubuntu/bionic64'
    • UBUNTU_XENIAL64 = 'ubuntu/xenial64'
  • QEMU (cached in ~/.vagd/qemu-imgs)
  • Docker
    • DOCKER_JAMMY = 'ubuntu:jammy'
    • DOCKER_FOCAL = 'ubuntu:focal'
    • DOCKER_BIONIC = 'ubuntu:bionic'
    • DOCKER_XENIAL = 'ubuntu:xenial'

currently only distributions that use apt are supported

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

vagd-0.3.9.tar.gz (33.2 kB view details)

Uploaded Source

Built Distribution

vagd-0.3.9-py3-none-any.whl (36.3 kB view details)

Uploaded Python 3

File details

Details for the file vagd-0.3.9.tar.gz.

File metadata

  • Download URL: vagd-0.3.9.tar.gz
  • Upload date:
  • Size: 33.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for vagd-0.3.9.tar.gz
Algorithm Hash digest
SHA256 7a286070556736716750a65c833b3240484ce1db39b7b56d5912c595be402221
MD5 03f08ae79d11fea4c790adbc3f7f465f
BLAKE2b-256 69c5006c0c379c284ea2c3726aee642f799449e2a7a01d05ac09dd2014dbfddf

See more details on using hashes here.

File details

Details for the file vagd-0.3.9-py3-none-any.whl.

File metadata

  • Download URL: vagd-0.3.9-py3-none-any.whl
  • Upload date:
  • Size: 36.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for vagd-0.3.9-py3-none-any.whl
Algorithm Hash digest
SHA256 a5ae08252c48967815d963b93c9b8488f424e228d606cd85b635a7bd06a0c21b
MD5 7fe93782b35bbb1ad43300c24a883a20
BLAKE2b-256 b8ddf24ab352832938a31baebcee21a0cc21465719d1b41d6a14c68b9245dd4b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page