Created
May 12, 2010 08:39
-
-
Save r00tw33d/398341 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/sh | |
# bash file by r00t_w33d | |
# Find my internet IP address with and without TOR routing | |
# Dependences: curl, tor (running on the 9050 port) | |
echo "Finding IP address\n" | |
IPAGE='http://www.whatismyip.com/automation/n09230945.asp' | |
echo "at -> \t $IPAGE\n\nRetriving IP..." | |
RAWIP="`curl --progress-bar $IPAGE`" | |
echo "\nRetriving IP trough TOR..." | |
SOCKSIP=`curl --progress-bar --socks4a 127.0.0.1:9050 $IPAGE` | |
echo "\n---\nRaw IP ->\t$RAWIP" | |
echo "TOR IP ->\t$SOCKSIP" | |
echo "\ndone." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Script para obtener la dirección IP (salida a internet) usada con/sin TOR routing