Update http.py

Fixed pattern.
This commit is contained in:
Tib3rius 2021-08-30 13:46:26 -04:00
parent c68fe48f94
commit 964c438480
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ class Curl(ServiceScan):
self.add_option("path", default="/", help="The path on the web server to curl. Default: %(default)s") self.add_option("path", default="/", help="The path on the web server to curl. Default: %(default)s")
self.match_service_name('^http') self.match_service_name('^http')
self.match_service_name('^nacn_http$', negative_match=True) self.match_service_name('^nacn_http$', negative_match=True)
self.add_pattern('(?i)Powered by [^\n]+') self.add_pattern('(?i)powered[ -]by[^\n]+')
async def run(self, service): async def run(self, service):
if service.protocol == 'tcp': if service.protocol == 'tcp':