|
1 | | -# tor-map |
2 | | -nmap on tor network |
| 1 | +# Tor-map |
| 2 | + |
| 3 | +This port scanner was orginally made by [Nishit Majithia](https://github.com/nishitm) for fun. |
| 4 | + |
| 5 | +It was modifed to work over **Tor** for anonymous and hidden service scanning. |
| 6 | + |
| 7 | +### Dependencies |
| 8 | +Tor-map is a python script that requries the **socks** module and a running Tor deamon on localhost. |
| 9 | + |
| 10 | +Tor-map is built to support **python3**. |
| 11 | + |
| 12 | +### Usage: |
| 13 | +`./tor-map [-h] -H HOSTS [-p PORTS] [-t TIMEOUT] [--clearnet] [--torport TORPORT]` |
| 14 | + |
| 15 | + |
| 16 | +`-H` option can be used to specify hosts, but it is assumed by default. |
| 17 | + |
| 18 | +Multiple hosts can be specified using a comma (ex. `./tor-map -H 1.1.1.1,google.com,facebookcorewwwi.onion -p 80`). |
| 19 | + |
| 20 | +Tor-map supports IP address ranges as well (ex. `./tor-map 192.168.1.0/24 -p 22`). |
| 21 | + |
| 22 | +**For private addresses, Tor is _not_ used, but a _direct_ connection is established instead.** |
| 23 | + |
| 24 | +Ports can be specified as a range (ex. `./tor-map google.com -p 20-30`),separated with a comma (ex. `./tor-map 1.1.1.1 -p 25,53,80`) or both. |
| 25 | + |
| 26 | +Ports in a range are scanned including the ends of an interval (ex. in a range "20-30" both port 20 and 30 are scanned). |
| 27 | + |
| 28 | +### Examples |
| 29 | + |
| 30 | +`./tor-map -H 1.1.1.1 -p 53,80` |
| 31 | + |
| 32 | +Scans ports 53 and 80 on 1.1.1.1 |
| 33 | + |
| 34 | +`./tor-map -H facebookcorewwwi.onion -p 80` |
| 35 | + |
| 36 | +Scan port 80 on facebookcorewwwi.onion |
| 37 | + |
| 38 | +`./tor-map -H 192.168.0.1 -p 0-1024 --clearnet` |
| 39 | + |
| 40 | +Scan ports from 0 to 1024 on 192.168.0.1 without routing traffic through Tor. |
| 41 | + |
| 42 | +`./tor-map 192.168.1.0/24,google.com -p 80` |
| 43 | + |
| 44 | +Scan the whole 192.168.1.0/24 range for an open port 80 without Tor and goole.com with Tor. |
| 45 | + |
| 46 | +`./tor-map 8.8.8.8/31 -p 53` |
| 47 | + |
| 48 | +Scan the 8.8.8.8/31 range for an open port 53 with Tor. |
| 49 | + |
| 50 | +### License |
| 51 | +**GPLv3+**: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html> |
| 52 | + |
| 53 | +This is *free* software: you are free to change and redistribute it. |
0 commit comments