Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/p0dalirius/LDAPmonitor
Monitor creation, deletion and changes to LDAP objects live during your pentest or system administration!
https://github.com/p0dalirius/LDAPmonitor
active-directory csharp ldap monitor pentest powershell python tool
Last synced: about 1 month ago
JSON representation
Monitor creation, deletion and changes to LDAP objects live during your pentest or system administration!
- Host: GitHub
- URL: https://github.com/p0dalirius/LDAPmonitor
- Owner: p0dalirius
- License: gpl-3.0
- Created: 2021-10-17T13:19:57.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2024-06-18T11:33:55.000Z (6 months ago)
- Last Synced: 2024-06-18T13:19:35.577Z (6 months ago)
- Topics: active-directory, csharp, ldap, monitor, pentest, powershell, python, tool
- Language: C#
- Homepage: https://podalirius.net/
- Size: 4.59 MB
- Stars: 811
- Watchers: 17
- Forks: 72
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
- awesome-hacking-lists - p0dalirius/LDAPmonitor - Monitor creation, deletion and changes to LDAP objects live during your pentest or system administration! (C# #)
README
![](./.github/banner.png)
Monitor creation, deletion and changes to LDAP objects live during your pentest or system administration!
With this tool you can quickly see if your attack worked and if it changed LDAP attributes of the target object.
![](./python/imgs/example.png)
## Features
| Feature | [Python (.py)](./python/) | [CSharp (.exe)](./csharp/) | [Powershell (.ps1)](./powershell/) |
|---------|--------|--------|------------|
| LDAPS support | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: |
| Random delay in seconds between queries | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: |
| Custom delay in seconds between queries | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: |
| Save output to logfile | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: |
| Colored or not colored output with `--no-colors` | :heavy_check_mark: | :x: | :x: |
| Custom page size for paged queries | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: |
| Authenticate with user and password | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: |
| Authenticate as current shell user | :x: | :heavy_check_mark: | :heavy_check_mark: |
| Authenticate with LM:NT hashes | :heavy_check_mark: | :x: | :x: |
| Authenticate with kerberos tickets | :heavy_check_mark: | :x: | :x: |
| Option to ignore user logon events | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: |
| Custom search base | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: |
| Iterate over all naming contexts | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: |## Typical use cases
Here is a few use cases where this tool can be useful:
- Detect account lockout in real time
![](./.github/lockout.png)- Check if your privilege escalation worked (with ntlmrelay's `--escalate-user` option)
![](./.github/)- Detect when users are login in to know when to start a network poisoning.
![](./.github/user_login.png)
## Cross platform !### [In Python (.py)](./python/)
![](./python/imgs/example.png)
### [In CSharp (.exe)](./csharp/)
![](./csharp/imgs/example.png)
### [In Powershell (.ps1)](./powershell/)
![](./powershell/imgs/example.png)
## 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.