added one_gadget

This commit is contained in:
Yan 2018-03-01 18:51:51 -07:00
parent 85026a493d
commit 8a9b52d5a6
2 changed files with 28 additions and 0 deletions

View file

@ -27,6 +27,7 @@ Installers for the following tools are included:
| binary | [hongfuzz](https://github.com/google/honggfuzz) | A general-purpose, easy-to-use fuzzer with interesting analysis options. | <!--tool--><!--test-->
| binary | [libheap](https://github.com/cloudburst/libheap) | gdb python library for examining the glibc heap (ptmalloc) | <!--tool--><!--no-test-->
| binary | [miasm](https://github.com/cea-sec/miasm) | Reverse engineering framework in Python. | <!--tool--> <!--test-->
| binary | [one_gadget](https://github.com/david942j/one_gadget) | Magic gadget search for libc. | <!--tool--> <!--test-->
| binary | [panda](https://github.com/moyix/panda) | Platform for Architecture-Neutral Dynamic Analysis. | <!--tool--><!--no-test-->
| binary | [pathgrind](https://github.com/codelion/pathgrind) | Path-based, symbolically-assisted fuzzer. | <!--tool--><!--failing-->
| binary | [peda](https://github.com/longld/peda) | Enhanced environment for gdb. | <!--tool--><!--test-->

27
one_gadget/install Executable file
View file

@ -0,0 +1,27 @@
#!/bin/bash -ex
gem install --user-install one_gadget
GEM_BIN_PATH=$(gem environment | grep "USER INSTALL" | awk -F ': ' '{ print $2 }')/bin
MAGIC="# ctf-tools: gem install"
for f in ~/.bashrc ~/.zshrc; do
if [[ -e "$f" ]]; then
if ! grep "$MAGIC" "$f" >/dev/null 2>&1; then
cat >> "$f" << EOF
$MAGIC
export PATH=\$PATH:$GEM_BIN_PATH
EOF
fi
fi
done
f=~/.config/fish/config.fish
if [[ -e "$f" ]]; then
if ! grep "$MAGIC" "$f" >/dev/null 2>&1; then
cat >> "$f" << EOF
$MAGIC
set -x PATH \$PATH $GEM_BIN_PATH
EOF
fi
fi