Skip to content

Instantly share code, notes, and snippets.

@mauricioprado00
Created February 11, 2016 23:02
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 mauricioprado00/2a955e819dbdc6a0f6b6 to your computer and use it in GitHub Desktop.
Save mauricioprado00/2a955e819dbdc6a0f6b6 to your computer and use it in GitHub Desktop.
#!/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