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

Method match_service_name

autorecon/plugins.py:184–202  ·  view source on GitHub ↗
(self, name, negative_match=False)

Source from the content-addressed store, hash-verified

182
183 @final
184 def match_service_name(self, name, negative_match=False):
185 if not isinstance(name, list):
186 name = [name]
187
188 valid_regex = True
189 for r in name:
190 try:
191 re.compile(r)
192 except re.error:
193 print('Invalid regex: ' + r)
194 valid_regex = False
195
196 if valid_regex:
197 if negative_match:
198 self.ignore_service_names = list(set(self.ignore_service_names + name))
199 else:
200 self.service_names = list(set(self.service_names + name))
201 else:
202 sys.exit(1)
203
204 @final
205 def require_ssl(self, boolean):

Callers 15

configureMethod · 0.80
configureMethod · 0.80
configureMethod · 0.80
configureMethod · 0.80
configureMethod · 0.80
configureMethod · 0.80
configureMethod · 0.80
configureMethod · 0.80
configureMethod · 0.80
configureMethod · 0.80
configureMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected