Day 1 of 760 minCipher Cadet

Day 1: What Recon Is and Your Safe Workspace

Taught by Mr Elite Updated

By the end of today you can

  • Explain in plain words what recon is and what a pipeline is
  • Write a scope note that names only systems you own or have permission to test
  • Check that Python 3 and a text editor are installed and working
  • Create a project folder and save a command's output to a file

Imagine you run a small website and someone asks, 'What can a stranger see about it?' You open your notes and find a few screenshots, a half-finished list and a command you cannot remember running. You cannot answer, because nothing was collected in a repeatable way.

That is the problem this course solves. Over seven days we build a small recon pipeline: a chain of steps that collects information, tidies it, asks an AI to summarise it, and checks the result. Today we lay the foundation. We agree the rules, set up a safe workspace, and run your first command.

What recon and a pipeline actually are

Recon is short for reconnaissance. It means gathering information about a system before you decide anything else. For a defender, it answers a simple question: what does my own system look like from the outside? Anything a stranger can see, you should know about first.

Here is the sort of thing I mean. A website may show its page titles, the software it runs, the names of its subdomains, or a forgotten test page. None of that is secret to a visitor who knows where to look. If you have not looked yourself, you cannot fix what is exposed.

A pipeline is a series of steps where the output of one step feeds the next. Think of a kitchen: wash, chop, cook, plate. Ours will be: collect, clean, summarise, check. Each step does one job and writes its result to a file, so you can inspect it.

Why files? Because a result you can open is a result you can check. If the summary on Day 6 looks odd, you can walk back through the files and find which step went wrong. A pipeline that hides its middle stages is hard to trust.

Recon
Gathering information about a system, usually the first stage of any security assessment.
Pipeline
A chain of steps where each step takes the previous step's output as its input.
Terminal
A text window where you type commands instead of clicking buttons.
Command
A line of text you type into the terminal to make the computer do one thing.
Prompt
The short bit of text at the start of the terminal line that shows it is ready for you to type.

Quick check

Which description best fits a recon pipeline?

Scope and permission: the rule we never break

Before any tool, we settle scope. Scope is the written list of systems you are allowed to look at. If a system is not on the list, you do not touch it. No exceptions, and no 'just a quick look'.

Probing systems you do not own or have written permission to test can be illegal, even if you mean no harm. So in this course every command runs against your own machine, a local test setup, or a named SecurityElites practice lab. Nothing else.

A scope note can be tiny. It needs three things: what is in scope, what is out of scope, and the date. Writing it takes two minutes and builds a habit professionals rely on.

The date matters more than it looks. Permission given last year does not automatically cover today, and a dated note shows what you agreed to at the time. When you work for other people later, this note becomes a proper written agreement. For now it is a habit, and habits are what we are building.

Here is a good example of the wording we will use today: 'In scope: my own computer only (localhost). Out of scope: everything else. Date: the day you wrote it.' Notice that it is short, and that it names one thing clearly. Vague notes such as 'some websites' are useless because nobody can tell what they include.

Quick check

Which of these belongs in your scope note for this course?

Watch me do it: workspace, scope note, first command

I will now build the workspace step by step. Follow along on your own machine. Everything here happens locally and touches nothing else. I am using a terminal, so open one first.

Step two is the one people trip on, so let me show what success looks like. The exact number will differ on your machine, and that is fine.

bash
python3 --version
Asks Python for its version. On Windows PowerShell, try python --version if python3 is not found.
text
Python 3.11.4
Example output. Any line starting with Python 3 means you are ready.

Next we make a home for the whole course. A single folder keeps every file together, so later days can find what earlier days wrote.

bash
mkdir recon-course
cd recon-course
pwd
Creates the folder, moves into it, then prints where you are. Expect a path ending in recon-course.
text
/home/yourname/recon-course
Example output on Linux. macOS shows /Users/yourname/recon-course and Windows shows C:\Users\yourname\recon-course.

Now the scope note. The first echo line creates the file. The next two add to it. Replace the date text with the real date when you open the file later, or type it in now.

