25 lines
834 B
Bash
25 lines
834 B
Bash
|
#!/usr/bin/env bash
|
||
|
|
||
|
echo "cGljb0NURns1M3J2M3JfNTNydjNyXzUzcnYzcl81M3J2M3JfNTNydjNyfQ" | base64 -d
|
||
|
|
||
|
# (
|
||
|
# async() => {
|
||
|
# await new Promise((e => window.addEventListener('load', e))),
|
||
|
# document.querySelector('form').addEventListener(
|
||
|
# 'submit',
|
||
|
# (
|
||
|
# e => {
|
||
|
# e.preventDefault();
|
||
|
# const r = {
|
||
|
# u: 'input[name=username]',
|
||
|
# p: 'input[name=password]'
|
||
|
# },
|
||
|
# t = {};
|
||
|
# for (const e in r) t[e] = btoa(document.querySelector(r[e]).value).replace(/=/g, '');
|
||
|
# return 'YWRtaW4' !== t.u ? alert('Incorrect Username') : 'cGljb0NURns1M3J2M3JfNTNydjNyXzUzcnYzcl81M3J2M3JfNTNydjNyfQ' !== t.p ? alert('Incorrect Password') : void alert(`Correct Password! Your flag is ${ atob(t.p) }.`)
|
||
|
# }
|
||
|
# )
|
||
|
# )
|
||
|
# }
|
||
|
# ) ();
|