Initializes Wifite. Checks for root permissions and ensures dependencies are installed.
(self)
| 15 | class 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): |
nothing calls this directly
no test coverage detected