Home
// Digital Technology - Year 9 & 10 //

HACK SQUAD CYBER OPS

> FUDFN WKH FRGH // shift 3

Over the next 10 ops your squad learns to think like a white-hat hacker: crack secret messages, spot a phishing trap before it bites, write JavaScript that judges a password, then race other squads on Capture the Flag Day. Everything you need is built into this page.

🔐 Cipher Cracking
🎣 Phishing Patrol
🔑 Password Lab
🚩 CTF Day
Your Toolkit
💻
The Ops Terminal
Built into this page, below the rubric. Write JavaScript, press Run and the result appears in the console. Save downloads your code as a .txt file and Open loads it back.
⚠ Closing or refreshing the page clears the terminal. Press Save before you leave every lesson.
🧰
Cipher Tools
Also built in, under the terminal: a Caesar Shifter that can try every shift at once, a Morse code table and a Pigpen key.
🎨
Design Studio
Canva - where you design your Phish Trap, a fake phishing email for a made-up company, in Op 06.
🧠
AI Assistant
copilot.microsoft.com - ask it to explain a line of code or why your program shows an error.
⚠ AI can write code that looks right but does not run. Paste it into the Ops Terminal and test it. No AI on CTF Day.
🛡️
Squad Code
White hats only. You practise on this page and on things you made, never on anyone else's account or device. In Australia, getting into data protected by a password without permission is a crime (Criminal Code, section 478.1).
🚩
CTF Day Rules
Squads of three. The challenges unlock in Op 10. Type a flag and the page checks it. Use this page's tools and your own code, keep your flags inside your squad, and no AI.
// Primary Objective

Learn how attackers trick people and break weak secrets, so you can stop them. Crack ciphers, catch phishing, code a password checker, then prove it as a squad on Capture the Flag Day.

Crack Caesar, Morse and Pigpen messages by hand, with the tools, and with your own code
Spot the red flags in a phishing email, then design a trap that hides them for others to find
Code a JavaScript password checker that scores a password and tells you how to fix it
Capture flags with your squad on CTF Day, using everything you learned
// Marking Key & Rubric
Criteria Recruit
(0-1)
Analyst
(2-3)
Operative
(4)
Elite
(5)
Score
Cryptography Cracks a cipher only with the answer shown Cracks Caesar, Morse and Pigpen messages with the tools Cracks an unknown shift and explains why Caesar is weak Codes a working Caesar cipher and brute-forces a secret with it / 5
Phishing Awareness Finds one or two red flags in a phishing email Finds most red flags, and the Phish Trap has a few Finds every red flag, and the Phish Trap hides 5 with an answer key Phish Trap is convincing yet fair, and the squad explains how to report one / 5
Code & Logic Code pasted in with no changes and not understood Password checker runs and the tests are explained Checker changed with your own rule and tested on your own list Checker gives useful tips, and you can explain every line / 5
CTF & Teamwork Little effort on training or CTF Day Captured some flags and helped the squad Captured flags in several categories with a clear squad plan Led the squad, shared methods fairly and reflected honestly / 5
Total / 20
Scroll sideways to see every column
// Ops Terminal

Paste or type JavaScript, then press Run. Anything your code shows with console.log() appears in the console underneath. Ctrl+Enter also runs it.

Console
Press Run to see what your code prints.
// Cipher Tools

🔐 Caesar Shifter

Type a message, pick a shift and read the result. To decode, use the same number with a minus in front (a shift of 3 is undone by -3). Try All 25 shows every possible shift at once.

📡 Morse Code Table

A dot is a short beep and a dash is a long one. Letters are split by spaces, and words by a slash.

✏️ Pigpen Key

Each letter becomes the shape of the lines around it. The second grid and X have a dot, so J looks like A plus a dot.

Ops Log
Week 1
01
🛡️ Join the Squad
▾
// OPS OBJECTIVESquad formed and named, Squad Code read, and your first Caesar message decoded by hand.
  • Learn the brief: over 10 ops your squad learns how attackers break secrets and trick people, so you can defend against them. On Op 10 you race other squads in a Capture the Flag (CTF), a cyber security game where every solved puzzle reveals a secret word called a flag
  • Learn the difference: a black-hat hacker breaks in without permission to cause harm, and a white-hat hacker has permission and finds weak spots so they can be fixed. Read the Squad Code card in Your Toolkit
  • Talk as a class: in Australia, getting into data that is protected by a password without permission is a crime, even if you only look. Why do you think "I was only looking" is not an excuse?
  • Form your squad of three and choose a squad name. You stay in this squad for the whole project, including CTF Day
  • Your first decode: the message below was shifted 3 letters along the alphabet. Write the alphabet on paper and shift every letter back by 3 to read it
  • Check your answer with the Caesar Shifter in the Cipher Tools, set to -3
  • Encode your squad name with a shift of 3, swap with another squad and decode theirs
// Intercepted message - shift 3ZHOFRPH WR WKH VTXDG
💡 HintShifting back 3 means A becomes X, B becomes Y and C becomes Z. The alphabet wraps around like a clock.
// ASK AI"What does a white-hat hacker do in a real job? Give me three examples of how they keep people safe."
02
🔐 Caesar Cracker
▾
// OPS OBJECTIVEBoth messages decoded, one using a brute-force attack, and you can explain why Caesar is easy to crack.
  • Learn the words: plaintext is the readable message, ciphertext is the scrambled one, and the key is the secret that turns one into the other. In a Caesar cipher the key is the shift number
  • The Caesar cipher is named after Julius Caesar, who used a shift of 3 to send secret messages over 2,000 years ago
  • Decode message 1 below by hand. You are told the key is 3
  • Message 2 has an unknown key. Try a few shifts by hand on the first word, then use Try All 25 in the Caesar Shifter and scan the list for the one that makes sense
  • Trying every possible key is called a brute-force attack. Caesar only has 25 useful keys. Why does that make it a weak cipher?
  • Write a short message for your squad, encode it with your own secret key, and give it to another squad to brute-force
// Message 1 - key is 3PHHW DW WKH ROG OLEUDUB
// Message 2 - key unknownAOL WHZZDVYK PZ UVA ZHML
💡 HintShort words give the key away. THE is the most common three-letter word in English, so try turning the first three-letter word into THE.
🔍 Google Image Search"caesar cipher wheel"
// ASK AI"Explain a brute-force attack on a Caesar cipher in simple words. Why are modern ciphers much harder to brute-force?"
// LEVEL UPIn English, E is the most common letter. Count the letters in this message: XOXKR LXVKXM GXXWL T LMKHGZXK DXR MATG MAXLX. The letter that appears most is probably E. Count how far it is from E, then check that shift with the Caesar Shifter.
Week 2
03
📡 Morse & Pigpen
▾
// OPS OBJECTIVETwo Morse messages and one Pigpen message decoded, and your squad name encoded both ways.
  • Learn the difference: a code swaps letters for symbols anyone can look up, and a cipher needs a secret key. Morse code is a code. Caesar is a cipher
  • Open the Morse Code Table in the Cipher Tools and decode both Morse messages below. Letters are split by spaces and words by a slash
  • Open the Pigpen Key. Each letter becomes the lines around its spot in the grid or the X, and the second grid and X add a dot
  • Decode the Pigpen message below by matching each shape to the key
  • Encode your squad name in both Morse and Pigpen on paper, swap with another squad and decode theirs
  • Discuss: if everyone can look up the Morse table, is Morse a good way to keep a secret?
// Morse message 1... --- ...
// Morse message 2... - .- -.-- / ... .... .- .-. .--.
// Pigpen message
💡 HintIn Morse, check the length first. E is a single dot and T is a single dash, so very short groups are easy wins.
🔍 Google Image Search"pigpen cipher key"
// ASK AI"What is the difference between a code and a cipher? Use Morse code and the Caesar cipher as examples."
// LEVEL UPDouble lock it: Caesar-shift a word by 1 with the Caesar Shifter, then write the result in Morse. Give it to another squad and tell them only "Morse first, then shift back 1". This is exactly how the hardest CTF challenge works.
04
💻 Code a Cipher
▾
// OPS OBJECTIVEA working Caesar function, a brute-force loop that found the hidden key, and your code saved as a .txt file.
  • Scroll up to the Ops Terminal. Click Copy on the first code box below, click inside the terminal, press Ctrl+A then Ctrl+V, then press Run
  • Read the code: caesar(text, shift) is a function. It walks through the message one letter at a time, finds the letter's position in the alphabet with indexOf, moves it along by the shift and wraps around with %
  • Change the message and the shift in the two console.log lines and run it again. A negative shift decodes
  • Copy the second code box into the terminal. It runs your function 25 times in a for loop, which is a brute-force attack written in code
  • Find the line in the console that makes sense. What was the key?
  • Save your code: type a name in the box next to Save, such as caesar-yourname, and press Save. It downloads as a .txt file
// A Caesar cipher function
function caesar(text, shift) {
  const alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
  let result = "";
  for (const letter of text.toUpperCase()) {
    const index = alphabet.indexOf(letter);
    if (index === -1) {
      result += letter;          // spaces and symbols stay the same
    } else {
      const newIndex = ((index + shift) % 26 + 26) % 26;
      result += alphabet[newIndex];
    }
  }
  return result;
}

console.log(caesar("HELLO SQUAD", 3));
console.log(caesar("KHOOR VTXDG", -3));
// Brute force - try every key in a loop
function caesar(text, shift) {
  const alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
  let result = "";
  for (const letter of text.toUpperCase()) {
    const index = alphabet.indexOf(letter);
    if (index === -1) {
      result += letter;
    } else {
      result += alphabet[((index + shift) % 26 + 26) % 26];
    }
  }
  return result;
}

const secret = "JZF HCZEP L NZOPMCPLVPC";
for (let key = 1; key <= 25; key++) {
  console.log(key + ": " + caesar(secret, -key));
}
💡 HintIf the console shows a red error, read the line number it gives. A missing bracket or a misspelt name like Caesar instead of caesar is the usual cause.
🔍 Google Image Search"javascript for loop diagram"
// ASK AI"Explain what ((index + shift) % 26 + 26) % 26 does in JavaScript, step by step, for index 1 and shift -3."
// LEVEL UPAdd a line under the loop that prints only the answer you found, for example console.log("Key 11: " + caesar(secret, -11));. Then encode your own message with caesar("YOUR MESSAGE", 5) and check the brute force cracks it.
Week 3
05
🎣 Phishing Red Flags
▾
// OPS OBJECTIVERed flags found in the NovaPlay email and a squad checklist written for Op 06.
  • Learn the idea: phishing is a fake message that pretends to be from someone you trust, so you click a bad link, open a bad file or hand over a password. It does not break a cipher, it tricks a person
  • Read the email below from the made-up game company NovaPlay on your own first. Write down every detail that feels wrong
  • Compare with your squad, then open Show the red flags and check your list. How many did you find?
  • Learn the checks from eSafety's guide: look at the part of the address after the @, never sign in through a link in an email, and type the real website yourself instead
  • Learn what to do with a real one: do not reply or click, tell a trusted adult, and report scams to Scamwatch
  • Make a squad checklist of the red flags to use in Op 06 and on CTF Day
Show the red flags
  1. Fake sender address: novap1ay-alerts.com uses the number 1 instead of the letter l, and it is not the company's real website
  2. Panic and a deadline: URGENT, capital letters and 24 hours are there to rush you
  3. Spelling mistakes: "acount" appears twice
  4. Generic greeting: "Dear Customer" instead of your name
  5. The link lies: the words show novaplay.com, but the link really goes somewhere else
  6. Asks for your password: real companies never ask for it by email
  7. Unexpected attachment: a .zip you did not ask for can hide harmful files
💡 HintOne red flag on its own is not proof. Real companies sometimes write "Dear Customer" too, so look for several flags together.
🔍 Google Image Search"phishing email red flags example"
// ASK AI"Give me five common red flags in a phishing text message (not an email), with a made-up example of each."
// LEVEL UPPhishing by text message is called smishing. Write a short fake text from "NovaPlay" with three red flags hidden in it, using only flags from your checklist. Swap with another squad. Can they find all three?
06
🪝 Phish Trap Design
▾
// OPS OBJECTIVEA Phish Trap for a made-up company with 5 hidden red flags, an answer key, and one swap with another squad.
  • Your mission: design a fake phishing email in Canva for training other squads. It is a puzzle, not a real scam, so it is only ever shown in class
  • Invent a company. Never use a real brand, a real website or a real person's name, email or photo
  • Hide exactly 5 red flags from your Op 05 checklist. Make them findable but not obvious: a fake address with one changed letter is better than one that says "SCAM"
  • Design it to look like an email: a From line, a Subject, a greeting, the message and a button or link
  • Make a second page in the same Canva design: the answer key, with each red flag circled and numbered
  • Swap screens with another squad (page 1 only). Give them 5 minutes to find your flags, then reveal the key. Which flag did nobody find?
  • Download both pages as a PDF and submit it through Connect
💡 HintThe best traps feel real. Use your made-up company's logo and colours, then slip the red flags into the small details people skim past.
🔍 Google Image Search"fake company logo design ideas"
// ASK AI"Suggest five made-up company names and slogans for a school phishing-awareness activity. They must not be real brands."
📤 Submit via ConnectYour Phish Trap PDF: page 1 the email, page 2 the answer key
// LEVEL UPAdd a third page: the reply a careful person would send to their teacher or parent instead of clicking, saying which flags they spotted and asking what to do.
Week 4
07
🔑 Password Science
▾
// OPS OBJECTIVEThe counting code run, the effect of length explained with numbers, and the ACSC passphrase advice and MFA understood.
  • Learn how passwords get cracked: an attacker's computer guesses again and again. The more possible passwords there are, the longer that takes, so the question is how many possibilities a password has
  • Copy the code box below into the Ops Terminal and run it. It counts every possible password for different lengths and sets of characters
  • Compare the rows: does adding 4 more characters or adding symbols make the bigger jump?
  • Learn the advice from the Australian Signals Directorate's Australian Cyber Security Centre (ACSC): use a passphrase of four or more random words, at least 15 characters long, and a different one for every account
  • Learn about multi-factor authentication (MFA): a second check, like a code on your phone, so a stolen password is not enough on its own
  • Never test a real password in any website or tool, including this page. Use made-up examples only
// How many possible passwords?
const charSets = [
  ["digits only", 10],
  ["lowercase letters", 26],
  ["upper and lowercase", 52],
  ["letters, digits and symbols", 94]
];
const lengths = [8, 12, 16];

for (const [name, size] of charSets) {
  for (const length of lengths) {
    const total = BigInt(size) ** BigInt(length);
    console.log(name + ", " + length + " characters: " + total.toLocaleString("en-AU"));
  }
}
💡 Hint** means "to the power of", so 26 ** 8 is 26 multiplied by itself 8 times. BigInt lets JavaScript work with numbers far too big for a normal calculator.
🔍 Google Image Search"passphrase vs password infographic"
// ASK AI"Why is a long passphrase of random words usually stronger than a short password with symbols? Explain with numbers."
// LEVEL UPFour words picked at random from a list of 7,776 work like a 4-character password where each "character" has 7,776 options. Add console.log("4 random words: " + (7776n ** 4n).toLocaleString("en-AU")); to the end and run it. How does it compare with 8 letters, digits and symbols? Change the 4 to a 5. What does one extra word do?
08
🧪 Strength Checker
▾
// OPS OBJECTIVEA working password checker with your own tests and one rule you changed and can explain, saved and submitted.
  • Copy the code box below into the Ops Terminal and run it. It checks a list of made-up passwords and gives each one a score out of 6 with tips
  • Read checkPassword: each if is one rule. /[A-Z]/.test(password) asks "is there a capital letter anywhere?", and the pattern between the slashes is called a regular expression
  • Find the line that stops very common passwords. Add two more weak passwords to the common list
  • Add three of your own made-up test passwords to the tests list and predict each score before you run it
  • Find a test where the score feels wrong. Change a rule so the checker agrees with the ACSC advice from Op 07
  • Save your code as checker-yourname and submit the .txt file through Connect
// Password strength checker
function checkPassword(password) {
  const common = ["password", "123456", "qwerty", "letmein", "iloveyou"];
  const tips = [];
  let score = 0;

  if (common.includes(password.toLowerCase())) {
    return { score: 0, tips: ["This is a very common password. Pick something else."] };
  }
  if (password.length >= 15) {
    score += 2;
  } else if (password.length >= 8) {
    score += 1;
    tips.push("Longer is stronger: aim for 15 characters or more.");
  } else {
    tips.push("Too short: aim for 15 characters or more.");
  }
  if (/[a-z]/.test(password)) { score++; } else { tips.push("Add some lowercase letters."); }
  if (/[A-Z]/.test(password)) { score++; } else { tips.push("Add a capital letter."); }
  if (/[0-9]/.test(password)) { score++; } else { tips.push("Add a number."); }
  if (/[^A-Za-z0-9]/.test(password)) { score++; } else { tips.push("Add a space or a symbol."); }
  return { score: score, tips: tips };
}

const tests = ["letmein", "Sunshine1", "purple duck potato boat", "Tr4in-Station!"];
for (const test of tests) {
  const result = checkPassword(test);
  console.log(test + "  ->  " + result.score + " / 6");
  for (const tip of result.tips) {
    console.log("   tip: " + tip);
  }
}
💡 Hint[^A-Za-z0-9] means "any character that is NOT a letter or a digit", so a space counts as a symbol. That is how a passphrase with spaces earns the symbol point.
🔍 Google Image Search"password strength meter design"
// ASK AI"Explain what /[A-Z]/.test(password) does in JavaScript, and show me a regular expression that checks for a digit."
📤 Submit via ConnectYour checker .txt file, with your own rule change and test passwords
// LEVEL UPReward passphrases. Just above the last return line, add if (password.split(" ").length >= 4) { score++; } and change "/ 6" to "/ 7". Does "purple duck potato boat" now catch up with "Tr4in-Station!"? Does that match the ACSC advice?
Week 5
09
🎯 CTF Training
▾
// OPS OBJECTIVEAll three training flags captured, squad roles agreed and your saved code tested and ready.
  • Learn how CTF Day works: each challenge hides a flag, a secret word. Type it into the box on the challenge and press Check. A correct flag scores points. Spaces and capitals do not matter
  • Plan your squad roles: a cipher cracker (Caesar, Morse, Pigpen), a coder (Ops Terminal) and a phish spotter. Everyone checks everyone's answers
  • Solve the three training challenges below as a squad. They work exactly like CTF Day, but these points do not count
  • After each one, write down which tool solved it and how long it took
  • Open your Caesar code and your checker .txt files with Open in the Ops Terminal and make sure both still run. You may need them on CTF Day
  • Agree on your CTF Day plan: who starts on which category, and when you swap if someone gets stuck
🔐 Caesar50

The key is 1.

UIF GMBH JT SPPLJF
📡 Morse50

The whole message is the flag.

-.- . -.-- ...
✏️ Pigpen50

The whole message is the flag.

Training score: 0 / 150
💡 HintStuck for more than five minutes? Swap challenges with a squad member. Fresh eyes often see it straight away.
// ASK AI"What are good teamwork strategies for a capture the flag cyber security competition with three people?"
// LEVEL UPMake a training challenge for another squad. Pick a secret word, encode it two ways (for example Caesar then Morse), and write a one-line clue. Swap and solve.
10
🚩 Capture the Flag
▾
// OPS OBJECTIVECompeted on CTF Day with your squad, score recorded, and your reflection submitted.
  • Briefing: squads of three, one laptop shows the challenges. Use this page's tools and your own saved code. No AI, and keep your flags inside your squad
  • Open the challenges below when your teacher starts the clock. Solve them in any order. Harder challenges are worth more points
  • Type each flag into its box and press Check. Your squad score updates at the bottom. Refreshing the page resets the score, so do not refresh
  • When time is up, screenshot your squad score (press the Print Screen key, then drag around it). Your teacher records the leaderboard
  • Reflect on your own: which challenge was hardest, which skill from Ops 01 to 08 helped most, and one way you will stay safer online because of this project
  • Submit your score screenshot and your reflection through Connect
Open the CTF challenges
🔐 Warm Up100

Julius Caesar's favourite key.

WKH IODJ LV VWDUOLJKW
🔐 Unknown Key200

Nobody knows the key. Brute-force it.

IWT UAPV XH FJPCIJB
📡 Beeps150

The whole message is the flag.

-.-. --- -.. . -... .-. . .- -.- . .-.
✏️ Pigpen200

The whole message is the flag.

🎣 Phish150

The flag is the domain this email really came from (everything after the @).

🔑 Passwords150

Only one follows the ACSC passphrase advice. That one is the flag.

P@ssw0rd!
Jasmine2011!
lantern pickle orbit canyon
💻 Run It250

Run this in the Ops Terminal. It prints the flag.

// Challenge code
const c = [66, 89, 84, 69, 70, 79, 82, 67, 69];
let flag = "";
for (const n of c) {
  flag += String.fromCharCode(n);
}
console.log("FLAG: " + flag);
🧩 Double Lock300

Morse first. Then shift back 1.

--. .--- ... ..-. -..- -... -- --
Squad score: 0 / 1500
💡 HintGo for the quick wins first. The Warm Up and the Beeps take a couple of minutes, which banks points while you think about the Double Lock.
// ASK AI (after CTF Day)"Help me write a short reflection about what I learned about ciphers, phishing and passwords in a school cyber security project."
📤 Submit via ConnectYour squad score screenshot and your own written reflection
🚩

The Flags Are Waiting

After 10 ops of cracking, spotting and coding, your squad goes head to head with every other squad. Ciphers, phishing, passwords and code: every flag you capture proves you can think like an attacker and defend like a pro.

🚩 8 flags to capture
🧩 Ciphers to crack
🏆 Squad vs squad

Form your squad, read the Squad Code // Op 01

SYSTEM ONLINE // YEAR 9-10 DIGITAL TECHNOLOGY HACK SQUAD: CYBER OPS // 10 OPS