According to the prompt, use smb to check if there is shared content in the IP.
smbclient -L IP
Leave the password blank and press Enter.
See four users (those with $ are administrator accounts).
Try logging in to WorkShares.
smbclient \\IP\username
Leave the password blank and press Enter.
=================================================================
The following content is not public.
Reason - contains flag.
See two folders, one of which is James.P, which contains flag.txt.
cd James.P
get flag.txt
View locally: cat flag.txt
Obtain the flag.