Niket 6f9dfcbaac [bug] Fixes imports from sectools and flattens nested lists in all_ldap_attributes (#25)
* Fixed imports from sectools

* Flattened nested lists in all_ldap_attributes
2025-10-30 08:42:55 +01:00
2023-10-08 11:45:22 +02:00
2023-02-09 12:50:39 +01:00
2022-01-12 15:25:12 +01:00
2021-10-17 15:24:42 +02:00
2022-06-05 08:41:19 +02:00
2022-10-05 21:34:35 +02:00

Monitor creation, deletion and changes to LDAP objects live during your pentest or system administration!
GitHub downloads GitHub release (latest by date) YouTube Channel Subscribers

With this tool you can quickly see if your attack worked and if it changed LDAP attributes of the target object.

Features

Feature Python (.py) CSharp (.exe) Powershell (.ps1)
LDAPS support ✔️ ✔️ ✔️
Random delay in seconds between queries ✔️ ✔️ ✔️
Custom delay in seconds between queries ✔️ ✔️ ✔️
Save output to logfile ✔️ ✔️ ✔️
Colored or not colored output with --no-colors ✔️ ❌ ❌
Custom page size for paged queries ✔️ ✔️ ✔️
Authenticate with user and password ✔️ ✔️ ✔️
Authenticate as current shell user ❌ ✔️ ✔️
Authenticate with LM:NT hashes ✔️ ❌ ❌
Authenticate with kerberos tickets ✔️ ❌ ❌
Option to ignore user logon events ✔️ ✔️ ✔️
Custom search base ✔️ ✔️ ✔️
Iterate over all naming contexts ✔️ ✔️ ✔️

Typical use cases

Here is a few use cases where this tool can be useful:

  • Detect account lockout in real time

  • Check if your privilege escalation worked (with ntlmrelay's --escalate-user option)

  • Detect when users are login in to know when to start a network poisoning.

Cross platform !

In Python (.py)

In CSharp (.exe)

In Powershell (.ps1)

Demonstration

https://user-images.githubusercontent.com/79218792/136900209-d2156d4c-d83d-4227-b51e-999ec99b2314.mp4

Limitations

LDAP paged queries returns pageSize results per page, and it takes approximately 1 second to query a page. Therefore your monitoring refresh rate is (number of LDAP objects // pageSize) seconds. On most domain controllers pageSize = 5000.

Contributing

Pull requests are welcome. Feel free to open an issue if you want to add other features.

S
Description
Automated archival mirror of github.com/p0dalirius/LDAPmonitor
Readme
4.7 MiB
Languages
C# 41.2%
Python 33.7%
PowerShell 25.1%