https://github.com/bannsec/arm_now_docker
Dockerization of the arm_now tool
https://github.com/bannsec/arm_now_docker
Last synced: 5 months ago
JSON representation
Dockerization of the arm_now tool
- Host: GitHub
- URL: https://github.com/bannsec/arm_now_docker
- Owner: bannsec
- Created: 2018-07-12T15:46:33.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2020-10-17T02:35:23.000Z (almost 6 years ago)
- Last Synced: 2025-04-09T09:11:36.268Z (over 1 year ago)
- Language: Dockerfile
- Size: 1.95 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# arm_now_docker
Dockerization of the arm_now tool
# Overview
This is basically a docker wrapper around the `arm_now` util. Call it directly or use the following bash function to run arm_now.
```bash
function arm_now() {
DOCKER_REDIR=""
for i in "$@"
do
if [[ $i = "--redir="* ]]; then
REDIR=`echo $i | cut -f 2 -d "="`
# tcp:8000::80
PROTO=`echo $REDIR | cut -f 1 -d ":"`
OUT=`echo $REDIR | cut -f 2 -d ":"`
IN=`echo $REDIR | cut -f 4 -d ":"`
# OUT->OUT for docker, OUT->IN for qemu
DOCKER_REDIR="$DOCKER_REDIR -p $OUT:$OUT/$PROTO"
fi
done
sudo docker run -it --name arm_now -v "$PWD":/mount $DOCKER_REDIR --rm bannsec/arm_now_docker arm_now $@
}
```