Skip to content

Instantly share code, notes, and snippets.

@jakic12
Created September 3, 2019 21:04
Show Gist options
  • Save jakic12/ca9f678742a21aae7d6c4a443ed5bbda to your computer and use it in GitHub Desktop.
Save jakic12/ca9f678742a21aae7d6c4a443ed5bbda to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<title>ctf</title>
</head>
<body>
<input type="text" name="test" onchange="submit(this.value)">
<p id="result"></p>
<script>
function submit(e){
const result = X(e)
if(result == true)
document.getElementById("result").innerHTML = "good job"
else{
console.log(result)
}
}
E = /෶ไ๠໤ํ฻ҢӾѣӡФ҃ЍѸӡӥӨѼѡҗค๘่ฟ็໲໚บฮฎธ๹ฐดถะຽິึ๋๋າ෹๛๟คຉ໎ѭЛҋӏӱӀМҗӤӎлҺғў༬ຯཀཇཾ༕ༀ༩༨༩ཱླྀ༚༮༖༡ོཕ༿སབཝೕ༓ཞ༎ཀཎ֎׉֌׉׿ԪֿՂ׽ס׌ֳս֬༽༴ཅཆཆཀྵ࿣ཪ༘༗༘ཀ༗༞༎མཛ྾༈཮ྮཛఢ༃ྑ༨཯࿻֘׏֛ԑֽԆԉ֋ԄԤךղֶՇ༏ཝག༚ཆༀ༓༎࿵ླ࿩ྛ༑ྰ༚ྦཔྐྵ༾ཊྵྲྀఇྗྞ࿉ྉ࿗ׂ֤֍ԅנ׉ׯ֬ԺԐԩսרկྡྜ྿ྡ྿࿵ှ࿽တဨ၊ျ၁ၯၨၿ၎ၤ၂ဘ၎ဍᏚၚ၃ၐၽဤ᪕᫮ᫀ᪈᫧᫭ᫎᩓ᫰᫸ᨙᩛᩲ᪪ဉၲႦၶလမဓဖဪဇဗ၂ၙဓ၀ဏၚၑტႭၚၒᏞၥၴဥၪჺ᪂᫗᩿᫥᫥ᨵ᪦᪸ᨭᨑ᫽᪩᩷ᩐးႝႿთၡნဠ჉ჱငწႠစჲაဒႸႭႥ၃၅Ⴓገၜၒွႍჭᩇ᫝᩶ᨅᨹᨔᨭ᪬ᨌ᨜ᨿ᩶᪁ᩜႣ႘ၓᄷႽ히ᅍᅛᄧᅸᅊლᄀᄭᅐᅏᅠᄕᅞᅴᅲ኉ᅤᄐᄅᅙᄟ᮪ᮟᮡᮝᮬᮋᯌᬸ᮫ᮦᮄᯰᬄᮄᅀᄲᄽ하ᄤᄻᄟᄑᄛᄄᅔᄒᇵᅘᄘᅠᅓᄏᅃᅬᆿዡᅿᅀᅔᅝᄛ᮵ᬸ᮲ᬯᬟᬰᬣ᭹ᯇᯑᯱᮌ᭲᭜ᄦᆁᅜᄁᅙᄓᄒᄋᇏᄕᄔᅫᄇᄜᄏᇥᆩᆕᇪᅟᆭᅻ዆ᅜᅤᄳᆽᇸ᮰ᯐᮢᯅ᯷ᯗᯨᮽ᯼ᬟ᯵ᮬᭌᮟᄝᆮᆗᄛᆀᇪᆤᇲᇰሽᆭᇦᇁሔቅሕ቎ቐለ቏ተተᇈቝ቙ሌሓሂᡃᣚᣎᢆ᠂ᣜ᠕ᡡ᠚᣾ᢢᢔᡕᡲሗቍክሶሠቖሑርህሬታቖራሆልሉቇሜሐቍቕቅᇉቌቁርካሕᢏᣟᢸ᣹᠊ᣛ᠜ᡌ᠄ᣥᠹᢤᡵᢂሖቁቆዙቩዖዄዜዒምሀቕሎሔዱሞኞቔዳ቙ቃ቞/;
function X(Χ){ord=Function.prototype.call.bind("".charCodeAt);chr=String.fromCharCode;str=String;function h(C,B){return chr(ord(C)^(ord(B)+ ++A));}function k(C,B){let o = "";for(let I=0; I!=C.length; I++){o+=h(str(C[I]),B[I%B.length]);}return o;}function c(S){let D=0;for(I=0;I<S.length;I++){D+=ord(S[I])/(++A-1000);}let O=`${D}`;return O;}for(A=0;A<1000;A++){debugger}X=k(str(X),c(str(X)));source=E;source.toString=function(){return k(source,k(X,`c`));};try{console.log('debug', source);with(source){return eval('eval(k(source,X))')}}catch(E){}}
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment