Coder Social home page Coder Social logo

gdb-pwn-manager's Introduction

GDB pwn manager

A set of scripts for installing and managing GEF, PEDA (+peda-arm) and pwndbg (+splitmind +r2pipe(Ghidra intergration))


A partial rewrite of apogiatzis/gdb-peda-pwndbg-gef.
Following features were added:

  • Customizable plugin install directory
  • Installation of splitmind and r2pipe for the Ghidra integration
  • Refactor of the scripts for easier extension and modification
  • Allow fallback plugin when none selected (especially usefully for pwntools)
  • .gdbinit rewritten in python for easier extension
  • QoL improvements

Install

git clone https://github.com/Denloob/gdb-pwn-manager.git
cd gdb-pwn-manager
./install.sh

You may install the plugins in a custom directory by setting the $GDB_HOME env variable. It will be used during and after the installation.

After a successful install the following commands will be available to you

peda
peda-intel
peda-arm
pwndbg
gef

Update

To update the plugins, run the update.sh script. It will run git pull on each of the installed plugins.

Configuration

Extending/Adding plugins

If the plugin is a git repo, modify install.sh and add a download function call like download <dirname> <git url> [command to execute after download]. Then also modify update.sh with a function update <dirname>.

Then add to your .gdbinit (probably located at ~/.gdbinit) a function similar to the other once performing whatever the install procedure is.
If the install procedure involves using gdb commands (like source), gdb.execute can be used.

Changing default plugin

Open your .gdbinit and change the function being called inside the last if statement. If you want to use plain gdb as default, remove the if statement.

Uninstall

No uninstall script is provided for safety reasons. However to uninstall you can delete the following:

  • $GDB_HOME directory (by default ~/.gdb)
  • gdb run scripts (located at /usr/bin/, for names see gdb_runners/)
  • .gdbinit (by default ~/.gdbinit) - Your previous gdbinit is stored at ~/.gdbinit.back_up

gdb-pwn-manager's People

Contributors

apogiatzis avatar denloob avatar fare9 avatar r888800009 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.