Created
February 11, 2016 23:02
-
-
Save mauricioprado00/2a955e819dbdc6a0f6b6 to your computer and use it in GitHub Desktop.
This file contains 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 | |
# the file whoami.php should be placed in http://someserver/ with this content: | |
# <?php echo $_SERVER['REMOTE_ADDR']; | |
function do100tor() { | |
for i in {1..100} | |
do | |
tor > /dev/null 2>&1 & | |
torpid=$! | |
sleep 1 | |
torsocks curl -s https://someserver/whoami.php | |
echo | |
kill $torpid | |
done | |
} | |
function testtor() { | |
do100tor | tee /tmp/ips | |
} | |
testtor |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment