πΆοΈ Technique Card: Discovering and Decoding Files
Unit 101 β Terminal Tigers π― | Rank: Shadow Recruit
ShadowNet Agency: Recruit Training File β Classified Level 1
π Operation Context
In the shadows of every system, some files whisper secrets β but only to those who know how to uncover them.
This technique card gives you access to a new toolkit for reading, editing, and even decoding hidden transmissions. Master these skills and youβll be ready to uncover and decode hidden files.
π Hidden Files β Revealing the Invisible
Some files are hidden from casual users. But Shadow Recruits know better.
Use this command to see everything β even files that donβt want to be seen:
ls -a
Hidden files begin with a .
(dot). If you donβt use -a
, you wonβt see them.
π Reading a File
To read the contents of a file quickly, use:
cat secret.txt
This shows the fileβs content in your terminal.
Example:
cat .secretmessage.txt
βοΈ Editing Files with nano
If you need to write or edit a file, use this powerful terminal editor:
nano mywork.txt
When inside nano
, you can type or delete text. Press Ctrl + X
to exit. If you made changes, youβll be asked whether to save.
π§ͺ Creating Files (touch & echo)
You can create an empty file using:
touch newfile.txt
Or write something directly into a file like this:
echo "Hello, world!" > message.txt
This command overwrites the file with your message.
π Cracking the Code β base64
You might find a message that looks like this:
U2hhZG93TmV0IHJ1bGVzIQ==
Thatβs Base64 β a way of hiding text. To decode it, use:
echo "U2hhZG93TmV0IHJ1bGVzIQ==" | base64 -d
This will reveal the hidden message behind the scrambled text.
Note
The |
character is called a pipe and can usually be found at the bottom left corner of your keyboard
π Encoding Your Own Messages
You can use base64
to encode your own messages - please remember that it is easy for an enemy to decode these so do not use this technique for top secret work.
echo "this is my message" | base64 > message.txt
π Field Notes
- Use
ls -a
to reveal the whispers. - Use
cat
to read them. - Use
base64 -d
to decode their secrets. - Use
nano
,touch
, andecho
to create your own messages.
π§ͺ ShadowNet Training Task
Practice your skills:
- Open a terminal.
- Use
pwd
to find your location. - Use
ls -a
to look for hidden files. - Use
cd
to enter the correct directories. - Try to locate the file:
.hidden-file.txt
. - Decode its contents.
- Read the secret message!
- Leave your own secret message for other recruits in the same directory as
.hidden-file.txt
| encode it withbase64
and make sure it is hidden.
π― Only those who see the unseen can hear what files whisper. Use your tools wisely, Shadow Recruit.
β¬ οΈ Go to Mission 002: The Whispering Files