Skip to content

Instantly share code, notes, and snippets.

@icchy
Created Apr 13, 2017
Embed
What would you like to do?
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