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

Method check

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

Source from the content-addressed store, hash-verified

16 self.run_once(True)
17
18 def check(self):
19 tool = self.get_option('tool')
20 if tool == 'enum4linux' and which('enum4linux') is None:
21 self.error('The enum4linux program could not be found. Make sure it is installed. (On Kali, run: sudo apt install enum4linux)')
22 return False
23 elif tool == 'enum4linux-ng' and which('enum4linux-ng') is None:
24 self.error('The enum4linux-ng program could not be found. Make sure it is installed. (https://github.com/cddmp/enum4linux-ng)')
25 return False
26
27 async def run(self, service):
28 if service.target.ipversion == 'IPv4':

Callers

nothing calls this directly

Calls 2

get_optionMethod · 0.80
errorMethod · 0.45

Tested by

no test coverage detected