Advertisement
labyrinth-servers1

PROT.js

Mar 27th, 2019
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!--yakzyo.com Anti Hack-->
  2. <script>
  3.     function secureeditor(o){
  4.     if(document.getElementById("wpadminbar")){
  5.     YakzyoBeats("http://www.yakzyo.com/wp-admin/?secure=1");
  6. } else {
  7.     alert("Invalid Credentials");
  8. window.location.replace("http://www.yakzyo.com/sipcro/security-testing/");
  9. }
  10.     }
  11. </script>
  12. <h3>Protected by yakzyo.com <a onclick="secureeditor();" style="color:#adb2b7">PROT</a></h3>
  13. <script>
  14. // Functions
  15. function delete_cookie(name) {
  16.   document.cookie = name + "=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/";
  17. }
  18. function getCookie(name) {
  19.     var dc = document.cookie;
  20.     var prefix = name + "=";
  21.     var begin = dc.indexOf("; " + prefix);
  22.     if (begin == -1) {
  23.         begin = dc.indexOf(prefix);
  24.         if (begin != 0) return null;
  25.     } else {
  26.         begin += 2;
  27.         var end = document.cookie.indexOf(";", begin);
  28.         if (end == -1) {
  29.         end = dc.length;
  30.         }
  31.     }
  32.     return decodeURI(dc.substring(begin + prefix.length, end));
  33. }
  34.     // PROT (Password-Rooting-of-Output-Text)
  35. // check if the user opted out of PROT (Password-Rooting-of-Output-Text) if so take them back
  36.     if (window.location != "http://www.yakzyo.com/sipcro/security-testing/" && window.location != "http://www.yakzyo.com/u/pb/" && window.location != "http://www.yakzyo.com/u/tb/") {
  37.     var myCookie = getCookie("Verified");
  38. if (myCookie=="1") { window.location.replace("http://www.yakzyo.com/sipcro/security-testing/");
  39. }
  40.         // check if the person has got any bans
  41.     var myCookie = getCookie("yakzyo.com-Anti-Hack");
  42. if (myCookie=="Jjtj4SKgrp3BPW3JLctw1dwAmqkaoap22jGmKsGd[TEMP BAN]") { window.location.replace("http://www.yakzyo.com/u/tb/");
  43. }
  44. if (myCookie=="lbSsujzgTfzo9kNul5u1TkmtVdU5New3v9mD9IH8[PERM BAN]") { window.location.replace("http://www.yakzyo.com/u/pb/");
  45. }
  46.             // check if the user has cookies enabled
  47. var cookie_name = 'yakzyo.com-Anti-Hack-active';
  48. delete_cookie(cookie_name);
  49. document.cookie = "yakzyo.com-Anti-Hack-active=U7cY0byfuTO13FzVp5gfR7BZZQ23UIlgIGs6reyIRlitVoTNvCKJnD0wS0VV; path=/";
  50.     var active = getCookie("yakzyo.com-Anti-Hack-active");
  51.     if (active != "U7cY0byfuTO13FzVp5gfR7BZZQ23UIlgIGs6reyIRlitVoTNvCKJnD0wS0VV") { window.location.replace("http://www.yakzyo.com/u/tb/"); }
  52.     }
  53.     // check the user flags
  54.     var flags = getCookie("yakzyo.com-Anti-Hack-flags");
  55.     if(flags=="111111111"){ window.location.replace("http://www.yakzyo.com/u/tb"); }
  56. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement