-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
1 lines (1 loc) · 3.42 KB
/
script.js
File metadata and controls
1 lines (1 loc) · 3.42 KB
1
const _0xf32c9f=_0x1dd8;(function(_0x76077b,_0x47b1b4){const _0x144386=_0x1dd8,_0x229bab=_0x76077b();while(!![]){try{const _0x32f337=-parseInt(_0x144386(0x117))/0x1+parseInt(_0x144386(0x123))/0x2+parseInt(_0x144386(0x111))/0x3+parseInt(_0x144386(0x11d))/0x4+parseInt(_0x144386(0x124))/0x5+parseInt(_0x144386(0x136))/0x6+-parseInt(_0x144386(0x122))/0x7*(parseInt(_0x144386(0x121))/0x8);if(_0x32f337===_0x47b1b4)break;else _0x229bab['push'](_0x229bab['shift']());}catch(_0x52a037){_0x229bab['push'](_0x229bab['shift']());}}}(_0x3381,0x7aad9));const correctFlags={'flag1':_0xf32c9f(0x112),'flag2':_0xf32c9f(0x131),'flag3':_0xf32c9f(0x11c)};function _0x3381(){const _0x391867=['1367030mvhflm','2883845eDCvPE','classList','textContent','✅\x20Flag\x20benar!\x20Poin\x20ditambahkan.','push','hiddenLink','❌\x20Flag\x20salah!\x20Coba\x20lagi.','finalReward','getItem','value','Tantangan\x20selesai!','smooth','parse','CTF{Sh0r\x27s_Alg0r1thm_W1ns}','remove','#2ecc71','style','setItem','1265052PKnnpB','keys','disabled','color','1826301BLAQMn','CTF{Qu4ntum_Crypt0_1s_Futur3}','nextElementSibling','completedChallenges','includes','getElementById','181917DcILta','result','scrollIntoView','stringify','placeholder','CTF{Z3r0_D4y_Rul3z}','2127736gbeOXL','slice','hidden','every','8JxJvtb','13491947aXmEAC'];_0x3381=function(){return _0x391867;};return _0x3381();}function _0x1dd8(_0x45cedf,_0x2bdc19){const _0x338100=_0x3381();return _0x1dd8=function(_0x1dd89a,_0x5a7f39){_0x1dd89a=_0x1dd89a-0x111;let _0x2a270e=_0x338100[_0x1dd89a];return _0x2a270e;},_0x1dd8(_0x45cedf,_0x2bdc19);}function submitFlag(_0x40f641){const _0x3ab9ae=_0xf32c9f,_0x417c2b=document[_0x3ab9ae(0x116)](_0x40f641),_0x125e6f=document[_0x3ab9ae(0x116)](_0x3ab9ae(0x118)+_0x40f641[_0x3ab9ae(0x11e)](0x4));if(_0x417c2b[_0x3ab9ae(0x12d)]===correctFlags[_0x40f641]){_0x125e6f[_0x3ab9ae(0x126)]=_0x3ab9ae(0x127),_0x125e6f[_0x3ab9ae(0x134)][_0x3ab9ae(0x139)]=_0x3ab9ae(0x133);const _0x4fa6d1=JSON['parse'](localStorage[_0x3ab9ae(0x12c)](_0x3ab9ae(0x114)))||[];!_0x4fa6d1[_0x3ab9ae(0x115)](_0x40f641)&&(_0x4fa6d1[_0x3ab9ae(0x128)](_0x40f641),localStorage[_0x3ab9ae(0x135)]('completedChallenges',JSON[_0x3ab9ae(0x11a)](_0x4fa6d1)),checkAllChallengesCompleted());}else _0x125e6f[_0x3ab9ae(0x126)]=_0x3ab9ae(0x12a),_0x125e6f[_0x3ab9ae(0x134)][_0x3ab9ae(0x139)]='#e74c3c';_0x125e6f[_0x3ab9ae(0x125)]['remove'](_0x3ab9ae(0x11f));}function checkAllChallengesCompleted(){const _0x5dcfd9=_0xf32c9f,_0x2e3a1e=JSON[_0x5dcfd9(0x130)](localStorage['getItem']('completedChallenges'))||[],_0x2da644=Object[_0x5dcfd9(0x137)](correctFlags),_0x4d9958=_0x2da644[_0x5dcfd9(0x120)](_0x16c7f3=>_0x2e3a1e[_0x5dcfd9(0x115)](_0x16c7f3));_0x4d9958&&(document[_0x5dcfd9(0x116)](_0x5dcfd9(0x12b))['classList'][_0x5dcfd9(0x132)](_0x5dcfd9(0x11f)),document[_0x5dcfd9(0x116)](_0x5dcfd9(0x129))[_0x5dcfd9(0x134)]['display']='block',setTimeout(()=>{const _0x38ed6e=_0x5dcfd9;document[_0x38ed6e(0x116)](_0x38ed6e(0x12b))[_0x38ed6e(0x119)]({'behavior':_0x38ed6e(0x12f)});},0x1f4));}document['addEventListener']('DOMContentLoaded',function(){const _0x3b55bb=_0xf32c9f,_0x46d706=JSON[_0x3b55bb(0x130)](localStorage['getItem'](_0x3b55bb(0x114))||'[]');_0x46d706['forEach'](_0x37c8b7=>{const _0x43f56f=_0x3b55bb,_0x198664=document[_0x43f56f(0x116)](_0x37c8b7);if(_0x198664){_0x198664[_0x43f56f(0x138)]=!![],_0x198664[_0x43f56f(0x11b)]=_0x43f56f(0x12e);const _0x5d7312=_0x198664[_0x43f56f(0x113)];if(_0x5d7312)_0x5d7312[_0x43f56f(0x138)]=!![];}}),checkAllChallengesCompleted();});