diff --git a/API-Documentation.md b/API-Documentation.md index b5ba393..c6471f9 100644 --- a/API-Documentation.md +++ b/API-Documentation.md @@ -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\d+)\/(?P(tcp|udp))(.*)open(\s*)(?P[\w\-\/]+)(\s*)(.*)$'` +`^(?P\d+)\/(?P(tcp|udp))(.*)open(\s*)(?P[\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\d+)\/(?P(tcp|udp))(.*)open(\s*)(?P[\w\-\/]+)(\s*)(.*)$'` +`^(?P\d+)\/(?P(tcp|udp))(.*)open(\s*)(?P[\w\-\/]+)(\s*)(.*)$` This method returns either a list of Service objects (if the regular expression matched) or an empty list (if it did not). \ No newline at end of file