This is how to use tor from command line ..
First start with a install
I use debian
sudo apt install tor
Add the following to file :
sudo vi /etc/tor/torrc
ControlPort 9051
CookieAuthentication 0
Save and exit
Restart tor
sudo /etc/init.d/tor restart
How to use
You will need curl and geoiplookup, shodan api and to be installed and configured
First check you current IP
shodan myip
210.174.**.****
whois 210.174.**.****
Less Specific Info.
----------
Sony Network Communications Inc.
[Allocation] 210.174.0.0/18
geoiplookup 210.174.**.****
GeoIP Country Edition: JP, Japan
This is your global IP .... Always change this and use vpn .... or openvpn...
Now run the following:
torify curl ifconfig.me 2>/dev/null
185.86.***.****
Then
echo -e 'AUTHENTICATE ""\r\nsignal NEWNYM\r\nQUIT' | nc 127.0.0.1 9051
250 OK
250 OK
250 closing connection
As you can see the tor socket is up. Lets test
torify shodan myip
176.10.99.200
geoiplookup 176.10.99.200
GeoIP Country Edition: CH, Switzerland
Have fun.....
No comments:
Post a Comment