Challenge 8: Finding Sensitive Files
Procedure:
With access gained on the final target server, the last step is to grab the flag and claim victory.
- Using your Meterpreter shell, search the target server for a file named secrets.txt .
-
Read the contents of the file, and include them in your report.
Note: If you have found the filepath but get errors trying to open the file, it is likely a syntax issue. Using Windows-style filepaths in a Linux command line can be difficult, since Windows uses backslashes instead of forward slashes in paths, which your command line will interpret as an escape sequence instead of a literal backslash. There are two good workarounds for this:
- Put quotes around the filepath in your command, like "C:\Windows\system32\file.txt"
- Alternatively, you can use double slashes in place of the forward slashes: C:\Windows\system32\file.txt