Skip to content

Commit

Permalink
perf: modify the text
Browse files Browse the repository at this point in the history
  • Loading branch information
Minemetero committed Nov 14, 2024
1 parent bdc9d6a commit 9a882b0
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion assets/js/locker2.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const correctFlagHash = 'b1fc7cae5c24f2625866f490e53b17f4e4ddb30c33d6422ff650dce
async function checkFlag() {
const enteredFlag = document.getElementById('flagInput').value;
const hashedEnteredFlag = await hashFlag(enteredFlag);
const successMessage = "Q29uZ3JhdHVsYXRpb25zISBZb3UndmUgdW5sb2NrZWQgdGhlIGxvY2tlci4gTXIuQyBpcyB2ZXJ5IGN1bm5pbmcsIGhlIGhhcyBhbHJlYWR5IHRyYW5zZmVycmVkIHRoZSBzZWNyZXQgYmVmb3JlIHlvdXIgYXJyaXZhbA==";
const successMessage = "TXIuQyBpcyBzbWFydCBidXQgbm90IHRoYXQgc21hcnQsIHdlIGZvdW5kIGEgVVJMIGxlYWQgdG8gYSBjbG91ZCBzdG9yYWdlLiBJIGd1ZXNzIGhlIHB1dHRlZCBzb21lIGZpbGVzIHRoZXJl";

if (hashedEnteredFlag === correctFlagHash) {
document.querySelector('.locker').textContent = '🔓';
Expand Down
2 changes: 1 addition & 1 deletion assets/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ function checkFlag() {

if (enteredFlag === correctFlag) {
document.querySelector('.locker').textContent = '🔓';
alert("Don't be happy to early. Mr.C's secret is always safe!");
alert("Don't be happy to early. Mr.C realize it and transfor the secret already!");
// Redirect to the harder game
window.location.href = 'locker2.html';
} else {
Expand Down
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
</head>

<body>
<h1>Welcome to the Secret Locker Challenge!</h1>
<p>Your goal: Find the secret code hidden somewhere on this page to unlock the virtual locker!</p>
<h1>Welcome to the Locker Challenge!(Guide)</h1>
<p>Your goal: Find the secret code hidden somewhere on this page to unlock the locker!</p>
<div class="locker">🔒</div>
<p>The locker is locked! Can you find the code to unlock it?</p>

Expand Down
12 changes: 6 additions & 6 deletions locker2.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,24 @@

<body>
<s-page theme="dark">
<h1>Welcome to the Ultimate Locker Challenge!</h1>
<h1>Another Locker</h1>
<p>This time, only the best can find the secret code. I know you are curious and want to know the secret of Mr.C
</p>
<div class="locker">🔒</div>
<p>The locker is locked again. Can you hack the locker?</p>
<p>You found another locker, key is probably here...</p>

<div class="cards-wrapper">
<s-card>
<div class="step">
<h2>Step 1: Investigate Deeply</h2>
<h2>Hint: Investigate Deeply</h2>
<p>Clue: Part of the secret flag is hidden somewhere within the resources of this page. You might need
to look beyond the HTML...</p>
</div>
</s-card>

<s-card>
<div class="step">
<h2>Step 2: Solve the Riddle</h2>
<h2>There is a riddle on the sticky notes.</h2>
<p>Solve this to get the next part of the flag:</p>
<p>"I speak without a mouth and hear without ears. I have nobody, but I come alive with wind. What am
I?"
Expand All @@ -45,7 +45,7 @@ <h2>Step 2: Solve the Riddle</h2>
<s-card>
<div class="step">
<img src="./assets/images/2.png" alt="" class="hidden">
<h2>Step 3: Decode the Cipher</h2>
<h2>Cipher! But...What is this?</h2>
<p>To get the final part of the flag, decrypt this message encrypted with a Vigenère cipher:</p>
<p><code>GIEWIV GMTLIV HIQS</code></p>
<p>Hint: <code>VGhlIGtleSBpcyBhIGNvbW1vbiBncmVldGluZy4=</code></p>
Expand All @@ -59,7 +59,7 @@ <h2>Step 3: Decode the Cipher</h2>

<s-card>
<div class="step">
<h2>Step 4: Assemble the Flag!</h2>
<h2>Try to group it...</h2>
<p>Now that you've collected all the parts, assemble them in the correct order to unlock the locker:</p>
<div class="input-section">
<s-text-field id="flagInput" label="Enter the final flag"></s-text-field>
Expand Down

0 comments on commit 9a882b0

Please sign in to comment.