From 4eb9c4f92b72da015767f3db34d89a0ae9f3f122 Mon Sep 17 00:00:00 2001 From: Dirk-jan Mollema Date: Thu, 21 Dec 2023 09:48:27 +0100 Subject: [PATCH] also fix nt hash extraction from password in addspn.py --- addspn.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/addspn.py b/addspn.py index 5a7320e..9a7cdef 100644 --- a/addspn.py +++ b/addspn.py @@ -1,7 +1,7 @@ #!/usr/bin/env python #################### # -# Copyright (c) 2019 Dirk-jan Mollema (@_dirkjan) +# Copyright (c) 2023 Dirk-jan Mollema (@_dirkjan) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal @@ -27,7 +27,6 @@ #################### import sys import argparse -import ldapdomaindump import random import string import getpass @@ -96,7 +95,7 @@ def main(): TGS = None try: # Hashes - lmhash, nthash = password.split(':') + lmhash, nthash = args.password.split(':') assert len(nthash) == 32 password = '' except: