ScanSSH – Fast SSH Server And Open Proxy Scanner

scannssh

ScanSSH is a free and open source utility that scans the given list of addresses or networks for open proxies, SSH protocol servers, Web and SMTP servers. It not just scans, but also displays the version of the running services. You can use it to collect statistics on the deployment of SSH protocol servers in your company or the Internet as whole. Also, you can use it to ensure all your machines are running the latest SSH protocol versions. The common use case of this utility could be information gathering for the pentesters and security professionals.

In this guide, we will see how to install ScanSSH on various Unix-like operating systems and how to use it for gathering details of running services.

ScanSSH – Fast SSH Server And Open Proxy Scanner

Installation

On Arch Linux and derivatives, you can install it from AUR using any AUR helper programs.

Using Pacaur:

pacaur -S scanssh

Using Packer:

packer -S scanssh

Using Yaourt:

yaourt -S scanssh

On Fedora:

sudo dnf install scanssh

On Debian, Ubuntu, Linux Mint:

sudo apt-get install scanssh

On other distributions, you can download the source from the GitHub page given at the end of this guide and manually compile and install it yourself.

ScanSSH Usage

The typical syntax of ScanSSH is:

scanssh [-VIERph] [-s scanners,...] [-n ports,...] [-u socks hosts,...] [-e excludefile] addresses...

Let us see some examples. The following command will scan for ssh servers:

sudo scanssh -s ssh 192.168.43.0/24

If you want to scan for SSH servers on port 22 only, you could use:

sudo scanssh -n 22 -s ssh 192.168.43.0/24

Also, you can specify only one host IP address to scan like below:

sudo scanssh -s ssh 192.168.43.192

And, this command will scan the given network for open proxies.

sudo scanssh -p 192.168.43.0/24

Here, -p flag is used for scanning open proxies.

Not just SSH and open proxies, ScanSSH will scan for the following modules.

  • socks5 – detects SOCKS v5 proxy
  • socks4 – detects SOCKS v4 proxy
  • http-proxy – detects HTTP get proxy
  • http-connect – detects HTTP connect proxy
  • telnet-proxy – detects telnet proxy

For more details, check man pages.

man scanssh

And, that’s all for now. Hope this helps. If you find our guides useful, please share them on your social, professional networks and support OSTechNix!

Cheers!

Resources:

Thanks for stopping by!

Help us to help you:

Have a Good day!!

You may also like...