Created
August 20, 2021 12:25
-
-
Save Fi5t/f2b06ed4738a8ca4b43f6b21d02fce5e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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