Nmap:Penggunaan: Difference between revisions

No edit summary
Line 58: Line 58:
Replace “20” with the desired number. Output example:
Replace “20” with the desired number. Output example:


  [root@securitytrails:~]nmap --top-ports 20 localhost
  kangtain@kangtain-comp:~$ nmap --top-ports 20 192.168.100.91
  Starting Nmap 6.40 ( http://nmap.org ) at 2018-10-01 10:02 EDT
  Starting Nmap 7.80 ( https://nmap.org ) at 2022-07-19 21:51 WIB
  Nmap scan report for localhost (127.0.0.1)
  Nmap scan report for srv20.domain.com (192.168.100.91)
  Host is up (0.000016s latency).
  Host is up (0.089s latency).
  Other addresses for localhost (not scanned): 127.0.0.1
   
  PORT    STATE    SERVICE
  PORT    STATE    SERVICE
  21/tcp  closed  ftp
  21/tcp  filtered ftp
  22/tcp  closed  ssh
  22/tcp  filtered ssh
  23/tcp  closed  telnet
  23/tcp  filtered telnet
  25/tcp  closed  smtp
  25/tcp  filtered smtp
  53/tcp  closed  domain
  53/tcp  filtered domain
  80/tcp  filtered http
  80/tcp  open    http
  110/tcp  closed  pop3
  110/tcp  filtered pop3
  111/tcp  closed  rpcbind
  111/tcp  filtered rpcbind
  135/tcp  closed  msrpc
  135/tcp  filtered msrpc
  139/tcp  closed  netbios-ssn
  139/tcp  filtered netbios-ssn
  143/tcp  closed  imap
  143/tcp  filtered imap
  443/tcp  filtered https
  443/tcp  open    https
  445/tcp  closed  microsoft-ds
  445/tcp  filtered microsoft-ds
  993/tcp  closed  imaps
  993/tcp  filtered imaps
  995/tcp  closed  pop3s
  995/tcp  filtered pop3s
  1723/tcp closed  pptp
  1723/tcp filtered pptp
  3306/tcp closed  mysql
  3306/tcp filtered mysql
  3389/tcp closed  ms-wbt-server
  3389/tcp filtered ms-wbt-server
  5900/tcp closed  vnc
  5900/tcp filtered vnc
  8080/tcp closed  http-proxy
  8080/tcp filtered http-proxy
Nmap done: 1 IP address (1 host up) scanned in 3.30 seconds


===7. Scan hosts and IP addresses reading from a text file===
===7. Scan hosts and IP addresses reading from a text file===