RunBin
June 8, 2016 · View on GitHub
Execute data on the stack (used for the time being).
Installation
From Binary +++++++++++
Prebuilt binaries exist for both Linux and Windows.
From Source +++++++++++
Requirements
-
Cofyc/argparse <https://github.com/Cofyc/argparse>_ MITIt was added as RunBin's submodule.
Build Dependencies
-
SCons <http://scons.org/>_Alternatively, you can also manually compile RunBin without trouble.
Usage
::
runbin --help
Usage: runbin [-e] [-q]
-h, --help show this help message and exit
-e, --escape Use escape or raw hex.
-q, --quiet Don't confirm.
-V, --version Show the version and exit.
Examples ++++++++
::
runbin tests/64.bin
runbin tests/64.esc -e
runbin tests/64.txt -e
Other Utilities
-
disbin32Disassemble the given raw binary using
objdump.A shorthand for the following. (Since our memory sucks.)
::
objdump -D -b binary -m i386 -M intel "${filename}" | less -FXR
-
disbin64Disassemble the given raw binary using
objdump.A shorthand for the following. (Since our memory sucks.)
::
objdump -D -b binary -m i386:x86-64 -M intel "${filename}" | less -FXR
-
hex::
hex 4567 34353637
-
unhex::
unhex 4567 Eg
Caveats +++++++
pwntools_ also provide these two commands,
i.e. hex and unhex, which are, however, slow.
Presumably, time consumed for the OS to load Python outweighs that needed for Python to accomplish the task.
Libraries
-
Hexadecimal
-
print_hex
-
unhex
-
-
Memory
-
print_mem
-
make_exec
-
exec_addr
-
-
String
- remove_chars
.. _pwntools: https://github.com/Gallopsled/pwntools