Skip to content
A hyper plugin to provide a flexible GDB GUI with the help of GEF, pwndbg or peda
JavaScript
Branch: master
Clone or download
Cannot retrieve the latest commit at this time.
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
cfgs Add support for peda Sep 3, 2019
.gitignore Basic support for replay May 23, 2019
.travis.yml Turn to use GEF as backend May 26, 2019
LICENSE Basic support for replay May 23, 2019
README.md Support to add shortcuts for custom commands Nov 13, 2019
index.js Bump version to 0.3.0 Nov 14, 2019
package.json Bump version to 0.3.0 Nov 14, 2019

README.md

Hyperpwn

Build Status XO code style

Hyperpwn is a Hyper plugin to improve the display when debugging with GDB.

Hyperpwn needs GEF, pwndbg or peda to be loaded in GDB as a backend. Hyperpwn handles with its context data, seperates them to different windows to get a clearer display and can easily replay previous states.

Install

Firstly, you need to install Hyper on your computer.

Hyperpwn relies on hyperinator. You need to install both hyperinator and hyperpwn plugins to use hyperpwn.

You can install them by command line:

$ hyper i hyperinator
$ hyper i hyperpwn

Or edit ~/.hyper.js manually and add them to plugins:

plugins: [
  "hyperinator", "hyperpwn"
],

Usage

Just run gdb in Hyper terminal.

If the backend is loaded, hyperpwn will automatically create a config file in ~/.hyperinator, load it and handle with the context data.

You can edit the config file to change the layout and parts to display.

Shortcuts

  • stepi: F7
  • nexti: F8
  • display previous state: ctrl+shift+pageup
  • display next state: ctrl+shift+pagedown

Configuration

Default configuration:

module.exports = {
  config: {
    // other configs...
    hyperpwn: {
      hotkeys: {
        prev: 'ctrl+shift+pageup',
        next: 'ctrl+shift+pagedown',
        cmd: {
          stepi: 'f7',
          nexti: 'f8'
        }
      },
      autoClean: false,
      autoLayout: true,
      showHeaders: true,
      headerStyle: {
        position: 'absolute',
        top: 0,
        right: 0,
        fontSize: '10px'
      }
    }
  }
  //...
};

Notice

  • If you encounter any weird display bugs during using Hyper or hyperpwn, try to downgrade Hyper to v2.1.2.
  • If you want to use hyperpwn on pwndbg, make sure you have installed the git version of pwndbg, or you must backport this patch.
  • If you want to use hyperpwn on peda, please use my fork of peda.
  • Make sure you have enabled the display of legend in the backend (which is the default behavior).
  • You can try to change configs like context.nb_lines_code, context.nb_lines_code_prev in GEF, or context-code-lines in pwndbg, to get a better display.
You can’t perform that action at this time.