Skip to content

C# .NET Assembly for interacting with File Object DACLs

License

Notifications You must be signed in to change notification settings

mitchmoser/SharPermission

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SharPermission

C# .NET Assembly for interacting with File Object DACLs

An opsec alternative to running shell icacls in Cobalt Strike using execute-assembly.

Retrieves File Object DACLs via File.GetAccessControl Method

TODO

Add option to apply an ACE to a File Object using File.SetAccessControl Method

Example Usage:

execute-assembly /opt/SharpTools/SharPermission.exe \\HOSTNAME\share\

Output

[*] Tasked beacon to run .NET program: SharPermission.exe \\HOSTNAME\share\
[+] host called home, sent: 111705 bytes
[+] received output:
Permissions for: \\HOSTNAME\share\

	Account:        Everyone
	Type:           Allow
	Rights:         FullControl
	Inherited ACE: 	False

	Account:        NT AUTHORITY\SYSTEM
	Type:           Allow
	Rights:         FullControl
	Inherited ACE:  False

	Account:        BUILTIN\Administrators
	Type:           Allow
	Rights:         FullControl
	Inherited ACE:  False

About

C# .NET Assembly for interacting with File Object DACLs

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages