Description
A Secure Printer is now in use. I'm confident no one can leak the message again... or can you?
Setup
Launch the challenge instance and note the host and port.
This is a follow-up to Printer Shares -- the server is 'more secure' but still uses SMB.
sudo apt install smbclient
Solution
- Step 1List SMB shares with authenticationThe server now requires credentials. Try common default printer credentials (guest, anonymous, or admin/admin).smbclient -L //HOST -p PORT -U guest%smbclient -L //HOST -p PORT -U admin%adminsmbclient -L //HOST -p PORT -U printer%printer
- Step 2Connect to the shareConnect to the shares directory using the working credentials.smbclient //HOST/shares -p PORT -U guest%
- Step 3Navigate and download the flagThe flag may be in a subdirectory or hidden share. List all directories and download the flag file.lscd securelsget flag.txtexitcat flag.txt
Flag
picoCTF{pr1nt3r_shar3s_2_...}
The second printer challenge requires authentication -- default printer credentials grant access to the flag.