RealEnder / dwpa

Distributed WPA PSK auditor
https://wpa-sec.stanev.org
GNU General Public License v3.0
306 stars 71 forks source link

help_crack.py differences #96

Closed mcauser closed 7 months ago

mcauser commented 11 months ago

The version of help_crack.py on wpa-sec.stanev.org has a few differences to the file in this repo.

Which one is more correct / which should we use?

---     2023-10-25 23:55:13 +0000
+++     2023-10-25 23:55:13 +0000
@@ -8,7 +8,6 @@
 import argparse
 import sys
 import os
-import platform
 import subprocess
 import shlex
 import stat
@@ -215,7 +214,7 @@

                 output = re.sub(r'[^\d\.]', '', output.decode())
                 try:
-                    if StrictVersion(output) >= StrictVersion('4.2.1'):
+                    if StrictVersion(output) >= StrictVersion('6.0.0'):
                         return True
                 except ValueError as e:
                     self.pprint('Unsupported hashcat version', 'FAIL')
@@ -271,11 +270,7 @@
         tools = []

         # hashcat
-        bits = platform.architecture()[0]
-        if bits == '64bit':
-            tools += run_hashcat(['hashcat64.bin', 'hashcat64', 'hashcat'])
-        else:
-            tools += run_hashcat(['hashcat32.bin', 'hashcat32', 'hashcat'])
+        tools += run_hashcat(['hashcat', 'hashcat.bin'])

         # John the Ripper
         tools += run_jtr()
@@ -872,7 +867,7 @@
             cstart = time.time()
             self.run_cracker(dictlist)
             cdiff = int(time.time() - cstart)
-            if self.conf['autodictcount']:
+            if self.conf['autodictcount'] and not self.conf['custom']:
                 if options['dictcount'] < 15 and cdiff < 300:  # 5 min
                     options['dictcount'] += 1
                     self.pprint('Incrementing dictcount to {0}, last duration {1}s'.format(options['dictcount'], cdiff), 'OKBLUE')
RealEnder commented 7 months ago

These are just random fixes, nothing groundbreaking. Thanks, updated.

industrialsociety commented 7 months ago

@RealEnder which one are we supposed to be using?

strasharo commented 7 months ago

These are just random fixes, nothing groundbreaking. Thanks, updated.

Permissions are wrong on https://wpa-sec.stanev.org/hc/help_crack.py, throws a 403.