Advertisement
ssaidz

safelink

Oct 23rd, 2017
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script type="text/javascript">
  2. var Base64={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(input){
  3. var output="";
  4. var chr1,chr2,chr3,enc1,enc2,enc3,enc4;
  5. var i=0;input=Base64._utf8_encode(input);while(i<input.length){
  6. chr1=input.charCodeAt(i++);
  7. chr2=input.charCodeAt(i++);
  8. chr3=input.charCodeAt(i++);
  9. enc1=chr1>>2;
  10. enc2=((chr1&3)<<4)|(chr2>>4);enc3=((chr2&15)<<2)|(chr3>>6);
  11. enc4=chr3&63;
  12. if(isNaN(chr2)){
  13. enc3=enc4=64;
  14. }
  15. else if(isNaN(chr3)){
  16. enc4=64;
  17. }
  18. output=output+ this._keyStr.charAt(enc1)+ this._keyStr.charAt(enc2)+ this._keyStr.charAt(enc3)+ this._keyStr.charAt(enc4);
  19. }
  20. return output;
  21. },decode:function(input){
  22. var output="";
  23. var chr1,chr2,chr3;
  24. var enc1,enc2,enc3,enc4;
  25. var i=0;
  26. input=input.replace(/[^A-Za-z0-9\+\/\=]/g,"");
  27. while(i<input.length){
  28. enc1=this._keyStr.indexOf(input.charAt(i++));
  29. enc2=this._keyStr.indexOf(input.charAt(i++));
  30. enc3=this._keyStr.indexOf(input.charAt(i++));
  31. enc4=this._keyStr.indexOf(input.charAt(i++));
  32. chr1=(enc1<<2)|(enc2>>4);
  33. chr2=((enc2&15)<<4)|(enc3>>2);
  34. chr3=((enc3&3)<<6)|enc4;
  35. output=output+ String.fromCharCode(chr1);
  36. if(enc3!=64){
  37. output=output+ String.fromCharCode(chr2);
  38. }
  39. if(enc4!=64){
  40. output=output+ String.fromCharCode(chr3);
  41. }
  42. }
  43. output=Base64._utf8_decode(output);
  44. return output;
  45. },_utf8_encode:function(string){
  46. string=string.replace(/\r\n/g,"\n");
  47. var utftext="";
  48. for(var n=0;n<string.length;n++){
  49. var c=string.charCodeAt(n);
  50. if(c<128){
  51. utftext+=String.fromCharCode(c);
  52. } else if((c>127)&&(c<2048)){
  53. utftext+=String.fromCharCode((c>>6)|192);
  54. utftext+=String.fromCharCode((c&63)|128);
  55. } else{
  56. utftext+=String.fromCharCode((c>>12)|224);
  57. utftext+=String.fromCharCode(((c>>6)&63)|128);
  58. utftext+=String.fromCharCode((c&63)|128);
  59. }
  60. }
  61. return utftext;
  62. },_utf8_decode:function(utftext){
  63. var string="";
  64. var i=0;
  65. var c=c1=c2=0;
  66. while(i<utftext.length){
  67. c=utftext.charCodeAt(i);
  68. if(c<128){
  69. string+=String.fromCharCode(c);i++;
  70. } else if((c>191)&&(c<224)){
  71. c2=utftext.charCodeAt(i+ 1);
  72. string+=String.fromCharCode(((c&31)<<6)|(c2&63));
  73. i+=2;
  74. } else{
  75. c2=utftext.charCodeAt(i+ 1);
  76. c3=utftext.charCodeAt(i+ 2);
  77. string+=String.fromCharCode(((c&15)<<12)|((c2&63)<<6)|(c3&63));
  78. i+=3;
  79. }
  80. }
  81. return string;
  82. }
  83. }
  84. var encode=document.getElementById('encode'),decode=document.getElementById('decode'),output=document.getElementById('output'),input=document.getElementById('input');
  85. var User_ID="";
  86. var protected_links="";
  87. var a_to_va=0;var a_to_vb=0;
  88. var a_to_vc="";
  89. function auto_safelink(){
  90. auto_safeconvert();
  91. }
  92. function auto_safeconvert(){
  93. var a_to_vd=window.location.hostname;
  94. if(protected_links!=""&&!protected_links.match(a_to_vd)){
  95. protected_links+=", "+ a_to_vd;
  96. } else if(protected_links=="") {
  97. protected_links=a_to_vd;
  98. }
  99. var a_to_ve="";
  100. var a_to_vf=new Array();
  101. var a_to_vg=0;
  102. a_to_ve=document.getElementsByTagName("a");
  103. a_to_va=a_to_ve.length;
  104. a_to_vf=a_to_fa();
  105. a_to_vg=a_to_vf.length;
  106. var a_to_vh=false;
  107. var j=0;var a_to_vi="";
  108. for(var i=0;i<a_to_va;i++) {a_to_vh=false;
  109. j=0;
  110. while(a_to_vh==false&&j<a_to_vg) {
  111. a_to_vi=a_to_ve[i].href;
  112. if(a_to_vi.match(a_to_vf[j])||!a_to_vi||!a_to_vi.match("http")){
  113. a_to_vh=true;
  114. }
  115. j++;
  116. }
  117. if(a_to_vh==false) {
  118. var encryptedUrl=Base64.encode(a_to_vi);
  119. a_to_ve[i].href="http://www.moneycome.me/2017/10/horizon-zero-dawn.html?url="+ encryptedUrl; /* ganti url situs yang ada safelink.php tadi */
  120. a_to_ve[i].rel="nofollow";a_to_vb++;
  121. a_to_vc+=i+":::"+ a_to_ve[i].href+"\n";
  122. }
  123. }
  124. var a_to_vj=document.getElementById("anonyminized");
  125. var a_to_vk=document.getElementById("found_links");
  126. if(a_to_vj) {
  127. a_to_vj.innerHTML+=a_to_vb;
  128. }
  129. if(a_to_vk) {
  130. a_to_vk.innerHTML+=a_to_va;
  131. }
  132. }
  133. function a_to_fa() {
  134. var a_to_vf=new Array();
  135. protected_links=protected_links.replace(" ","");
  136. a_to_vf=protected_links.split(",");
  137. return a_to_vf;
  138. }
  139. </script>
  140. <script type="text/javascript">
  141.  
  142. protected_links = "";
  143. auto_safelink();
  144. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement