Skip to content

Computer object takeover through Resource-Based Constrained Delegation msDS-AllowedToActOnBehalfOfOtherIdentity

License

Notifications You must be signed in to change notification settings

Sylphoraz/SharpAllowedToAct-Modify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

This project is a fork of [SharpAllowedToAct]. Sometimes, an attacker may obtain credentials for a privileged user but lack access to the user's machine. To exploit this scenario—where the attacker aims to perform resource-based constrained delegation attacks using the acquired privileged account (e.g., a domain-joined account)—SharpAllowedToAct only leverages the current user's privileges for attacks. Therefore, I made the following modifications:

  1. The operation for adding machine accounts has been removed. You can use the original SharpAllowedToAct to add accounts, or use addcomputer.py to add machine accounts.

  2. Added custom LDAP account and password parameters.

  3. Added the specified machine account parameter

Instructions for Use

The default msds-allowedtoactonbehalfofotheridentity is not specified, so the ticket request failed:

wecom-temp-57fce9cf5f6a8385299c7d8199d6ef29

Use the tools provided by this project to modify the victim's msds-allowedtoactonbehalfofotheridentity attribute:

image-20211215223552267

The -m parameter specifies the machine account you added, -u is the LDAP username, -p is the LDAP password, -t is the target machine name, -a is the domain controller address, and -d is the domain name. For example:

SharpAllowedToAct.exe -m machine -u ldapuser -p ldappass -t victim -a dcserver.domian.com -d domain.com

The bill application was successful at this time:

image-20211215213032275

RBCD successfully connected to the victim machine:

image-20211215212349621

About

Computer object takeover through Resource-Based Constrained Delegation msDS-AllowedToActOnBehalfOfOtherIdentity

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages