clong / DetectionLab

Automate the creation of a lab environment complete with security tooling and logging best practices
MIT License
4.59k stars 979 forks source link

win10 - user:vagrant - sharphound.exe unable to verify ldap credentials && workaround #855

Closed kiyori-lw closed 1 year ago

kiyori-lw commented 1 year ago

Please verify that you are building from an updated Master branch before filing an issue.

Description of the issue:

attempting to run sharphound.exe as vagrant on win10 system initially received error from sharphound that couldn't connect to LDAP, please verify user credentials

WORKAROUND: on DC, disable vagrant, then re-enable. sharphound now runs as expected

schiaro98 commented 1 year ago

I'm actually using this piece of code with Sharphound, and next uploading the file on Bloodhound and is working:

.\sharphound.exe -c DCOnly --LdapUsername 'vagrant' --LdapPassword 'vagrant' --Domain windomain.local --OutputDirectory "Path\to\json-output-dir

If useful i can share the script for install neo4j, java, 7zip for unzipping the bloodhound (Expand-archive does not work beacuse filename exceed the max length) and Sharphound

clong commented 1 year ago

Thanks for the workaround @schiaro98 ! Closing this issue since a fix has been identified and Sharphound isn't a natively supported package for DetectionLab