Skip to content

Commit

Permalink
Adding ldapsearch
Browse files Browse the repository at this point in the history
  • Loading branch information
ShutdownRepo committed Mar 17, 2023
1 parent 0875935 commit 2b53281
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
8 changes: 8 additions & 0 deletions sources/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2062,6 +2062,13 @@ function install_bloodhound-quickwin() {
add-test-command "bloodhound-quickwin --help"
}

function install_ldapsearch() {
colorecho "Installing ldapsearch"
fapt ldap-utils
add-history ldapsearch
add-test-command "ldapsearch --help; ldapsearch --help |& grep 'Search options'"
}

function install_ldapsearch-ad() {
colorecho "Installing ldapsearch-ad"
git -C /opt/tools/ clone https://github.com/yaap7/ldapsearch-ad
Expand Down Expand Up @@ -3670,6 +3677,7 @@ function package_ad() {
install_pygpoabuse
install_bloodhound-import # Python script to import BH data to a neo4j db
install_bloodhound-quickwin # Python script to find quickwins from BH data in a neo4j db
install_ldapsearch # LDAP enumeration utils
install_ldapsearch-ad # Python script to find quickwins from basic ldap enum
install_petitpotam # Python script to coerce auth through MS-EFSR abuse
install_dfscoerce # Python script to coerce auth through NetrDfsRemoveStdRoot and NetrDfsAddStdRoot abuse
Expand Down
5 changes: 4 additions & 1 deletion sources/zsh/history.d/ldapsearch
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
ldapsearch -x -l "$DC_HOST" -D '' -w '' -b 'dc=DOMAIN,dc=LOCAL'
ldapsearch -h "$DC_IP" -x -s "base" "namingcontexts"
ldapsearch -h "$TARGET" -x -b "DC=DOMAIN,DC=LOCAL"
ldapsearch -H ldap://$TARGET -x -b "DC=DOMAIN,DC=LOCAL"

0 comments on commit 2b53281

Please sign in to comment.