Hello dear community,
I am having some problems excluding ports from scanning. I did required changes in “Do not scan fragile devices or ports” and specifically entered port 445 to not be scanned (script_add_preference(name:“Exclude specific port(s) from scan”, type:“entry”, value:“445:tcp:full”)), but anyways there are some tests that are still running against this port, for example “SMB Brute Force Logins With Default Credentials” . I noticed that inside this one, there is a function get_port_state(port) that is used, but i could not find anywhere how it is working.
Anyways, is there other way in Openvas to exclude specific ports from scanning other then from test “Do not scan fragile devices or ports” ?