bet4it / hyperpwn

A hyper plugin to provide a flexible GDB GUI frontend with the help of GEF, pwndbg or peda
MIT License
591 stars 59 forks source link

hyperpwn doesn't work on OSX #3

Closed joeycold closed 4 years ago

joeycold commented 4 years ago

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?

bet4it commented 4 years ago

Try echo 'GEF for linux ready' in Hyper? Hyperpwn should detect the output of GEF and start automatically.

joeycold commented 4 years ago

yes, this is the problem.because I'm on OSX.Thanks!but still can't work.. image and try this after in gdb: image

bet4it commented 4 years ago

Can GEF work on OSX? I don't have a Mac to do testing, but I think the technology this plugin use is universal and should also work on OSX.

Can you also install hyperinator globally by npm install -g hyperinator and test it with ways listed here?

joeycold commented 4 years ago

I test it with global, and hyperinator is work correct.may be I should install hyperpwn with global?

bet4it commented 4 years ago

Then what about copying hyperpwn-gef.yml to ~/.hyperinator/hyperpwn-gef.yml and running hyperinator load hyperpwn-gef likes this:

bet4it commented 4 years ago

Can you run /bin/sleep infinity on OSX?

joeycold commented 4 years ago

when I copyed the hyperpwn-gef.yml to ~/.hyperinator/hyperpwn-gef.yml,the result is always like above i posted,say "hyperpwn: command not found".and I think the command /bin/sleep infinity dosen't work on OSX. As yvanscher said. last I test with install hyperpwn in global,and it still don't work like before.

bet4it commented 4 years ago

hyperpwn is a fake command and you can't install it. It only works when sleep is running correctly.

I think you should change /bin/sleep and infinity in hyperpwn-gef.yml to a sleep command which can run correctly, such as /bin/sleep 99999, and have a look of the result.

FishMan132 commented 4 years ago

/bin/sleep 99999 it's work

bet4it commented 4 years ago

/bin/sleep 99999 it's work

Hyperpwn works correctly on macOS? Can you post a screenshot about it?

joeycold commented 4 years ago

/bin/sleep 99999 it's work

Hyperpwn works correctly on macOS? Can you post a screenshot about it? image

yes,after use '99999' in hyperpwn-gef.yml it just work! and the scene i test is remote debug with android gdbserver.btw:GEF seems doesn't support Mach-O format.

FishMan132 commented 4 years ago

image