nmmapper / python3-nmap

A python 3 library which helps in using nmap port scanner. This is done by converting each nmap command into a callable python3 method or function. System administrators can now automatic nmap scans using python
https://www.nmmapper.com/sys/networkmapper/nmap/online-port-scanning/
GNU General Public License v3.0
277 stars 73 forks source link

Can't exclude a script(s) #97

Closed javelineou closed 7 months ago

javelineou commented 1 year ago

I'm trying to run a SSL* related scripts to a host except for ssl-dh-params and ssl-enum-ciphers scripts. I tried with the command below but not working.

nmap = nmap3.NmapScanTechniques()
result_ssl = nmap.nmap_syn_scan(
    "10.0.0.1",
    args="--script ssl* and not ssl-dh-params,ssl-enum-ciphers --top-ports 1000 -T5",
)

According to Nmap documentation, use not operator to exclude script(s)

nmap --script "(default or safe or intrusive) and not http-*"
> Loads scripts in the default, safe, or intrusive categories, except for those whose names start with http-.
nmmapper commented 1 year ago

Requesting checking