bash
echo "In scope: my own computer only (localhost)." > scope.txt
echo "Out of scope: everything else." >> scope.txt
echo "Date: write today's date here" >> scope.txt
cat scope.txt
The first echo uses > to create the file. The next two use >> to add lines without wiping it. cat prints it. On Windows PowerShell use type scope.txt instead of cat.
text
In scope: my own computer only (localhost).
Out of scope: everything else.
Date: write today's date here
What cat should print. If a line is missing, run the commands again from the first echo.

Finally, your first real piece of collected data. It is tiny, but it follows the same pattern as every later step: run a command, save the output, read it back.

bash
hostname > hostname.txt
cat hostname.txt
Saves your computer's name into hostname.txt and shows it. You should see one line, your machine's name.

Notice that the first command printed nothing. That is normal. The output went into the file, so the terminal had nothing to show until cat read it back. Silence after a > command means it worked.

Quick check

You run echo "hello" > scope.txt on a file that already holds three lines. What happens?

Your turn: make it yours

Now repeat the steps without me, so they stick. Open scope.txt in VS Code and edit it so it names your own machine by its hostname, using the name you saved in hostname.txt. Save the file. Reading and editing a file in a proper editor is how you will review pipeline output for the rest of the course.

bash
python3 -c "print('recon workspace ready')" > ready.txt
cat ready.txt
Runs one line of Python, saves what it prints, and shows it. On Windows PowerShell use python instead of python3 if needed.

That last file matters. It shows that Python runs, that output can be redirected, and that you can read it back. Those three abilities are all the pipeline needs from your machine for the first few days.

If it did not work

Skipping the scope note because it feels like paperwork

Write it first, every time. It takes two minutes and protects you from touching something you should not.

Typing commands in the wrong folder

Run pwd (or cd on older Windows shells) to see where you are, then cd recon-course to get back. If you opened a new terminal window, it starts in your home folder again.

Python reports 'command not found' after installing

Close and reopen the terminal. On Windows, reinstall and tick 'Add Python to PATH', or try python instead of python3.

Overwriting a file with > when you meant to add to it

Use >> to append. Check the file with cat afterwards.

Editing a file in VS Code and forgetting to save

Look for a dot on the file's tab, which means unsaved changes. Press Ctrl+S or Cmd+S, then check with cat.

Recap

  • Recon means gathering information, and for defenders it shows what your own systems reveal.
  • A pipeline is steps chained together, each writing output that the next reads.
  • Scope is a written list of what you may touch. Anything not on it is off limits.
  • In this course we only test our own machine, a local setup, or a named practice lab.
  • The > symbol saves command output to a file, and >> adds to the end of one.
  • Check where you are with pwd and what a file holds with cat before you trust it.

Cheat sheet

python3 --version
Checks Python 3 is installed
mkdir name
Creates a folder
cd name
Moves into a folder
pwd
Prints your current folder
ls / dir
Lists files in the folder
command > file
Saves output, replacing the file
command >> file
Appends output to the file
cat file / type file
Shows a file's contents
hostname
Prints your computer's name
whoami
Prints your username

Before the next day

Mission: Build your recon-course workspace

Set up the folder every later day will use and prove it works. You will write a scope note naming only your own machine, then save one command's output. This gives you a clean, safe base for the pipeline.

About 30 min

You are done when: A recon-course folder containing scope.txt and hostname.txt, plus a screenshot of both files.

Want more? Add a file called notes.txt and use >> to append the output of date, whoami and python3 --version, one command at a time.

Quiz

4 questions. Your score is saved with your progress.

1. Why do we write a scope note before running any tool?

2. In a pipeline, what does each step usually do?

3. You want to add a line to scope.txt without losing what is there. Which do you use?

4. A friend offers their website for you to 'have a look at' with no written permission. What do you do?

Finish the day

Mark the day complete to save your progress.

Go to Day 2

Next: On Day 2 we open your browser's developer tools and learn what a website reveals to any visitor. The folder and scope note you made today are where your notes will live.

Tell someone you are doing this:WhatsAppXLinkedIn

Your notes

Private to this device. Write what you want to remember from today.