franc-pentest / ldeep

In-depth ldap enumeration utility

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Not an Issue just a Feature Request -

zflemingg1 opened this issue · comments

Would it be possible to display additional user information in a user summary information such as if they have logged in before and the last time they logged in. I know it's in the verbose output but those are two fields I think people use regularly

commented

You can do it super easily with jq as a workaround:

$ ldeep ldap -d CORP -s CORP.LOCAL -u bob -p password users -v |jq -r '.[]|[.sAMAccountName,.lastLogonTimestamp]| join(",")'
admin,2022-04-21T15:26:09.897070+00:00
bob,2022-04-22T10:09:48.103016+00:00
[...]

Thanks @tiyeuse, closing this issue.