GitXplorerGitXplorer
b

hyperpwn

public
597 stars
59 forks
2 issues

Commits

List of commits on branch master.
Unverified
c0a76b2058091835036f13df0ce17c8fb696e679

Add support for Windows

bbet4it committed a year ago
Unverified
9d2c089b4c01ad9a754fb6e2907db001e9a2084d

Downgrade ansi-escapes. Fix #11

bbet4it committed 3 years ago
Unverified
3d844aeadda9b8e8059bc8164970fadac7f3d766

Add support for GEF on macOS. Fix #10

bbet4it committed 3 years ago
Unverified
5a34b30ae5e2faff01041fcd9aa76c56e737aa1d

Bump version to 0.4.0

bbet4it committed 3 years ago
Unverified
a6ecf8d6f15317c48b0613a85f0ceaf5455aa945

Support import sessions

bbet4it committed 3 years ago
Unverified
71a5c9105836a8909dce0a7214725babfb39d873

Add support for peda-arm

bbet4it committed 4 years ago

README

The README file for this repository.

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.

Hyperpwn can be used on Windows, Linux and macOS.

Install

Firstly, you need to install the latest release of 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 want to use hyperpwn on peda, please use my fork of peda or peda-arm.
  • 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.