fork(103) download
  1. <html><head><title>Obfuscation JS</title><!--
  2. Obfuscation
  3. .Niveau : Tr�s Difficile
  4. .By Hel0ck
  5. .The mission :
  6. Retrouver le password :)
  7. Vous aller en bavez HAHAHAHAHHAHHHAHAHHAHAHAHAHHA :x
  8.  
  9. /!\ ---------------------------------------------------
  10. INFO !
  11. Pour que le script marche, vous devais d'abord trouver comment d�coder le ttt.js
  12. C'est pas trop difficile, faut chercher :D
  13. ------------------------------------------------------- /!\
  14.  
  15. You need my help ? IRC : irc.root-me.org #root-me
  16. --></head><body>
  17. <form name="login" id="login" action="" method="post" onsubmit="checkPass()">
  18. <input id="password" name="password" value="EditerMoiPass" size="30" maxlength="30" />
  19. <input type="submit" value="Gooooo">
  20. </form>
  21. </body>
  22. <script type="text/javascript" src="offuscation5-ttt.js"></script>
  23. <script type="text/javascript">
  24. stringvalue = '';
  25. numericvalue = 0;
  26. function recfn0() {
  27. return 0;
  28. }
  29. for (i = 0; i < 100; i++) {
  30. n = i + 1;
  31. stringvalue += 'function recfn' + n + '(){ return recfn' + i + '();}';
  32. }
  33. eval(stringvalue);
  34. eval(recfn100());
  35. for (aMethodInWindow in window) {
  36. if (aMethodInWindow.length == parseInt(10.125625)) {
  37. if (aMethodInWindow.charCodeAt(0) == 115) {
  38. if (aMethodInWindow.charCodeAt(9) == 116) {
  39. break;
  40. }
  41. }
  42. }
  43. }
  44. alert(aMethodInWindow);
  45. var date = new Date();
  46. seconds = date['getSeconds']();
  47. window[aMethodInWindow]('refactored6("' + login.password.value + '")', someOtherEncodingFunction(2000));
  48. function someOtherEncodingFunction(parameter) {
  49. var value1, value2, value3, value4, d, r, value5;
  50. value1 = parameter;
  51. value2 += value1 >> (value4 - value1);
  52. value3 -= value4 + value1 + 1337;
  53. value5 = r ^ value3 + value1;
  54. return value1;
  55. }
  56. function refactored41(parameter) {
  57. value = parameter;
  58. if (value == 1) {
  59. return parseInt(1.256);
  60. }
  61. if (value == 2) {
  62. return parseInt(2.145);
  63. }
  64. if (value == 3) {
  65. return parseInt(3.145);
  66. }
  67. if (value > 3) {
  68. value = 145 + value - 145;
  69. return value;
  70. }
  71. return value;
  72. }
  73. function refactored1(parameter1, parameter2) {
  74. encodedString = '8aZ{E$+rT yU}1#2(IOP<qs,DFg.)H*Jk~L6M7]W;X%VxB:N!^-03/9[4&5|"?Kz';
  75. escapedParameters = escape(parameter2 + parameter1 + "eDer");
  76. output = "";
  77. var value1, value2, value3 = "";
  78. var _3, _1, _2, _0 = "";
  79. refactored13 = 0;
  80. refactored6 = encodedString;
  81. do {
  82. value1 = escapedParameters.charCodeAt(refactored13++);
  83. value2 = escapedParameters.charCodeAt(refactored13++);
  84. value3 = escapedParameters.charCodeAt(refactored13++);
  85. _3 = value1 >> refactored41(2);
  86. _1 = ((value1 & refactored41(3)) << 4) | (value2 >> refactored41(4));
  87. _2 = ((value2 & refactored41(15)) << refactored41(2)) | (value3 >> 6);
  88. _0 = value3 & 63;
  89. if (isNaN(value2)) {
  90. _2 = _0 = 64;
  91. } else if (isNaN(value3)) {
  92. _0 = 64;
  93. }
  94. output = output + refactored6.charAt(_3) + encodedString.charAt(_1) + refactored6.charAt(_2) + encodedString.charAt(_0);
  95. if (arguments.callee.toString().length != 1731) {
  96. output = "ESF0 ('7p(:5J";
  97. }
  98. value1 = value2 = value3 = "";
  99. _3 = _1 = _2 = _0 = "";
  100. } while (refactored13 < escapedParameters.length);
  101. if (encodingfn1(output, numericvalue) == encodingfn1("}8iH5:}Ypi}*VL}", 13) + "^2d2S*,~:JLESF0 ('7p(,5J'<,2prFE/W") {
  102. window.location.href = parameter1 + ".php";
  103. } else {
  104. alert("MOUHAHAHAHHAHAHAHAHA");
  105. }
  106. }
  107. function encodingfn1(parameter, numericvalue) {
  108. tmpvalue1 = "";
  109. tmpvalue2 = "";
  110. otherNumericValue = 0000000000;
  111. for (otherNumericValue; otherNumericValue < 13 - 2; otherNumericValue++) {
  112. tmpvalue1 = parameter.length ^ numericvalue;
  113. if (tmpvalue1 != "") tmpvalue1 = "";
  114. }
  115. seemsresult = tmpvalue1;
  116. tmpvalue2 = seemsresult;
  117. for (i = 0; i < parameter.length; i++) {
  118. if (seemsresult == "ESF0 ('7p(,5J')") {
  119. seemsresult += String.fromCharCode(numericvalue ^ parameter.charCodeAt(i) + 12);
  120. } else {
  121. seemsresult += String.fromCharCode(numericvalue ^ parameter.charCodeAt(i));
  122. }
  123. }
  124. if (arguments.callee.toString().length != 1169) {
  125. seemsresult = "ESF0 ('7p(:5J";
  126. }
  127. if (tmpvalue2 == "sfeze5825qsde8rfq--") {
  128. for (refactored13 = 0; refactored13 > -1; refactored13++) {
  129. tmpvalue2 = "noob noob";
  130. }
  131. }
  132. return seemsresult;
  133. }
  134. </script>
  135. </html>
Runtime error #stdin #stdout #stderr 0.47s 323328KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
js: "prog.js", line 27: syntax error
js:         return 0;
js: ..............^
js: "prog.js", line 28: syntax error
js: }
js: ^
js: "prog.js", line 29: missing ) in parenthetical
js: for (i = 0; i < 100; i++) {
js: ..........^
js: "prog.js", line 29: missing ; before statement
js: for (i = 0; i < 100; i++) {
js: ........................^
js: "prog.js", line 30: syntax error
js:     n = i + 1;
js: .......^
js: "prog.js", line 32: syntax error
js: }
js: ^
js: "prog.js", line 134: illegally formed XML syntax
js: </script>
js: .^
js: "prog.js", line 134: syntax error
js: </script>
js: .^
js: "prog.js", line 135: unterminated regular expression literal
js: </html>
js: ......^
js: "prog.js", line 1: Compilation produced 9 syntax errors.