Skip to content

Instantly share code, notes, and snippets.

@icchy
Created April 13, 2017 08:32
Show Gist options
  • Save icchy/bb7a72531ce3657751de6e931194b422 to your computer and use it in GitHub Desktop.
Save icchy/bb7a72531ce3657751de6e931194b422 to your computer and use it in GitHub Desktop.
angr launcher for Docker
function run_angr() {
if [ $# -gt 0 ]; then
WRAPPER=$(basename `mktemp`)
cat << EOF > $WRAPPER
#!/bin/sh
. ~/.virtualenvs/angr/bin/activate
rm -f \$0
\$@
EOF
chmod +x $WRAPPER
docker run \
-v `pwd`:/home/angr/mnt \
-u angr \
-w /home/angr/mnt \
-it --rm angr/angr \
./$WRAPPER $@
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment