MCPcopy Index your code
hub / github.com/AutoRecon/AutoRecon / configure

Method configure

autorecon/default-plugins/curl.py:10–14  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

8 self.tags = ['default', 'safe', 'http']
9
10 def configure(self):
11 self.add_option("path", default="/", help="The path on the web server to curl. Default: %(default)s")
12 self.match_service_name('^http')
13 self.match_service_name('^nacn_http$', negative_match=True)
14 self.add_pattern('(?i)powered[ -]by[^\n]+')
15
16 async def run(self, service):
17 if service.protocol == 'tcp':

Callers 1

registerMethod · 0.45

Calls 3

add_optionMethod · 0.80
match_service_nameMethod · 0.80
add_patternMethod · 0.80

Tested by

no test coverage detected