diff options
author | 2012-12-21 14:44:35 +0100 | |
---|---|---|
committer | 2012-12-21 14:44:35 +0100 | |
commit | 094da5caa68dcf9a341ad718cd3ec165cfe3aced (patch) | |
tree | ac1875f788879f5201b89d1d9f75504971c5bc4c | |
parent | Use signal handler on restoration. (diff) | |
download | WEPAutoCrack-094da5caa68dcf9a341ad718cd3ec165cfe3aced.tar.xz WEPAutoCrack-094da5caa68dcf9a341ad718cd3ec165cfe3aced.zip |
Don't show anything if length is zero.
-rwxr-xr-x | autocrack.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/autocrack.py b/autocrack.py index 523913d..fd41cbd 100755 --- a/autocrack.py +++ b/autocrack.py @@ -271,7 +271,11 @@ def main(): for cell in parsed_cells: if cell["Encryption"] != "Open": encrypted_cells.append(cell) - + + if len(encrypted_cells) == 0: + print "[-] Could not find any wireless networks. Goodbye." + return + print_cells(encrypted_cells) print try: |