p0dalirius / LDAPmonitor

Monitor creation, deletion and changes to LDAP objects live during your pentest or system administration!
https://podalirius.net/
GNU General Public License v3.0
825 stars 69 forks source link

[enhancement] Can you add a function to save monitored files based on date? #22

Open alpha302 opened 5 months ago

alpha302 commented 5 months ago

As the administrator of the domain control, I can use LDAPmonitor to view some changes in the domain, but the |tee result.txt I use is too large. Is it possible to add a function to save logs in the program?

p0dalirius commented 5 months ago

Hi,

Which version are you using? (Powershell, CSharp, python)

In powershell -LogFile: https://github.com/p0dalirius/LDAPmonitor/blob/42ce6d53fc153e07fc06f5a18b97c89af3024b7a/powershell/psLDAPmonitor.ps1#L35

In python --logfile: https://github.com/p0dalirius/LDAPmonitor/blob/42ce6d53fc153e07fc06f5a18b97c89af3024b7a/python/pyLDAPmonitor.py#L224

In CSharp: Not implemented yet, sorry i will add it.

Best regards,