Nmap – Utility for scanning open ports

nmap is a tool for scanning open ports on the server. Often, new users cannot find the error, thanks to which they cannot get to their server or any application that must have access to the Internet. It is also a good way to check, what ports do we have open, which we do not use and we can close (bots will use open ports to attack servers).

If you have not logged in to the root account, remember to sudo!

INSTALLATION

nmap is not normally installed on Ubuntu, to install it we make

apt update

for package updates, and

apt install nmap

for installing the tool itself. If the installation was successful, after entering the command

nmap --version

something like this should appear to us:

USE OF THE TOOL
The simplest use of this tool comes down to typing

nmap {ADDRESS IP}

At the very beginning we have information about it, that nmap starts working. Later we have a report about our target server: information on the number of closed ports (Not shown: 997 closed ports) and a list of open ports.

PORT – otwarty port
STATE – tutaj jest informacja o tym czy port jest otwarty – OPEN – czy zamknięty – CLOSE.
SERVICE – informacja o serwisie, which uses the port (for port 22 this is ssh, for 80 http a dla portu 3306 this is mysql)

At the end we see information about the completed scan, number of IP addresses and scan time.

My use of this tool is only basic use, we can e.g.. display information about the operating system used. I recommend that you familiarize yourself with the additional nmap functions by entering nmap or man nmap.

Linux

Udostępnij
Opublikowane przez
Linux

Recent posts

KeePass2 2.52 w Ubuntu 22.04

The guide below describes how to install KeePass on Ubuntu. Całość wykonamy za pomocą kilku poleceń

2 years temu

Installing Master PDF editor in Ubuntu 22.04

Master PDF Editor is a comprehensive PDF program, which includes many features. Oprócz tworzenia i edycji

2 years temu

iotop - memory monitoring

Iotop jest prostym narzędziem dla systemów Uniksowych umożliwiającym monitorowanie użycia dowolnego nośnika pamięci flash/hdd/ssd w

2 years temu

Run multiple commands in one cron job

You can separate two or more commands with semicolons (;), Semicolon (;): służy do oddzielania

2 years temu

Changing the exif data of a photo in the Linux terminal

Poniższy poradnik opisuje w jaki sposób za pomocą konsoli możemy dokonać edycji danych zdjęcia exif.

2 years temu

Installing Rocket.Chat Server on Rocky Linux 8

The following guide describes how to install Rocket.Chat on Rocky Linux 8 Całość bardzo prosto zainstalujemy

2 years temu