Skip to content

Commit

Permalink
Add support for altname
Browse files Browse the repository at this point in the history
  • Loading branch information
rtpt-romankarwacik committed Jan 8, 2025
1 parent 361916c commit e5f4045
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions krbrelayx.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ def start_servers(options, threads):
c.setWpadOptions(options.wpad_host, options.wpad_auth_num)
c.setSMB2Support(not options.no_smb2support)
c.setInterfaceIp(options.interface_ip)
if options.altname:
c.setAltName(options.altname)
if options.krbhexpass and not options.krbpass:
c.setAuthOptions(options.aesKey, options.hashes, options.dc_ip, binascii.unhexlify(options.krbhexpass), options.krbsalt, True)
else:
Expand Down Expand Up @@ -181,6 +183,7 @@ def start_servers(options, threads):
adcsoptions = parser.add_argument_group("AD CS attack options")
adcsoptions.add_argument('--adcs', action='store_true', required=False, help='Enable AD CS relay attack')
adcsoptions.add_argument('--template', action='store', metavar="TEMPLATE", required=False, help='AD CS template. Defaults to Machine or User whether relayed account name ends with `$`. Relaying a DC should require specifying `DomainController`')
adcsoptions.add_argument('--altname', action='store', metavar="ALTNAME", required=False, help='Subject Alternative Name to use when performing ESC1 or ESC6 attacks.')
adcsoptions.add_argument('-v', "--victim", action='store', metavar = 'TARGET', help='Victim username or computername$, to request the correct certificate name.')

try:
Expand Down

0 comments on commit e5f4045

Please sign in to comment.