Skip to content
This repository was archived by the owner on Dec 6, 2023. It is now read-only.

Commit 6e2d24c

Browse files
author
byt3bl33d3r
committed
Fixed a bug when passing-the hash that would cause an AttributeError
1 parent 11e75ac commit 6e2d24c

File tree

4 files changed

+8
-1
lines changed

4 files changed

+8
-1
lines changed

core/scripts/atexec.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ def __init__(self, command=None, username='', password='', domain='', hashes=Non
4242
self.__noOutput = noOutput
4343
if hashes is not None:
4444
self.__lmhash, self.__nthash = hashes.split(':')
45+
if password is None:
46+
self.__password = ''
4547

4648
def play(self, addr):
4749
stringbinding = r'ncacn_np:%s[\pipe\atsvc]' % addr

core/scripts/samrdump.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ def __init__(self, protocols = None,
5151
self.__doKerberos = doKerberos
5252
if hashes is not None:
5353
self.__lmhash, self.__nthash = hashes.split(':')
54-
54+
if password is None:
55+
self.__password = ''
5556

5657
def dump(self, addr):
5758
"""Dumps the list of users and shares registered present at

core/scripts/smbexec.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ def __init__(self, command, protocols = None, username = '', password = '', doma
7272
self.shell = None
7373
if hashes is not None:
7474
self.__lmhash, self.__nthash = hashes.split(':')
75+
if password is None:
76+
self.__password = ''
7577

7678
def run(self, addr):
7779
for protocol in self.__protocols:

core/scripts/wmiexec.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ def __init__(self, command = '', username = '', password = '', domain = '', hash
5454
self.shell = None
5555
if hashes is not None:
5656
self.__lmhash, self.__nthash = hashes.split(':')
57+
if password is None:
58+
self.__password = ''
5759

5860
def run(self, addr, smb):
5961
if self.__noOutput is False:

0 commit comments

Comments
 (0)