我正在开发一个python程序来分析从我的网卡可访问的访问点,并且在用户输入SSID进行攻击之后,该程序将执行带有字典的暴力攻击。 我设法完成了扫描和字典创建部分。 我如何通过尝试字典中的所有密码来连接到SSID?
这是我所拥有的:
#!/usr/bin/python
import subprocess
import argparse
import os
import sys
import urllib2
scansione = subprocess.Popen("iwlist wlp3s0 scan |grep 'ESSID\|Address'", stdout=subprocess.PIPE, shell=True)
(output, err) = scansione.communicate()
stato = scansione.wait()
risultati = output
print risultati
print("Fetch...")
url = "https://raw.githubusercontent.com/duyetdev/bruteforce-database/master/1000000-password-seclists.txt"
risposta = urllib2.urlopen( url )
txt = risposta.read()
passwords = txt.splitlines()
password = passwords
os.popen("service network-manager stop")
ssid = raw_input("Insert SSID to attack : ")