Once you got the meterpreter session use ‘shell ‘command to get command prompt of the target
Find ALL MS Excel Files
This command will search through all subdirectories below for a file that matches that file name
Find ALL MS office Files
This command will search through all subdirectories below for a file that matches that file name
Type dir *.doc /s
This command will search through all subdirectories below for a file that matches that file name
Type dir *.exe /s
Type dir *.jpg /s
This command will search through all subdirectories below for a file that matches that file name
Type dir *.pdf /s