MCPcopy
hub / github.com/derv82/wifite2 / __init__

Method __init__

wifite/__main__.py:17–32  ·  view source on GitHub ↗

Initializes Wifite. Checks for root permissions and ensures dependencies are installed.

(self)

Source from the content-addressed store, hash-verified

15class Wifite(object):
16
17 def __init__(self):
18 '''
19 Initializes Wifite. Checks for root permissions and ensures dependencies are installed.
20 '''
21
22 self.print_banner()
23
24 Configuration.initialize(load_interface=False)
25
26 if os.getuid() != 0:
27 Color.pl('{!} {R}error: {O}wifite{R} must be run as {O}root{W}')
28 Color.pl('{!} {R}re-run with {O}sudo{W}')
29 Configuration.exit_gracefully(0)
30
31 from .tools.dependency import Dependency
32 Dependency.run_dependency_check()
33
34
35 def start(self):

Callers

nothing calls this directly

Calls 5

print_bannerMethod · 0.95
initializeMethod · 0.80
plMethod · 0.80
exit_gracefullyMethod · 0.80
run_dependency_checkMethod · 0.80

Tested by

no test coverage detected