add seccomp-tools

This commit is contained in:
Emanuel Boderash 2017-11-26 18:22:21 -07:00 committed by Yan
parent f986af55fb
commit 7ee664a0dc
2 changed files with 28 additions and 0 deletions

View file

@ -43,6 +43,7 @@ Installers for the following tools are included:
| binary | [rr](http://rr-project.org) | Record and Replay Debugging Framework | <!--tool--><!--test--> | binary | [rr](http://rr-project.org) | Record and Replay Debugging Framework | <!--tool--><!--test-->
| binary | [scratchabit](https://github.com/pfalcon/ScratchABit) | Easily retargetable and hackable interactive disassembler | <!--tool--><!--test--> | binary | [scratchabit](https://github.com/pfalcon/ScratchABit) | Easily retargetable and hackable interactive disassembler | <!--tool--><!--test-->
| binary | [scratchablock](https://github.com/pfalcon/ScratchABlock) | Yet another crippled decompiler project | <!--tool--><!--test--> | binary | [scratchablock](https://github.com/pfalcon/ScratchABlock) | Yet another crippled decompiler project | <!--tool--><!--test-->
| binary | [seccomp-tools](https://github.com/david942j/seccomp-tools) | Provides powerful tools for seccomp analysis | <!--tool--><!--test-->
| binary | [shellnoob](https://github.com/reyammer/shellnoob) | Shellcode writing helper. | <!--tool--><!--test--> | binary | [shellnoob](https://github.com/reyammer/shellnoob) | Shellcode writing helper. | <!--tool--><!--test-->
| binary | [shellsploit](https://github.com/b3mb4m/shellsploit-framework) | Shellcode development kit. | <!--tool--><!--test--> | binary | [shellsploit](https://github.com/b3mb4m/shellsploit-framework) | Shellcode development kit. | <!--tool--><!--test-->
| binary | [snowman](https://github.com/yegord/snowman) | Cross-architecture decompiler. | <!--tool--><!--test--> | binary | [snowman](https://github.com/yegord/snowman) | Cross-architecture decompiler. | <!--tool--><!--test-->

27
seccomp-tools/install Normal file
View file

@ -0,0 +1,27 @@
#!/bin/bash -ex
gem install --user-install seccomp-tools
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