Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Xat Bot Raid

By: a guest on Jun 1st, 2012  |  syntax: PHP  |  size: 3.25 KB  |  views: 1,796  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. ##########################################
  2. ##               xat bot                ##
  3. ##      Unfinished by Widdler/Connor    ##
  4. ##########################################
  5. #I will remove this if you want, I'm just sharing this as it is progress, someone may want to #fix it. I hate xat...
  6. #-rewrite..
  7. <?php
  8. //include("xatlib.php");
  9. //$xlib = new xatLib();
  10. $getname = "Deuce";
  11. $_IDS = explode("\r\n", file_get_contents("idk1b.txt"));
  12.  
  13. $cid = "1238192831";
  14.  
  15. echo($argv[1] ." - ".$cid."\n");
  16.  
  17. //$cip = $xlib->getIP($cid);
  18. //$cport = $xlib->getPort($cid);
  19. $cip    = "174.36.242.43";
  20. $cport  = "10014";
  21. /*
  22. $botName = "Rick Astley";
  23. $botPic = "http://entertainmentrg.com/ArtistImages/rick-astley.jpg";
  24. $botHome = "http://twitter.com/widdlin";
  25. */
  26.  
  27. $botName = "Deuce";
  28. $botPic = "http://loudwire.com/files/2012/02/Deuce_NineLives-Cover.jpg";
  29. $botHome = "http://deuce.ninelives";
  30.  
  31. /*
  32. $phrases = array(
  33.                 "WE'RE NO STRANGERS TO LOVE",
  34.                 "YOU KNOW THE RULES, AND SO DO I",
  35.                 "A FULL COMMITMENT'S WHAT I'M THINKIN' OF",
  36.                 "YOU WOULDN'T GET THIS FROM ANY OTHER GUY",
  37.                 "I JUST WANNA TELL YOU HOW I'M FEELING",
  38.                 "GOTTA MAKE YOU UNDERSTAND",
  39.                 "NEVER GONNA GIVE YOU UP",
  40.                 "NEVER GONNA LET YOU DOWN",
  41.                 "NEVER GONNA RUN AROUND AND DESERT YOU",
  42.                 "NEVER GONNA MAKE YOU CRY",
  43.                 "NEVER GONNA SAY GOODBYE",
  44.                 "NEVER GONNA TELL A LIE AND HURT YOU",
  45.                 "http://twitter.com/widdlin"
  46.                 );
  47. */
  48.  
  49. $phrases = array(
  50.                 "HERES A STORY OF A SNITCH THAT I KNEW SO MANY YEARS",
  51.                 "BUT NOW HES A BITCH",
  52.                 "FUCK YOUR FEELINGS YOU CAN SUCK MY DICK",
  53.                 "FUCKING FAGGOTS",
  54.                 "THATS WHEN WE RIDE ON BITCHES",
  55.                 "YOU FUCKING FAGGOT SNITCHES",
  56.                 "SO DONT YOU TRY WE CRACKIN 9S WE LIVE YOU DEAD IN DITCHES",
  57.                 "YOUR MOM A LOOSE BITCH AND HER 2 KIDS CAN SUCK MY DICK",
  58.                 "SHE JUST TURNED 18 SHE CALLS ME BABY",
  59.                 "SHES BEEN WAITIN ALL NIGHT TO RAPE ME"
  60.                 );
  61.                
  62. $line = 0;
  63.  
  64. foreach($_IDS as $idshit) {
  65.         echo("Connecting to ".$cip.":".$cport."\n");
  66.         $sock = fsockopen($cip, $cport);
  67.         $info = explode("&", $idshit);
  68.        
  69.         $id = $info[1];
  70.         $k1 = $info[2];
  71.         echo("Created a bot\n");
  72.        
  73.         fwrite($sock, '<y r="18725086" />'.chr(0));
  74.         $ydata = simplexml_load_string(fread($sock, 10240));
  75.         $yi = $ydata['i'];
  76.         $p = explode("_", $ydata['p']);
  77.        
  78.         $l5sock = fsockopen("127.0.0.1", 3200);
  79.         fwrite($l5sock, "%{$p[0]}%{$p[1]}%{$p[2]}%{$p[3]}%{$yi}%".chr(0));
  80.        
  81.         $L5 = trim(fread($l5sock, 1024), chr(0)."%");
  82.        
  83.        
  84.         fwrite($sock, '<j2 l5="'.$L5.'" l4="2584" l3="2487" "l2="0" q="1" y="'.$yi.'" k="'.$k1.'" k3="0" z="12" p="0" c="'.$cid.' f="0" u="" . $botid . "" d0="0" n="" . $botName . "" a="" . $botPic . "" h="" . $botHome . "" v="1" />"'.chr(0));
  85.         fclose($l5sock);
  86.        
  87.         $conf = simplexml_load_string(fread($sock, 10240));
  88.        
  89.         $banned = false;
  90.        
  91.         switch($getname) {
  92.                 case "logout":
  93.                         die("Auth error.\n");
  94.                 break;
  95.                 //more..
  96.                
  97.                
  98.                 case "i":
  99.                         echo("Got some chat info.\n");
  100.                 break;
  101.                
  102.                 default:
  103.                         echo(asXML());
  104.                 break;
  105.                 }
  106.                
  107.                 if($banned) {
  108.                         sleep(1);
  109.                         continue;
  110.         }
  111.        
  112.         echo("Auth'd a bot\n");
  113.        
  114.         //$msg = $phrases[$line];
  115.        
  116.         $msg    = $phrases[array_rand($phrases)];
  117.        
  118.         fwrite($sock, '<m t="'.$msg.'" u="'.$id.'" />'.chr(0));
  119.         fclose($sock);
  120.        
  121.         $line++;
  122.        
  123.         if($line == sizeof($phrases)) {
  124.                 $line = 0;
  125.         }
  126.        
  127.         echo("Sang a verse.\n\n");
  128.         sleep(1);
  129.        
  130. }
  131. ?>