forked from mtagius/pwnagotchi-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathget-next-hashcat-script.py
31 lines (27 loc) · 1.27 KB
/
get-next-hashcat-script.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import json
networkCrackedStatusData = {}
totalWaiting = 0
totalExhausted = 0
totalCracked = 0
foundNextScript = False
with open('network-cracked-status.json') as f:
networkCrackedStatusData = json.load(f)
for network in networkCrackedStatusData.keys():
if(networkCrackedStatusData[network]["status"] == "waiting" and foundNextScript == False):
print("\nNext script ready to run:")
print("\n" + network.strip(".pmkid").strip(".hccapx") + ".bat")
print("SSID: " + networkCrackedStatusData[network]["ssid"])
print("BSSID: " + networkCrackedStatusData[network]["bssid"])
print("Status: " + networkCrackedStatusData[network]["status"])
print("Version: " + networkCrackedStatusData[network]["version"])
foundNextScript = True
if(networkCrackedStatusData[network]["status"] == "waiting"):
totalWaiting += 1
elif(networkCrackedStatusData[network]["status"] == "exhausted"):
totalExhausted += 1
elif(networkCrackedStatusData[network]["status"] == "cracked"):
totalCracked += 1
print("\nTotal Networks: " + str(len(networkCrackedStatusData)) + "\n")
print("Total Waiting: " + str(totalWaiting))
print("Total Exhausted: " + str(totalExhausted))
print("Total Cracked: " + str(totalCracked))