Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.73 KB | None | 0 0
  1. // ==UserScript==
  2. // @name Krunker.io hack
  3. // @version 1.4
  4. // @author Sportshot
  5. // @include /^(https?:\/\/)?(www\.)?(.+)krunker\.io(|\/|\/\?(game|server|party)=.+)$/
  6. // @grant GM_xmlhttpRequest
  7. // @run-at document-start
  8. // @require https://code.jquery.com/jquery-3.3.1.min.js
  9. // @namespace gpy
  10. // ==/UserScript==
  11.  
  12. window.stop();
  13. document.innerHTML = "";
  14.  
  15. // * * * * * * * * * * * * * * * *
  16. // * * * * * * * * * * * * * * * *
  17.  
  18. const version = '1.3';
  19.  
  20. // * * * * * * * * * * * * * * * *
  21. // * * * * * * * * * * * * * * * *
  22.  
  23. GM_xmlhttpRequest({
  24. method: "GET",
  25. url: document.location.origin,
  26. onload: res => {
  27. let html = res.responseText;
  28. html = html.replace(/game\.[^\.]+\.js/, '____.js');
  29. html = html.replace(/<script (type="text\/javascript"\s)?data-cfasync(.|\s)*?<\/script>/, `<meta name="gpy_version" content="${version}">`);
  30. GM_xmlhttpRequest({
  31. method: "GET",
  32. url: document.location.origin + '/libs/zip.js',
  33. onload: res => {
  34. let zip = res.responseText;
  35. zip = zip.replace(/setInterval.*?\);/, '');
  36. html = html.replace(/<script src="libs\/zip\.js.+"><\/script>/, `<script>${zip}</script>`);
  37. html += '<script src="https://raw.githack.com/gpy-dev/krunker/master/bypass.js"></script>';
  38. html += '<script src="https://raw.githack.com/gpy-dev/krunker/master/haxy.js"></script>';
  39. html += '<script src="https://raw.githack.com/gpy-dev/krunker/master/game.js"></script>';
  40.  
  41. document.open();
  42. document.write(html);
  43. document.close();
  44. }
  45. })
  46. }
  47. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement