Created
February 11, 2020 13:08
-
-
Save zetc0de/4890acf1197d4d77a0508921d20a7d07 to your computer and use it in GitHub Desktop.
Simple MobSF runner, separate your test and re-test environment
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 [ "$1" == "test" ]; then | |
if [ "$2" == "start" ]; then | |
teststart=$(docker start 7b46ed805e27) | |
echo "MobSF container on $teststart is started http://127.0.0.1:8000/" | |
elif [ "$2" == "stop" ]; then | |
teststop=$(docker stop 7b46ed805e27) | |
echo "MobSF container on $teststop is stopped!" | |
else | |
echo "Usage : mobsf test/retest start | stop" | |
fi | |
elif [ "$1" == "retest" ]; then | |
if [ "$2" == "start" ]; then | |
reteststart=$(docker start b0ac466cc13f) | |
echo "MobSF container on $reteststart is started http://127.0.0.1:8001/" | |
elif [ "$2" == "stop" ]; then | |
reteststop=$(docker stop b0ac466cc13f) | |
echo "MobSF container on $reteststop is stopped!" | |
else | |
echo "Usage : mobsf test/retest start | stop" | |
fi | |
else | |
echo "Usage : mobsf test/retest start | stop" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment