All Projects → mitchmoser → SharPermission

mitchmoser / SharPermission

Licence: MIT license
C# .NET Assembly for interacting with File Object DACLs

Programming Languages

C#
18002 projects

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
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].