SharpShares - Multithreaded C# .NET Assembly To Enumerate Accessible Network Shares In A Domain
Multithreaded C# .NET Assembly to enumerate accessible network shares in a domain
Built upon djhohnstein's SharpShares project
> .\SharpShares.exe helpUsage: SharpShares.exe /threads:50 /ldap:servers /ou:"OU=Special Servers,DC=example,DC=local" /filter:SYSVOL,NETLOGON,IPC$,PRINT$ /verbose /outfile:C:\path\to\file.txtOptional Arguments: /threads - specify maximum number of parallel threads (default=25) /dc - specify domain controller to query (if not ran on a domain-joined host) /domain - specify domain name (if not ran on a domain-joined host) /ldap - query hosts from the following LDAP filters (default=all) :all - All enabled computers with 'primary' group 'Domain Computers' :dc - All enabled Domain Controllers (not read-only DCs) :exclude-dc - All enabled computers that are not Domain Controllers or read-only DCs :servers - All enabled servers :servers-exclude-dc - All enabled servers excluding Domain Controllers or read-only DCs /ou - specify LDAP OU to query enabled computer objects from ex: "OU=Special Servers,DC=example,DC=local" /stealth - list share names without performing read/write access checks /filter - list of comma-separated shares to exclude from enumeration default: SYSVOL,NETLOGON,IPC$,PRINT$ /outfile - specify file for shares to be appended to instead of printing to std out /verbose - return unauthorized shares
Execute Assembly
execute-assembly /path/to/SharpShares.exe /ldap:all /filter:sysvol,netlogon,ipc$,print$
Example Output
Specifying Targets
The /ldap
and /ou
flags can be used together or seprately to generate a list of hosts to enumerate.
All hosts returned from these flags are combined and deduplicated before enumeration starts.
Via: www.kitploit.com
SharpShares - Multithreaded C# .NET Assembly To Enumerate Accessible Network Shares In A Domain
Reviewed by Zion3R
on
15:42
Rating:
![SharpShares - Multithreaded C# .NET Assembly To Enumerate Accessible Network Shares In A Domain](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgnr10YRW4qtqFnxAGesqaiSRIM01CM8ydTDqLUdwvB_mHRLfIrwSHYwk4oFqZDqFpqYeyflPZ_4t5ojeROC5IlqotykH-qSknWwnMggiB0aKSIbedVffTELjPBDp_m1z1jql2Eub-YXjGThaR3MUv7gXjr0lzi8S3xlrqbiqZYxKmmu7myWbvwZGlvwyS-/s72-w640-c-h366/SharpShares.png)