CrackMapExec MAQ (ldap)


This page contains detailed information about how to use the MAQ CME module while using the ldap protocol. For list of all CrackMapExec modules, visit the CrackMapExec Module Library.

Description


This module retrieves the MachineAccountQuota domain-level attribute from the LDAP. The ms-DS-MachineAccountQuota attribute represents a number of computer accounts that a user is allowed to create in a domain. Make sure to run this module against Active Directory domain controller.

The MAQ module is OPSEC safe. This means that it doesn't touch the disk and therefore shouldn't trigger any alarms.

Supported Protocols


  • ldap

Module Source Code


Authors


Module Usage


This is how to use the MAQ module while using the ldap protocol:

Syntax:
# cme ldap <TARGET[s]> -u <USERNAME> -p <PASSWORD> -d <DOMAIN> -M MAQ

Local admin:
# cme ldap 10.0.5.1 -u Administrator -p P@ss123 -d . -M MAQ
# cme ldap 10.0.5.1 -u Administrator -p P@ss123 --local-auth -M MAQ

Domain user:
# cme ldap 10.0.5.1 -u bkpadmin -p P@ss123 -d target.corp -M MAQ

CrackMapExec also supports passing the hash, so you can specify NTLM hash instead of a password:

# cme ldap 10.0.5.1 -u Administrator -H 432b022dc22aa5afe884e986b8383ff2 -d . -M MAQ
# cme ldap 10.0.5.1 -u bkpadmin -H 432b022dc22aa5afe884e986b8383ff2 -d target.corp -M MAQ

The module can be run only on a single host. Running against multiple hosts is not supported.

Module Options


As you can see below, the MAQ module doesn't have any additional options:

# cme ldap -M MAQ --options
[*] MAQ module options:
None

References


Version


This page has been created based on CrackMapExec version 5.1.7dev.
Visit CrackMapExec Module Library for more modules.