From 3007850a322b857f307d71a558619741a015ed36 Mon Sep 17 00:00:00 2001 From: Jacobsin Date: Sat, 10 Jun 2017 23:32:01 -0600 Subject: [PATCH] Bug fix for not being root --- Wifite.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Wifite.py b/Wifite.py index 3eec25a..70b2572 100755 --- a/Wifite.py +++ b/Wifite.py @@ -13,6 +13,7 @@ from py.CrackHandshake import CrackHandshake from json import loads import os +from sys import exit class Wifite(object): @@ -22,6 +23,7 @@ class Wifite(object): if os.getuid() != 0: Color.pl('{!} {R}error: {O}wifite{R} must be run as {O}root{W}') Color.pl('{!} {O}re-run as: sudo ./Wifite.py{W}') + exit(0) return Configuration.initialize(load_interface=False) @@ -213,4 +215,3 @@ if __name__ == '__main__': except KeyboardInterrupt: Color.pl('\n{!} {O}interrupted, shutting down...{W}') Configuration.exit_gracefully(0) -