Skip to content

Instantly share code, notes, and snippets.

@r00tw33d
Created May 12, 2010 08:39
Show Gist options
  • Save r00tw33d/398341 to your computer and use it in GitHub Desktop.
Save r00tw33d/398341 to your computer and use it in GitHub Desktop.
#! /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."
@r00tw33d
Copy link
Author

Script para obtener la dirección IP (salida a internet) usada con/sin TOR routing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment