Пример #1
0
def Main():

    MAC = ""
    picks = [
        'katana', 'k4tan4', 'KAtAn4', 'K4TanA', 'K4TaNA', 'KATANA', 'ANATAK',
        '|<474/\/A'
    ]
    a = hashlib.md5(random.choice(picks))
    b = a.hexdigest()
    as_int = int(b, 16)
    random.seed(bin(as_int)[2:])

    mac = [
        0x00, 0x16, 0x3e,
        random.randint(0x00, 0x7f),
        random.randint(0x00, 0xff),
        random.randint(0x00, 0xff)
    ]

    if init.var['r'] == "enable" or init.var['m'] == "null":
        MAC = ':'.join(map(lambda x: "%02x" % x, mac))

    if init.var['m'] != "null":
        MAC = init.var['m']

    if NET.CheckIfExistInterface(init.var['i']):
        printk.inf("Changing MAC to " + init.var['i'])
        sysc("sudo airmon-ng check kill >/dev/null 2>&1")
        sysc("sudo ifconfig " + init.var['i'] + " down >/dev/null 2>&1")
        sysc("sudo ifconfig " + init.var['i'] + " hw ether " + MAC +
             " >/dev/null 2>&1")
        sysc("sudo ifconfig " + init.var['i'] + " up >/dev/null 2>&1")
        sysc("sudo service NetworkManager start >/dev/null 2>&1")
        printk.suff("MAC Address was Changed " + MAC)
        return
Пример #2
0
def Main():

    MAC=""
    picks = ['katana','k4tan4','KAtAn4','K4TanA','K4TaNA','KATANA','ANATAK','|<474/\/A']
    a = hashlib.md5(random.choice(picks))
    b = a.hexdigest()
    as_int = int(b, 16)
    random.seed(bin(as_int)[2:])

    mac = [ 0x00, 0x16, 0x3e,
        random.randint(0x00, 0x7f),
        random.randint(0x00, 0xff),
        random.randint(0x00, 0xff) ]

    if init.var['r'] == "enable":MAC=':'.join(map(lambda x: "%02x" % x, mac))
    if init.var['m']!="null" and init.var['m']!="enable":
        if checkMAC(init.var['m']):MAC=init.var['m']
    
    if checkDevice(init.var['i']):
        printAlert(0,"Changing MAC to "+init.var['i'])
        printAlert(0,"MAC to Change "+MAC)
        sysc("sudo airmon-ng check kill >/dev/null 2>&1")
        sysc("sudo ifconfig "+init.var['i']+" down >/dev/null 2>&1")
        sysc("sudo ifconfig "+init.var['i']+" hw ether "+MAC+" >/dev/null 2>&1") 
        sysc("sudo ifconfig "+init.var['i']+" up >/dev/null 2>&1")
        sysc("sudo service NetworkManager start >/dev/null 2>&1") 
        printAlert(3,"MAC Changed")
        return
Пример #3
0
def Main():
    Assume = "--yes"
    if init.var['y'] == "enable": Assume = ""
    sysc('sudo apt-get update && sudo apt-get ' + Assume +
         ' upgrade && sudo apt-get clean && sudo apt-get dist-upgrade ' +
         Assume)
Пример #4
0
def Main():
	Assume="--yes"
	if init.var['y'] == "enable":Assume=""
	sysc('sudo apt-get update && sudo apt-get '+Assume+' upgrade && sudo apt-get clean && sudo apt-get dist-upgrade '+Assume)
Пример #5
0
def Main():
	sysc('sudo apt-get update && sudo apt-get %s upgrade && sudo apt-get clean && sudo apt-get dist-upgrade %s') %init.var['y']
Пример #6
0
def cleanIptables():
	sysc('iptables-save | awk '/^[*]/ { print $1 } 
                     /^:[A-Z]+ [^-]/ { print $1 " ACCEPT" ; }
                     /COMMIT/ { print $0; }' | iptables-restore')
Пример #7
0
def startTOR():
	sysc('service tor start')