Skip to content

Commit 8f1fc83

Browse files
authored
Change hSamrConnect() with hSamrConnect2()
1 parent 701bd01 commit 8f1fc83

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

enum4linux-ng.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,8 @@ def __init__(self, smb_conn=None):
566566
self._server_handle = self._get_server_handle()
567567

568568
def _get_server_handle(self):
569-
resp = samr.hSamrConnect(self.dce)
569+
# TODO: Investigate on the various hSamrConnect{0,2,3,4,5}() functions - hSamrConnect results in STATUS_ACCESS_DENIED on old machines
570+
resp = samr.hSamrConnect2(self.dce)
570571
return resp['ServerHandle']
571572

572573
def get_domains(self):

0 commit comments

Comments
 (0)