Created
April 6, 2024 14:47
-
-
Save sh9351/bb51e473523d5b79147e5a69430c2f14 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const todayYear = new Date().getFullYear() | |
mainLoop: for (let year = todayYear; year > todayYear - 100; year--) { | |
for (let month = 1; month <= 12; month++) { | |
for (let day = 1; day <= 31; day++) { | |
const passphrase = `${year.toString().slice(-2)}${month.toString().padStart(2, '0')}${day.toString().padStart(2, '0')}` | |
try { | |
const isDecryptionSuccessful = decryptAndReplaceHtml(passphrase) | |
if (!isDecryptionSuccessful) throw new Error('Decryption failed') | |
console.log(`SUCC ${passphrase}`) | |
break mainLoop | |
} catch { | |
console.log(`FAIL ${passphrase}`) | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Haha funny and intriguing code... TOSS friends would like it