0xma Cyber Security Articles




April 22, 2022

Capture LDAP Credentials

In this tutorial, we will see how to capture the LDAP credentials of our target that is running a printer service. We have access to the printer's configuration settings. These settings allows us to specify a server's IP address with which it will be communicating. We will be using our own box's IP address and once the Printer service communicates with us we will be able to capture the credentials.

This is the administration panel of the printer service.

Main page of the printer server.

The Settings page contains a field called "Server Address" where we can set the server's hostname or IP address.

Settings page of the printer server.

This is where we will specify our own IP address.

Modify the server address.

Let's create a listener on the LDAP port which is port 389. We can see that the password is revealed in plaintext.

Receive the plaintext LDAP credentials.

We are able to connect to the target box using the password that we received from the printer service.

Successful logon to the target box.

If you liked reading this article, you can follow me on Twitter: 0xmaCyberSec.