Nmap scripts: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
Keine Bearbeitungszusammenfassung
 
(9 dazwischenliegende Versionen von 2 Benutzern werden nicht angezeigt)
Zeile 3: Zeile 3:
=Finding Vulnerability Scanning Scripts=
=Finding Vulnerability Scanning Scripts=
*locate *vuln*.nse
*locate *vuln*.nse
=Alle Schwachstellen=
oder besser
*nmap -sV --script vulners 10.0.10.104
*cd /usr/share/nmap/scripts
*ls
 
=help=
*[[nmap-scripts-help]]
 
=ssh misc=
*[[nmap-scripts-ssh]]
 
=ssl misc=
*[[nmap-scripts-ssl]]
=smtp misc=
*[[nmap-scripts-smtp]]
=proxy misc=
*[[nmap-scripts-proxy]]
 
=http misc=
*[[nmap-scripts-http]]
=wordpress-version misc=
*[[nmap-scripts-wordpress-version]]




=Finde Offene Proxys=
*nmap --script "http-open-proxy" -p 3128  10.82.10.40
Host is up (0.0033s latency).
rDNS record for 10.82.10.40: squid.linux.lab
PORT    STATE SERVICE
3128/tcp open  squid-http
| http-open-proxy: Potentially OPEN proxy.
|_Methods supported: GET HEAD CONNECTION


=Help with a script=
=Alle Schwachstellen=
*nmap --script-help=nfs-showmount.nse
*nmap -sV --script vulners 10.0.10.104
<pre>
Starting Nmap 7.60 ( https://nmap.org ) at 2017-11-13 07:26 CET


nfs-showmount
Categories: discovery safe
https://nmap.org/nsedoc/scripts/nfs-showmount.html
  Shows NFS exports, like the <code>showmount -e</code> command.
</pre>


=NFS Check=
=NFS Check=
Zeile 35: Zeile 38:
=Traceroute Geolocation=
=Traceroute Geolocation=
*nmap --traceroute  --script traceroute-geolocation.nse -p 80 www.facebook.com
*nmap --traceroute  --script traceroute-geolocation.nse -p 80 www.facebook.com
=Show HTTP Title=
*nmap --script http-title -sV -p 443  10.3.4.12
=Find Files or interestings Dirs on Webserver=
*nmap --script http-enum -p 443 10.3.4.12
=FTP Bannergrabbing=
=FTP Bannergrabbing=
*nmap -sV -p 21 --script=banner 10.3.4.12
*nmap -sV -p 21 --script=banner 10.3.4.12
=HTTP Bannergrabbing=
*nmap -sV -p 80 --script=banner 10.3.4.12


=Update the Script Database=
=Update the Script Database=
*nmap --script-updatedb
*nmap --script-updatedb
=ssh misc=
*[[nmap-scripts-ssh]]
=ssl misc=
*[[nmap-scripts-ssl]]


=links=
=links=

Aktuelle Version vom 1. März 2023, 04:13 Uhr

Locate the scripts

  • locate nse | grep scripts

Finding Vulnerability Scanning Scripts

  • locate *vuln*.nse

oder besser

  • cd /usr/share/nmap/scripts
  • ls

help

ssh misc

ssl misc

smtp misc

proxy misc

http misc

wordpress-version misc


Alle Schwachstellen

  • nmap -sV --script vulners 10.0.10.104


NFS Check

  • nmap -sV --script=nfs-showmount.nse 10.82.10.40

SMB Check

  • nmap -p 445 --script smb-os-discovery 10.82.10.40

Traceroute Geolocation

  • nmap --traceroute --script traceroute-geolocation.nse -p 80 www.facebook.com

FTP Bannergrabbing

  • nmap -sV -p 21 --script=banner 10.3.4.12

Update the Script Database

  • nmap --script-updatedb

links