コード例 #1
0
ファイル: Wifite.py プロジェクト: wflk/wifite2
    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()
コード例 #2
0
    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()
コード例 #3
0
ファイル: Wifite.py プロジェクト: j1m1h3ndr1x/wifite2
    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()
コード例 #4
0
    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()