Skip to content

Instantly share code, notes, and snippets.

@sh9351
Created April 6, 2024 14:47
Show Gist options
  • Save sh9351/bb51e473523d5b79147e5a69430c2f14 to your computer and use it in GitHub Desktop.
Save sh9351/bb51e473523d5b79147e5a69430c2f14 to your computer and use it in GitHub Desktop.
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}`)
}
}
}
}
@KnightChaser
Copy link

Haha funny and intriguing code... TOSS friends would like it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment