Skip to content

Usefool network Tools

On this page you can found a lot of usefool network tools to earn time.

lftp

lftp is a tool to connect on ftp server from your terminal.

Install lftp

apt install lftp

Basic connection

lftp ftp://USER_NAME@SERVER_IP

You can use "ls" when you're connected to your ftp server.

Connect without ssl

lftp ftp://USER_NAME@SERVER_IP -e "set ftp:ssl-allow no;"

Transfert local to remote

lftp ftp://USER_NAME@SERVER_IP -e "mirror -R /home/$USER/Backup /remote/folder"

Transfert with ignore files

Transfert your local data on remote server with ignore files.

lftp ftp://USER_NAME@SERVER_IP -e "mirror -x Media/Photos2015 -x Media/Photos2016 -R /home/$USER/Backup /remote/folder"

Media is inside Backup folder. Inside media we have 4 folders and we ignore two of them during our transfert.

Transfert without SSL support

lftp ftp://USER_NAME@SERVER_IP -e "set ftp:ssl-allow no;mirror -R /local/folder /remote/folder; quit"

nmap

Nmap is a free & opensource utility for discovery and security auditing.

Install nmap

Debian => sudo apt install nmap
Fedora => sudo dnf install nmap
Arch   => sudo pacman -S nmap

List all devices on LAN

On this example we list every devices connected to your network.

  • Gateway : 192.168.1.1
  • DHCP Range : /24
  • Subnet mask : 255.255.255.0
nmap -sP 192.168.1.1/24

After few seconds when the process have finished to analyze your network you will see on your terminal an return list where you see all devices connected to specified network.

Verify TLS status

nmap --script ssl-enum-ciphers your.domain.com -p 443

netcat

This utility reads & write data across TCP/UDP connections.

Install netcat

Debian => sudo apt install netcat (or net-tools)
Fedora => sudo dnf install nc
Arch   => sudo pacman -S gnu-netcat

Find open ports

nc -vz 192.168.1.1 1-1024

On ArchLinux or other distribution where you have installed "netcat" or "gnu-netcat" it's possible you must use

netcat -vz 192.168.1.1 1-1024

This command scan the device with 192.168.1.1 IP and he send "empty" datagram to test opened port between 1 & 1024. You can grow/reduce the range as you wish.

SSL Test tool

testssl.sh is a free command line tool which checks a server's service on any port for the support of TLS/SSL ciphers, protocols as well as some cryptographic flaws.

Install SSLTEST

You must have already installed git package to get test_ssl.

cd ~ && git clone --depth 1 https://github.com/drwetter/testssl.sh.git

How to test our website

To get all informations about your SSL/TLS conf it is realy simple just launch the script and await the result !

# Basic test
./testssl.sh your.domain.name

# html / csv / json output
./testssl.sh --html your.domain.name
./testssl.sh --csv your.domain.name
./testssl.sh --json your.domain.name

# html / csv / json output with specific filename
./testssl.sh --htmlfile name_of_file.html your.domain.name
./testssl.sh --csvfile name_of_file.csv your.domain.name
./testssl.sh --json name_of_file.json your.domain.name

Output example of ./testssl.sh --html demo.probetech.be => DemoProbe

More information

If you'll to have more informations to go more far you can visit the official website or read the documentation under ~/ssltest.sh/doc/ on your machine.