Created
May 4, 2016 15:53
-
-
Save JustinAzoff/6fc117ee3f790d4d99817bc939881ba2 to your computer and use it in GitHub Desktop.
addr_scan_policy example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export { | |
const scan_ports: set[port] = {22/tcp,3389/tcp} &redef; | |
} | |
hook Scan::addr_scan_policy(scanner: addr, victim: addr, scanned_port: port) | |
{ | |
if(scanned_port !in scan_ports) | |
break; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment