trustedsec / CS-Situational-Awareness-BOF

Situational Awareness commands implemented using Beacon Object Files
GNU General Public License v2.0
1.28k stars 221 forks source link

Ldapsearch - add "scope_of_search" as a parameter #113

Closed attl4s closed 10 months ago

attl4s commented 10 months ago
image

The ldapsearch BOF hardcodes the "LDAP_SCOPE_SUBTREE" scope setting. This PR gives the user the ability to select the scope they want to use

1 = LDAP_SCOPE_BASE 2 = LDAP_SCOPE_ONELEVEL 3 = LDAP_SCOPE_SUBTREE

ldapsearch <query> [comma_separated_attributes] [result_count] [scope_of_search] [DC hostname or IP] [Distingished Name to use]

Some examples:

image image image

(The third screenshot is the same query using value 3 - LDAP_SCOPE_SUBTREE)

Thanks!

freefirex commented 10 months ago

Thanks for the pull!