scanssh(1) | General Commands Manual | scanssh(1) |
scanssh
— scans
the Internet for open proxies and SSH servers
scanssh |
[-VIERph ] [-s
scanners,...] [-n
ports,...] [-e
excludefile] addresses... |
ScanSSH
scans the given addresses and
networks for running services. It mainly allows the detection of open
proxies and Internet services. For known services,
ScanSSH
will query their version number and displays
the results in a list.
The adresses can be either specified as an IPv4 address or an CIDR like IP prefix, ipaddress/masklength. Ports can be appended by adding a colon at the end of address specification.
Additionally, the following two commands can be prefixed to the address:
The options are as follows:
-V
scanssh
to print its version number.-I
-E
-R
-p
ScanSSH
should operate as a proxy
detector. This flag sets the default modes and default scanners to detect
open proxies.-h
-n
ports,...-s
scanners-e
excludefileThe output from scanssh
contains only IP
addresses. However, the IP addresses can be converted to names with the
logresolve(8) tool included in the Apache webserver.
The following command scans the class C network 10.0.0.0 - 10.0.0.255 for open proxies:
scanssh -p 10.0.0.0/24
The next command scans for ssh servers on port 22 only:
scanssh -n 22 -s ssh 192.168.0.0/16
The following command can be used in a parallel scan. Two hosts scan the specified networks randomly, where this is the first host:
scanssh 'random(0,rsd)/split(1,2)/(192.168.0.0/16 10.1.0.0/24):22,80'
At the moment, scanssh
leaves a one line
entry in the log file of the ssh server. It is probably not possible to
avoid that.
July 17, 2000 | Debian |