on shell
systeminfowill print info about the system
How to get interactive (looks like windows CMD) shell:
shellin the meterpreter session
To get back to meterpreter:
ctrl+c
yto get back to the same session:
sessions -i 1or any other number for the session ID
how to grep?
systeminfo | findstr /B /C:"OS Name" /C:"OS Version" /C:"System Type"
hostnamehow well patched is it?
wmic qfeWindows 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,InstalledOndisk:
wmic logicaldiskpretty:
wmic logicaldisk get caption,description,providername