You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding "-dc-host" parameter to dacledit.py, owneredit.py, rbcd.py. Reintroduced SessionError:"STATUS_NOT_SUPPORTED" in function _get_machine_name now that all these examples have "-dc-host" parameter. (#1940)
Copy file name to clipboardExpand all lines: examples/dacledit.py
+2-1
Original file line number
Diff line number
Diff line change
@@ -703,6 +703,7 @@ def parse_args():
703
703
auth_con.add_argument('-k', action="store_true", help='Use Kerberos authentication. Grabs credentials from ccache file (KRB5CCNAME) based on target parameters. If valid credentials cannot be found, it will use the ones specified in the command line')
704
704
auth_con.add_argument('-aesKey', action="store", metavar="hex key", help='AES key to use for Kerberos Authentication (128 or 256 bits)')
705
705
auth_con.add_argument('-dc-ip', action='store', metavar="ip address", help='IP Address of the domain controller or KDC (Key Distribution Center) for Kerberos. If omitted it will use the domain part (FQDN) specified in the identity parameter')
706
+
auth_con.add_argument('-dc-host', action='store', metavar="hostname", help='Hostname of the domain controller or KDC (Key Distribution Center) for Kerberos. If omitted, -dc-ip will be used')
706
707
707
708
principal_parser=parser.add_argument_group("principal", description="Object, controlled by the attacker, to reference in the ACE to create or to filter when printing a DACL")
help='IP Address of the domain controller or KDC (Key Distribution Center) for Kerberos. If omitted it will use the domain part (FQDN) specified in the identity parameter')
244
+
auth_con.add_argument('-dc-host', action='store', metavar="hostname", help='Hostname of the domain controller or KDC (Key Distribution Center) for Kerberos. If omitted, -dc-ip will be used')
244
245
245
246
new_owner_parser=parser.add_argument_group("owner", description="Object, controlled by the attacker, to set as owner of the target object")
Copy file name to clipboardExpand all lines: examples/rbcd.py
+2-1
Original file line number
Diff line number
Diff line change
@@ -293,6 +293,7 @@ def parse_args():
293
293
help='IP Address of the domain controller or KDC (Key Distribution Center) for Kerberos. If '
294
294
'omitted it will use the domain part (FQDN) specified in '
295
295
'the identity parameter')
296
+
group.add_argument('-dc-host', action='store', metavar="hostname", help='Hostname of the domain controller or KDC (Key Distribution Center) for Kerberos. If omitted, -dc-ip will be used')
raiseException('The SMB request is not supported. Probably NTLM is disabled. Try to specify corresponding NetBIOS name or FQDN as the value of the -dc-host option')
79
+
else:
80
+
raise
76
81
exceptException:
77
82
ifs.getServerName() =='':
78
83
raiseException('Error while anonymous logging into %s'%machine)
0 commit comments