{"id":2118,"date":"2021-01-09T14:33:28","date_gmt":"2021-01-09T13:33:28","guid":{"rendered":"https:\/\/andreas-klingler.de\/infosec\/?p=2118"},"modified":"2021-01-09T14:33:28","modified_gmt":"2021-01-09T13:33:28","slug":"389-ldap","status":"publish","type":"post","link":"https:\/\/infosec.andreas-klingler.de\/?p=2118","title":{"rendered":"389 <span class=\"caps\">LDAP<\/span>"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Enumeration<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Mandatory<\/h3>\n\n\n\n<ol class=\"wp-block-list\"><li>Enu\u00admer\u00adate with nmap:<br><code>nmap -n -sV --script \"ldap* and not brute\" $target<\/code><\/li><li>Scan with LDAPsearch:<br><code>ldapsearch -x -h $target -D '' -w '' -b \"DC=BLA,DC=local\"<\/code><\/li><li>Con\u00adnect to <span class=\"caps\">SSL<\/span> ports:<br><code>openssl s_client -connect $target:636 &lt;\/dev\/null<br>openssl s_client -connect $target:3269 &lt;\/dev\/null<\/code><\/li><\/ol>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Enu\u00admer\u00ada\u00adtion Manda\u00adto\u00adry Enu\u00admer\u00adate with nmap:nmap \u2011n \u2011sV \u2013script \u201cldap* and not brute\u201d $tar\u00adget Scan with LDAPsearch:ldapsearch \u2011x \u2011h $tar\u00adget \u2011D \u201d \u2011w \u201d \u2011b \u201c<span class=\"caps\">DC<\/span>=<span class=\"caps\">BLA<\/span>,<span class=\"caps\">DC<\/span>=local\u201d Con\u00adnect to <span class=\"caps\">SSL<\/span> ports:openssl s_client \u2011con\u00adnect $target:636 &lt;\/dev\/nullopenssl s_client \u2011con\u00adnect $target:3269 &lt;\/dev\/null<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"wp_typography_post_enhancements_disabled":false,"footnotes":""},"categories":[36],"tags":[37,189],"class_list":["post-2118","post","type-post","status-publish","format-standard","hentry","category-port","tag-checklist","tag-ldap"],"_links":{"self":[{"href":"https:\/\/infosec.andreas-klingler.de\/index.php?rest_route=\/wp\/v2\/posts\/2118","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/infosec.andreas-klingler.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/infosec.andreas-klingler.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/infosec.andreas-klingler.de\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/infosec.andreas-klingler.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2118"}],"version-history":[{"count":1,"href":"https:\/\/infosec.andreas-klingler.de\/index.php?rest_route=\/wp\/v2\/posts\/2118\/revisions"}],"predecessor-version":[{"id":2120,"href":"https:\/\/infosec.andreas-klingler.de\/index.php?rest_route=\/wp\/v2\/posts\/2118\/revisions\/2120"}],"wp:attachment":[{"href":"https:\/\/infosec.andreas-klingler.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2118"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/infosec.andreas-klingler.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2118"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/infosec.andreas-klingler.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2118"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}