All tools inherit "Dependency".
This commit is contained in:
@@ -57,7 +57,7 @@ class WEPAttackType(object):
|
||||
|
||||
class Aireplay(Thread, Dependency):
|
||||
dependency_required = True
|
||||
dependency_name = 'aircrack-ng'
|
||||
dependency_name = 'aireplay-ng'
|
||||
dependency_url = 'https://www.aircrack-ng.org/install.html'
|
||||
|
||||
def __init__(self, target, attack_type, client_mac=None, replay_file=None):
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
#!/usr/bin/python2.7
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from .dependency import Dependency
|
||||
from .airodump import Airodump
|
||||
from ..model.attack import Attack
|
||||
from ..model.wps_result import CrackResultWPS
|
||||
from ..tools.airodump import Airodump
|
||||
from ..util.color import Color
|
||||
from ..util.timer import Timer
|
||||
from ..util.process import Process
|
||||
@@ -12,7 +13,11 @@ from ..config import Configuration
|
||||
import os, time, re
|
||||
from threading import Thread
|
||||
|
||||
class Bully(Attack):
|
||||
class Bully(Attack, Dependency):
|
||||
dependency_required = False
|
||||
dependency_name = 'bully'
|
||||
dependency_url = 'https://github.com/aanarchyy/bully'
|
||||
|
||||
def __init__(self, target):
|
||||
super(Bully, self).__init__(target)
|
||||
self.total_timeouts = 0
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
from ..util.process import Process
|
||||
from ..util.color import Color
|
||||
#!/usr/bin/python2.7
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
class Dependency(object):
|
||||
required_attr_names = ['dependency_name', 'dependency_url', 'dependency_required']
|
||||
@@ -16,6 +16,9 @@ class Dependency(object):
|
||||
|
||||
@classmethod
|
||||
def fails_dependency_check(cls):
|
||||
from ..util.color import Color
|
||||
from ..util.process import Process
|
||||
|
||||
if Process.exists(cls.dependency_name):
|
||||
return False
|
||||
|
||||
|
||||
@@ -3,7 +3,12 @@
|
||||
|
||||
import re
|
||||
|
||||
class Ifconfig(object):
|
||||
from .dependency import Dependency
|
||||
|
||||
class Ifconfig(Dependency):
|
||||
dependency_required = True
|
||||
dependency_name = 'ifconfig'
|
||||
dependency_url = 'apt-get install net-tools'
|
||||
|
||||
@classmethod
|
||||
def up(cls, interface, args=[]):
|
||||
|
||||
@@ -1,7 +1,13 @@
|
||||
#!/usr/bin/python2.7
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
class Iwconfig(object):
|
||||
from .dependency import Dependency
|
||||
|
||||
class Iwconfig(Dependency):
|
||||
dependency_required = True
|
||||
dependency_name = 'iwconfig'
|
||||
dependency_url = 'apt-get install wireless-tools'
|
||||
|
||||
@classmethod
|
||||
def exists(cls):
|
||||
from ..util.process import Process
|
||||
|
||||
@@ -1,10 +1,15 @@
|
||||
#!/usr/bin/python2.7
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from .dependency import Dependency
|
||||
from ..tools.ifconfig import Ifconfig
|
||||
from ..util.color import Color
|
||||
|
||||
class Macchanger(object):
|
||||
class Macchanger(Dependency):
|
||||
dependency_required = False
|
||||
dependency_name = 'macchanger'
|
||||
dependency_url = 'apt-get install macchanger'
|
||||
|
||||
is_changed = False
|
||||
|
||||
@classmethod
|
||||
|
||||
@@ -1,11 +1,15 @@
|
||||
#!/usr/bin/python2.7
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from .dependency import Dependency
|
||||
from ..util.process import Process
|
||||
import re
|
||||
|
||||
class Pyrit(object):
|
||||
class Pyrit(Dependency):
|
||||
''' Wrapper for Pyrit program. '''
|
||||
dependency_required = False
|
||||
dependency_name = 'pyrit'
|
||||
dependency_url = 'https://github.com/JPaulMora/Pyrit/wiki'
|
||||
|
||||
def __init__(self):
|
||||
pass
|
||||
|
||||
@@ -1,18 +1,23 @@
|
||||
#!/usr/bin/python2.7
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from .dependency import Dependency
|
||||
from .airodump import Airodump
|
||||
from .bully import Bully # for PSK retrieval
|
||||
from ..model.attack import Attack
|
||||
from ..config import Configuration
|
||||
from ..util.color import Color
|
||||
from ..util.process import Process
|
||||
from ..util.timer import Timer
|
||||
from ..tools.airodump import Airodump
|
||||
from ..tools.bully import Bully # for PSK retrieval
|
||||
from ..model.wps_result import CrackResultWPS
|
||||
|
||||
import os, time, re
|
||||
|
||||
class Reaver(Attack):
|
||||
class Reaver(Attack, Dependency):
|
||||
dependency_required = False
|
||||
dependency_name = 'reaver'
|
||||
dependency_url = 'https://github.com/t6x/reaver-wps-fork-t6x'
|
||||
|
||||
def __init__(self, target):
|
||||
super(Reaver, self).__init__(target)
|
||||
|
||||
|
||||
@@ -1,11 +1,15 @@
|
||||
#!/usr/bin/python2.7
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from .dependency import Dependency
|
||||
from ..util.process import Process
|
||||
import re
|
||||
|
||||
class Tshark(object):
|
||||
class Tshark(Dependency):
|
||||
''' Wrapper for Tshark program. '''
|
||||
dependency_required = False
|
||||
dependency_name = 'tshark'
|
||||
dependency_url = 'apt-get install wireshark'
|
||||
|
||||
def __init__(self):
|
||||
pass
|
||||
|
||||
@@ -1,11 +1,15 @@
|
||||
#!/usr/bin/python2.7
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from .dependency import Dependency
|
||||
from ..util.process import Process
|
||||
import json
|
||||
|
||||
class Wash(object):
|
||||
class Wash(Dependency):
|
||||
''' Wrapper for Wash program. '''
|
||||
dependency_required = False
|
||||
dependency_name = 'wash'
|
||||
dependency_url = 'https://github.com/t6x/reaver-wps-fork-t6x'
|
||||
|
||||
def __init__(self):
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user