Skip to main content

Unit 3 路 Forensics First 路 Lesson 7 of 25

Writing the Answer File

Getting the format right, so answers you already worked out actually count.

Getting credit for an answer you already have

This is where people drop points they had already earned. A program reads this file, so it wants the answer and nothing else.

The format

One answer per line, with the label the ReadMe asks for:

FQ1: answer
FQ2: /some/path
FQ3: PLAINTEXT

馃挕 Real CyberPatriot does this slightly differently. There you answer forensics questions in the files the competition image puts on the desktop, one file per question. It is close enough that the habit transfers: read the question, answer exactly what it asked for, write nothing else.

What gets rejected

You wroteWhy it fails
FQ1: I think it is bobthe sentence is not the answer
FQ2: the folder in /opta description is not a path
FQ3: SECRET (it was base64)the note is now part of the answer

That last one catches good students constantly. Showing your work is a virtue everywhere except in a file a program reads.

Answer in the units the question asked for. "Full path" means it starts with a slash. "Username" means just the name. Read the last few words of the question before you write the line.

Writing it

The file lives where only an administrator can write, so put sudo in front:

sudo nano /root/forensics_answers.txt

Type your three lines, then Ctrl+O and Enter to save, then Ctrl+X to leave.

Try it yourself

Write your three answers, then open the file again to check what actually got saved:

sudo nano /root/forensics_answers.txt

Do this lesson for real

With a free account you get the terminal, the challenges and the checks that go with every lesson in CyberPatriot Linux: Tokyo Jujutsu High, and your progress is saved as you go. CyberAcad is a 501(c)(3) nonprofit, so there is nothing to pay.