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

Method check

autorecon/default-plugins/dirbuster.py:25–41  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

23 self.match_service_name('^nacn_http$', negative_match=True)
24
25 def check(self):
26 tool = self.get_option('tool')
27 if tool == 'feroxbuster' and which('feroxbuster') is None:
28 self.error('The feroxbuster program could not be found. Make sure it is installed. (On Kali, run: sudo apt install feroxbuster)')
29 return False
30 elif tool == 'gobuster' and which('gobuster') is None:
31 self.error('The gobuster program could not be found. Make sure it is installed. (On Kali, run: sudo apt install gobuster)')
32 return False
33 elif tool == 'dirsearch' and which('dirsearch') is None:
34 self.error('The dirsearch program could not be found. Make sure it is installed. (On Kali, run: sudo apt install dirsearch)')
35 return False
36 elif tool == 'ffuf' and which('ffuf') is None:
37 self.error('The ffuf program could not be found. Make sure it is installed. (On Kali, run: sudo apt install ffuf)')
38 return False
39 elif tool == 'dirb' and which('dirb') is None:
40 self.error('The dirb program could not be found. Make sure it is installed. (On Kali, run: sudo apt install dirb)')
41 return False
42
43 async def run(self, service):
44 dot_extensions = ','.join(['.' + x for x in self.get_option('ext').split(',')])

Callers

nothing calls this directly

Calls 2

get_optionMethod · 0.80
errorMethod · 0.45

Tested by

no test coverage detected