Skip to content
This repository has been archived by the owner on Dec 6, 2023. It is now read-only.

whoami LDAP module #613

Merged
merged 6 commits into from Sep 9, 2022
Merged

whoami LDAP module #613

merged 6 commits into from Sep 9, 2022

Conversation

spyr0-sec
Copy link
Contributor

@spyr0-sec spyr0-sec commented Aug 8, 2022

Simple 'whoami' type module for LDAP, handy for when you compromise a user and want information regarding the account quickly. The module performs a search for the sAMAccountName via a LDAP query and outputs the following:

User / Human / Distinguished name
Description
Password last set / Logon count / Last logon timestamp / Password never expires
Enabled status
Any ServicePrincipalNames associated
Each group the user is a member of

Command to run:
poetry run crackmapexec ldap <IP> -u <USER> -p <PASS> -M whoami [-o USER=<SAMACCOUNTNAME>]

image

@mpgn mpgn added the module label Aug 21, 2022
@mpgn mpgn added the in review label Sep 7, 2022
@mpgn
Copy link
Contributor

mpgn commented Sep 8, 2022

All good for you @spyr0-sec (I made some change) ?

@spyr0-sec
Copy link
Contributor Author

Thanks @mpgn for the refactor!

@mpgn mpgn merged commit 73b9453 into byt3bl33d3r:master Sep 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants