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.
Need to log into Minecraft Education, Canva, or any other app that asks you to sign in? Most school and app accounts use the same login: your username is [email protected] (add a number if your name needs one, e.g. firstname.lastname2), and your password is the same one you use to log into your school computer.
Every project has at least one thing to hand in. Log into connect.det.wa.edu.au with your firstname.lastname and computer password, then head to your class and open the Submission section. Handing in more than one file? Zip them together first - total size must stay under 50MB.
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.
| 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 | ||||
Paste or type JavaScript, then press Run. Anything your code shows with console.log() appears in the console underneath. Ctrl+Enter also runs it.
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.
A dot is a short beep and a dash is a long one. Letters are split by spaces, and words by a slash.
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.
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.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 %console.log lines and run it again. A negative shift decodesfor loop, which is a brute-force attack written in codecaesar-yourname, and press Save. It downloads as a .txt filefunction 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));
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));
}
Caesar instead of caesar is the usual cause.console.log("Key 11: " + caesar(secret, -11));. Then encode your own message with caesar("YOUR MESSAGE", 5) and check the brute force cracks it.Dear Customer,
We detected suspicious activity on your NovaPlay acount. If you do not verify your details within 24 hours your account and all your games will be permanently deleted.
Click here to verify now: https://novaplay.com/verify
Link really goes to: http://novap1ay-alerts.com/login.php
Reply with your username and password so our team can keep your account safe.
NovaPlay Security Team
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"));
}
}
** 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.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?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 expressioncommon listtests list and predict each score before you run itchecker-yourname and submit the .txt file through Connectfunction 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);
}
}
[^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.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?The key is 1.
The whole message is the flag.
The whole message is the flag.
Julius Caesar's favourite key.
Nobody knows the key. Brute-force it.
The whole message is the flag.
The whole message is the flag.
The flag is the domain this email really came from (everything after the @).
Only one follows the ACSC passphrase advice. That one is the flag.
Run this in the Ops Terminal. It prints the flag.
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);
Morse first. Then shift back 1.
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.
Form your squad, read the Squad Code // Op 01