
सुरक्षा मूल्यांकन के लिए BloodHound हमले-पथ मैपिंग को फीड करने हेतु Active Directory ऑब्जेक्ट मेटाडेटा, समूह सदस्यता, सत्र, ACL और ट्रस्ट एकत्र करता है।
SharpHound का नवीनतम बिल्ड हमेशा यहाँ मिलेगा।
तैनात BloodHound CE इंस्टेंस के साथ संगत SharpHound संस्करण निर्धारित करने के लिए, BloodHound CE के वेब UI में लॉगिन करें और ⚙️ (सेटिंग्स) → Download Collectors पर क्लिक करें। फिर, यूज़र इंटरफ़ेस में "Download SharpHound" बटन पर क्लिक करें या उपयुक्त रिलीज़ बाइनरी डाउनलोड करने के लिए प्रदर्शित SharpHound संस्करण का उपयोग करें। वैकल्पिक रूप से, संबंधित रिलीज़ कमिट से SharpHound बाइनरी संकलित करें।
कृपया BloodHound Community Edition दस्तावेज़ीकरण का हिस्सा, SharpHound अनुभाग देखें।
इस प्रोजेक्ट को बनाने के लिए, .NET SDK का उपयोग करके निम्नलिखित चलाएँ:
dotnet restore
dotnet build
डिफ़ॉल्ट रूप से, प्रोजेक्ट SharpHoundCommon Library के अगले प्रीरिलीज़ -dev संस्करण के विरुद्ध बनता है (v4 शाखा को ट्रैक करते हुए)।
यदि आप लाइब्रेरी की स्थानीय प्रति के विरुद्ध बिल्ड करना चाहते हैं, तो सुनिश्चित करें कि _CommonLibPath और _RPCPath प्रॉपर्टी सही DLLs की ओर इंगित करें, और dotnet build -p:CommonSource=Local चलाएँ।
यदि CommonLibsVersion में पहले से कोई प्रीरिलीज़ टैग है (जैसे 4.6.0-rc1), तो वही सटीक संस्करण Stable और Dev दोनों स्रोतों के लिए ज्यों-का-त्यों उपयोग किया जाता है।
dotnet build # Dev (default)
dotnet build -p:CommonSource=Stable
dotnet build -p:CommonSource=Local
dotnet build --tl:off # To view CommonLib resolution logs
SharpHound को .Net 4.7.2 को लक्ष्य करके डिज़ाइन किया गया है। SharpHound को डोमेन उपयोगकर्ता के संदर्भ से चलाया जाना चाहिए, या तो सीधे लॉगऑन के माध्यम से या RUNAS जैसी किसी अन्य विधि के माध्यम से।
नीचे दी गई सूची SharpHound द्वारा समर्थित CLI तर्कों का विवरण देती है। इन विकल्पों के बारे में अतिरिक्त विवरण BloodHound CE Collection दस्तावेज़ीकरण में पाए जा सकते हैं।
-c, --collectionmethods (Default: Default) Collection Methods: Container, Group, LocalGroup, GPOLocalGroup,
Session, LoggedOn, ObjectProps, ACL, ComputerOnly, Trusts, Default, RDP, DCOM, DCOnly, UserRights,
CARegistry, DCRegistry, CertServices, WebClientService, NTLMRegistry,SMBInfo,LdapServices
-d, --domain Specify domain to enumerate
-s, --searchforest (Default: false) Search all available domains in the forest
--stealth Stealth Collection (Prefer DCOnly whenever possible!)
-f Add an LDAP filter to the pregenerated filter.
--distinguishedname Base DistinguishedName to start the LDAP search at
--computerfile Path to file containing computer names to enumerate
--outputdirectory (Default: .) Directory to output file too
--outputprefix String to prepend to output file names
--cachename Filename for cache (Defaults to a machine specific identifier)
--memcache Keep cache in memory and don't write to disk
--rebuildcache (Default: false) Rebuild cache and remove all entries
--randomfilenames (Default: false) Use random filenames for output
--zipfilename Filename for the zip
--nozip (Default: false) Don't zip files
--trackcomputercalls (Default: false) Adds a CSV tracking requests to computers
--zippassword Password protects the zip with the specified password
--prettyprint (Default: false) Pretty print JSON
--ldapusername Username for LDAP
--ldappassword Password for LDAP
--domaincontroller Override domain controller to pull LDAP from. This option can result in data loss
--ldapport (Default: 0) Override port for LDAP
--secureldap (Default: false) Connect to LDAP SSL instead of regular LDAP
--disablecertverification (Default: false) Disable certificate verification for secure LDAP
--disablesigning (Default: false) Disables Kerberos Signing/Sealing
--skipportcheck (Default: false) Skip checking if 445 is open
--portchecktimeout (Default: 500) Timeout for port checks in milliseconds
--skippasswordcheck (Default: false) Skip PwdLastSet age check when checking computers
--excludedcs (Default: false) Exclude domain controllers from session/localgroup enumeration (mostly for
ATA/ATP)
--throttle Add a delay after computer requests in milliseconds
--jitter Add jitter to throttle (percent)
--threads (Default: 50) Number of threads to run enumeration with
--skipregistryloggedon Skip registry session enumeration
--overrideusername Override the username to filter for NetSessionEnum
--realdnsname Override DNS suffix for API calls
--collectallproperties Collect all LDAP properties from objects
-l, --Loop Loop computer collection
--loopduration Loop duration (hh:mm:ss - 05:00:00 is 5 hours, default: 2 hrs)
--loopinterval Add delay between loops (hh:mm:ss - 00:03:00 is 3 minute)
--statusinterval (Default: 30000) Interval in which to display status in milliseconds
--localadminsessionenum Specify if you want to use a dedicated LOCAL user for session enumeration
--localadminusername Specify the username of the localadmin for session enumeration
--localadminpassword Specify the password of the localadmin for session enumeration
-v (Default: 2) Enable verbose output. Lower is more verbose
--help Display this help screen.
--version Display version information.
CommonSource (डिफ़ॉल्ट: Dev) | हल किया गया पैकेज |
|---|
Dev | प्रीरिलीज़ (जैसे 4.6.0-rc1) या अगला पैच -dev* (जैसे 4.6.1-dev*) |
Stable | वर्तमान CommonLibsVersion (जैसे 4.6.0) |
Local | स्थानीय SharpHoundCommon DLLs |