def main(self): ''' Either performs action based on arguments, or starts attack scanning ''' 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}') return Configuration.initialize(load_interface=False) if Configuration.show_cracked: self.display_cracked() elif Configuration.check_handshake: self.check_handshake(Configuration.check_handshake) elif Configuration.crack_wpa: # TODO: Crack .cap file at crack_wpa Color.pl('{!} Unimplemented method: crack_wpa') pass elif Configuration.crack_wep: # TODO: Crack .cap file at crack_wep Color.pl('{!} Unimplemented method: crack_wep') pass elif Configuration.update: # TODO: Get latest version from github Color.pl('{!} Unimplemented method: update') pass else: Configuration.get_interface() self.run()
def main(self): ''' Either performs action based on arguments, or starts attack scanning ''' 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}') return Configuration.initialize(load_interface=False) if Configuration.show_cracked: self.display_cracked() elif Configuration.check_handshake: self.check_handshake(Configuration.check_handshake) else: Configuration.get_interface() self.run()