Login Register




The stories and information posted here are artistic works of fiction and falsehood. Only a fool would take anything posted here as fact.


[TUTORIAL] Anonymizing your nmap scans through TOR filter_list
Author
Message
[TUTORIAL] Anonymizing your nmap scans through TOR #1
How to make semi-anonymous
Nmap scans with TOR on Linux

by theLurkingMass


I use this method when attacking systems with more astute sysadmins and less traffic. An unprotected nmap scan can stick out like a sore thumb so its best to use this method.

Dependencies:

TOR (of course)
Proxychains (sudo apt-get install proxychains)
Nmap (sudo apt-get install nmap)

0x01.

Open up a text editor and copyandpasta this tiny program I wrote for automation:

Code:
#!/bin/bash if [ -z "$2" ]; then echo "Syntax:" echo "./nmaptunnl.sh [host] [ports]" exit fi proxychains nmap -sT -PN -n -sV -p $2 $1

Then Save it as nmaptunnl.sh.

0x02.

Open up terminal and navigate to the file. Run it using bash ./nmaptunnl.sh.

Then use the syntax below:

Spoiler:
[Image: AtXQBWt.png]



0x03.

Scan the host and profit (like so):

Code:
thelurkingmass@thelurkingmass:~/Documents/nmaptunnl$ bash nmaptunnl.sh www.google.com 21,80,23 ProxyChains-3.1 (http://proxychains.sf.net) Starting Nmap 5.21 ( http://nmap.org ) at 2014-03-30 19:17 EST |DNS-request| www.google.com |S-chain|-<>-127.0.0.1:9050-<><>-4.2.2.2:53-<><>-OK |DNS-response| www.google.com is 173.194.116.145 |S-chain|-<>-127.0.0.1:9050-<><>-173.194.116.145:21-<--timeout |S-chain|-<>-127.0.0.1:9050-<><>-173.194.116.145:23-<--timeout |S-chain|-<>-127.0.0.1:9050-<><>-173.194.116.145:80-<><>-OK RTTVAR has grown to over 2.3 seconds, decreasing to 2.0 RTTVAR has grown to over 2.3 seconds, decreasing to 2.0 |S-chain|-<>-127.0.0.1:9050-<><>-173.194.116.145:80-<><>-OK Nmap scan report for www.google.com (173.194.116.145) Host is up (13s latency). PORT STATE SERVICE VERSION 21/tcp closed ftp 23/tcp closed telnet 80/tcp open http Google httpd 2.0 (GFE) Service Info: OS: Linux Service detection performed. Please report any incorrect results at http://nmap.org/submit/ . Nmap done: 1 IP address (1 host up) scanned in 39.04 seconds

Enjoy and if you have any queries feel free to ask.

Reply

RE: [TUTORIAL] Anonymizing your nmap scans through TOR #2
dear god... you're not retarded. You actually made sure to use the -sT flag for this.
What kind of world am I living in when I can't make fun of you online for being retarded?!
PGP
Sign: F202 79C9 76F7 40BB 54EC 494F 5DEF 1D70 14C1 C4CC
Encrypt: A5B3 1B21 55E1 80AF 4C6E DE83 467B 8EFC 3DEE 681C
Auth: CD55 E8A5 1A08 2933 8BA6 BC88 D81F 1943 739A 3C47

Reply

RE: [TUTORIAL] Anonymizing your nmap scans through TOR #3
echo -e "alias nmap='nmap --proxy \"socks4://127.0.0.1:9050\"'\n" >> ~/.bash_aliases

Reply

RE: [TUTORIAL] Anonymizing your nmap scans through TOR #4
(04-23-2014, 02:28 PM)Reiko Wrote: dear god... you're not retarded. You actually made sure to use the -sT flag for this.
What kind of world am I living in when I can't make fun of you online for being retarded?!

Well you still totally can. There's always a way to call someone retarded.
[Image: qOXNZIL.png]

Reply

RE: [TUTORIAL] Anonymizing your nmap scans through TOR #5
Or you could just use torify, you probably already have it and don't know it.

Code:
torify curl ifconfig.me 5.79.81.200

Code:
man torify

Reply

RE: [TUTORIAL] Anonymizing your nmap scans through TOR #6
That background looks really nice. Good tutorial as well Biggrin
Unleash the lead from my pistol into my head bumpin' crystal

Reply

RE: [TUTORIAL] Anonymizing your nmap scans through TOR #7
(04-23-2014, 02:59 PM)w00t Wrote: echo -e "alias nmap='nmap --proxy \"socks4://127.0.0.1:9050\"'\n" >> ~/.bash_aliases

Thats definetly a better method instead of installing so many dependencies. You win :3

(04-24-2014, 12:58 AM)Kosaki Wrote: That background looks really nice. Good tutorial as well Biggrin

Thanks very much :3

(04-23-2014, 06:18 PM)e523e Wrote: Or you could just use torify, you probably already have it and don't know it.

Code:
torify curl ifconfig.me 5.79.81.200

Code:
man torify

Thanks for this share, this is certainly useful not just for nmap.
(This post was last modified: 04-24-2014, 01:18 AM by superMAUS.)

Reply

RE: [TUTORIAL] Anonymizing your nmap scans through TOR #8
(04-23-2014, 05:33 PM)Tiny Tina Wrote: Well you still totally can. There's always a way to call someone retarded.

You're retarded.
[Image: BXqGARG.png]

Reply

RE: [TUTORIAL] Anonymizing your nmap scans through TOR #9
(04-24-2014, 01:34 AM)Duubz Wrote: You're retarded.

Spoiler:
[Image: 1398006450079.gif]


On a serious note, Duubz: <3
[Image: qOXNZIL.png]

Reply

RE: [TUTORIAL] Anonymizing your nmap scans through TOR #10
(04-24-2014, 06:28 AM)Tiny Tina Wrote:
Spoiler:
[Image: 1398006450079.gif]


On a serious note, Duubz: <3

Stop using the fucking heart okay? I challenge you.

Reply