Skip to content

Commit 8a9b52d

Browse files
committed
added one_gadget
1 parent 85026a4 commit 8a9b52d

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

README.md

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

one_gadget/install

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#!/bin/bash -ex
2+
3+
gem install --user-install one_gadget
4+
5+
GEM_BIN_PATH=$(gem environment | grep "USER INSTALL" | awk -F ': ' '{ print $2 }')/bin
6+
7+
MAGIC="# ctf-tools: gem install"
8+
for f in ~/.bashrc ~/.zshrc; do
9+
if [[ -e "$f" ]]; then
10+
if ! grep "$MAGIC" "$f" >/dev/null 2>&1; then
11+
cat >> "$f" << EOF
12+
$MAGIC
13+
export PATH=\$PATH:$GEM_BIN_PATH
14+
EOF
15+
fi
16+
fi
17+
done
18+
19+
f=~/.config/fish/config.fish
20+
if [[ -e "$f" ]]; then
21+
if ! grep "$MAGIC" "$f" >/dev/null 2>&1; then
22+
cat >> "$f" << EOF
23+
$MAGIC
24+
set -x PATH \$PATH $GEM_BIN_PATH
25+
EOF
26+
fi
27+
fi

0 commit comments

Comments
 (0)