Updated API Documentation (markdown)

Tib3rius 2021-08-15 20:11:20 -04:00
parent 78cb4bf322
commit 14ea715d55
1 changed files with 2 additions and 2 deletions

@ -47,7 +47,7 @@ The `extract_service` method can be used by a PortScan plugin to extract a servi
If a regular expression is provided, it must contain 3 named groups: port, protocol, and service which match the port (e.g. 80), protocol (e.g. TCP), and service name (e.g. http) respectively. As an example, the following regular expression is used by AutoRecon to extract services from Nmap output:
`'^(?P<port>\d+)\/(?P<protocol>(tcp|udp))(.*)open(\s*)(?P<service>[\w\-\/]+)(\s*)(.*)$'`
`^(?P<port>\d+)\/(?P<protocol>(tcp|udp))(.*)open(\s*)(?P<service>[\w\-\/]+)(\s*)(.*)$`
This method returns either a Service object (if the regular expression matched) or None (if it did not).
@ -56,6 +56,6 @@ The `extract_services` method can be used by a PortScan plugin to extract multip
If a regular expression is provided, it must contain 3 named groups: port, protocol, and service which match the port (e.g. 80), protocol (e.g. TCP), and service name (e.g. http) respectively. As an example, the following regular expression is used by AutoRecon to extract services from Nmap output:
`'^(?P<port>\d+)\/(?P<protocol>(tcp|udp))(.*)open(\s*)(?P<service>[\w\-\/]+)(\s*)(.*)$'`
`^(?P<port>\d+)\/(?P<protocol>(tcp|udp))(.*)open(\s*)(?P<service>[\w\-\/]+)(\s*)(.*)$`
This method returns either a list of Service objects (if the regular expression matched) or an empty list (if it did not).