Coder Social home page Coder Social logo

bet4it / hyperpwn Goto Github PK

View Code? Open in Web Editor NEW
584.0 19.0 59.0 35 KB

A hyper plugin to provide a flexible GDB GUI frontend with the help of GEF, pwndbg or peda

License: MIT License

JavaScript 100.00%
hyper pwn ctf gdb gef pwndbg peda exploit debugging reverse-engineering

hyperpwn's Introduction

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.

hyperpwn's People

Contributors

bet4it avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hyperpwn's Issues

does this apply gdb on ssh?

I'm usually working inside my Vagrant linux vm, but i can't seem to understand if this terminal plugin will integrate with that or not.
guidance would be much appreciated.

hyperpwn doesn't work on OSX

i already installed Hyper, and both plugins placed correctly, but when i typo gdb to start, it doesn't show any layout like GIF in the README. I play with GEF.and the ~/.hyperinator/ dir does not exist. the devtools output:
Plugin hyperinator (0.3.4) loaded. bundle.js:1
Plugin hyperpwn (0.2.2) loaded. bundle.js:1
what should i do?

Exiting the hyperpwn layout on gdb (pwndbg, gef, etc) exit

So I've been looking in both hyperpwn and hyperinators pages and I can't seem to find a way that gracefully exits the layout without having to manually close all of the panes. Is there a hotkey somewhere or a way to configure a graceful exit of the layout on pwndbg/gdb exit?

How to install the plugin

when i edit the .hyper.js.i got this
Plugin error while loading "hyperinator" (/root/.hyper_plugins/local/hyperinator): Cannot find module '/root/.hyper_plugins/local/hyperinator'
when i run "hyper i hyperinator".i got this
Plugin error while loading "hyperinator" (/root/.hyper_plugins/local/hyperinator): Cannot find module 'js-yaml'
Plugin error while loading "hyperpwn" (/root/.hyper_plugins/local/hyperpwn): Cannot find module '/root/.hyper_plugins/local/hyperpwn'
Disabling Chromium GPU blacklist
running in prod mode
electron will open file:///tmp/.mount_hyper-Tr9wdg/resources/app.asar/index.html
Setting Hyper as default client for ssh:// protocol
Checking for notification messages
No matching notification messages

Unknown Error

Hello was trying to set up the pwn environment and when starting gdb I faced a javascript error, please help.

image

can not install hyperinator and hyperpwn

Hi, I get the following error when typing hyper i hyperinator and hyper i hyperpwn

noname@ubuntu:~$ hyper i hyperinator
/opt/Hyper/resources/bin/cli.js:19156
getProperties = memoize(() => getParsedFile().program.body[0].expression.right.properties),
^

TypeError: Cannot read property 'properties' of undefined
at memoize (/opt/Hyper/resources/bin/cli.js:19156:85)
at d (/opt/Hyper/resources/bin/cli.js:19141:22)
at memoize (/opt/Hyper/resources/bin/cli.js:19157:34)
at d (/opt/Hyper/resources/bin/cli.js:19141:22)
at Object.install (/opt/Hyper/resources/bin/cli.js:19187:37)
at Args.args.command (/opt/Hyper/resources/bin/cli.js:9934:45)
at Args.runCommand (/opt/Hyper/resources/bin/cli.js:11318:37)
at Args.module.exports [as parse] (/opt/Hyper/resources/bin/cli.js:15089:10)
at main (/opt/Hyper/resources/bin/cli.js:9991:18)
at Object.module.exports.name (/opt/Hyper/resources/bin/cli.js:10038:1)

noname@ubuntu:~$ hyper i hyperpwn
/opt/Hyper/resources/bin/cli.js:19156
getProperties = memoize(() => getParsedFile().program.body[0].expression.right.properties),
^

TypeError: Cannot read property 'properties' of undefined
at memoize (/opt/Hyper/resources/bin/cli.js:19156:85)
at d (/opt/Hyper/resources/bin/cli.js:19141:22)
at memoize (/opt/Hyper/resources/bin/cli.js:19157:34)
at d (/opt/Hyper/resources/bin/cli.js:19141:22)
at Object.install (/opt/Hyper/resources/bin/cli.js:19187:37)
at Args.args.command (/opt/Hyper/resources/bin/cli.js:9934:45)
at Args.runCommand (/opt/Hyper/resources/bin/cli.js:11318:37)
at Args.module.exports [as parse] (/opt/Hyper/resources/bin/cli.js:15089:10)
at main (/opt/Hyper/resources/bin/cli.js:9991:18)
at Object.module.exports.name (/opt/Hyper/resources/bin/cli.js:10038:1)

regards

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.