Skip to content

Instantly share code, notes, and snippets.

@Fi5t
Created August 20, 2021 12:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Fi5t/f2b06ed4738a8ca4b43f6b21d02fce5e to your computer and use it in GitHub Desktop.
Save Fi5t/f2b06ed4738a8ca4b43f6b21d02fce5e to your computer and use it in GitHub Desktop.
#!/bin/bash
if [ -z "$1" ]
then
echo "You have to provide a required host ip addr to connect"
else
HOST=$1
fi
if [ -z "$2" ]
then
PORT=31415
echo "The default port $PORT will be used"
else
PORT=$2
fi
$ANDROID_HOME/platform-tools/adb forward tcp:$PORT tcp:$PORT
socat -d tcp-listen:$PORT,reuseaddr,fork tcp:127.0.0.1:$PORT &
docker run --rm -it fsecurelabs/drozer drozer console connect --server $HOST
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment