Search

System Enum

on shell

systeminfo

will print info about the system

How to get interactive (looks like windows CMD) shell:

shell

in the meterpreter session

To get back to meterpreter:

ctrl+c
y

to get back to the same session:

sessions -i 1

or any other number for the session ID

how to grep?

systeminfo | findstr /B /C:"OS Name" /C:"OS Version" /C:"System Type"
image
hostname

how well patched is it?

wmic qfe

Windows Management Instrumentation Commandline

Quick Fix Engineering

Returns information about the system we’re running on to find something to exploit

grep for it:

wmic qfe get Caption,Description,HotFixID,InstalledOn

disk:

wmic logicaldisk

pretty:

wmic logicaldisk get caption,description,providername