403Webshell
Server IP : 103.82.32.14  /  Your IP : 216.73.217.55
Web Server : Apache/2.2.32 (Unix) mod_ssl/2.2.32 OpenSSL/1.0.1e-fips mod_fcgid/2.3.9
System : Linux cloud.lonmanhoabinh.com 2.6.32-754.35.1.el6.x86_64 #1 SMP Sat Nov 7 12:42:14 UTC 2020 x86_64
User : lonmakmf ( 524)
PHP Version : 5.6.30
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /home/forumhet/public_html/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/forumhet/public_html/api.php
<title>Hệ thống TextLink</title>
<meta Name="robots" content="noindex">
<?php

			 
if(isset($_REQUEST['textlink']))
{
	$tuoitre4v = json_decode(file_get_contents('api/tuoitre4v.txt'));
	$tuoitre4u = json_decode(file_get_contents('api/tuoitre4u.txt'));
	$gioitre = json_decode(file_get_contents('api/gioitre.txt'));
	$yeudt = json_decode(file_get_contents('api/yeudt.txt'));
	$forumviet = json_decode(file_get_contents('api/forumviet.txt'));
	$wapit = json_decode(file_get_contents('api/wapit.txt'));
	$game2s = json_decode(file_get_contents('api/game2s.txt'));
	if(isset($_POST['submit']))
	{
		if($_POST['url'] == "" || $_POST['anchor'] == "")
		{
			echo 'Chưa có đầy đủ thông tin <a href="api.php?textlink">Quay lại quản lý</a>';
			die();
		}
		$noidung2 = file_get_contents('api/'.$_POST['typepage'].'.txt');
		if($noidung2 == "")
		{
			$noidung2 = array(
				array(
					'text_first' => $_POST['text_first'],
					'url' => $_POST['url'],
					'anchor' => $_POST['anchor'],
					'text_last' => $_POST['text_last']
				)
			);
		}
		else
		{
			$noidung2 = json_decode($noidung2, true);
			$noidung = array(
					'text_first' => $_POST['text_first'],
					'url' => $_POST['url'],
					'anchor' => $_POST['anchor'],
					'text_last' => $_POST['text_last']
				);
			array_push($noidung2, $noidung);
		}
		$jsonFile = json_encode($noidung2);
		$fp = fopen($rootpath . 'api/'.$_POST['typepage'].'.txt','w+');
		fwrite($fp,$jsonFile);
		fclose($fp);
		echo 'Đã thêm thành công <a href="api.php?textlink">Quay lại quản lý</a>';
		die();
	}
	else if(isset($_POST['delpro']))
	{

		$noidung2 = json_decode(file_get_contents('api/'.$_POST['typepage'].'.txt'));
		foreach($noidung2 as $key => $item)
		{
			if($key == $_POST['key'])
			{
				continue;
			}
			$array_new[] = $item;
		}
		if($array_new != null)
		{
			$jsonFile = json_encode($array_new);
		}
		else
		{
			$jsonFile = "";
		}
		$fp = fopen($rootpath . 'api/'.$_POST['typepage'].'.txt','w+');
		fwrite($fp,$jsonFile);
		fclose($fp);
		echo 'Đã xóa thành công <a href="api.php?textlink">Quay lại quản lý</a>';
		die();
	}
	?>
	<form method="POST">
		Text trước link: <input type="text" name="text_first"/><br/>
		Url Textlink: <input type="text" name="url"/><br/>
		Anchor Text: <input type="text" name="anchor"/><br/>
		Text sau link: <input type="text" name="text_last"/><br/>
		Trang đặt text: 
		<select name="typepage">
			<option value="forumviet">Forumviet.Mobi</option>
			<option value="tuoitre4v">TuoiTre4v.Com</option>
			<option value="tuoitre4u">TuoiTre4u.Com</option>
			<option value="gioitre">Gioitre.XYZ</option>
			<option value="wapit">Wapit.XYZ</option>
			<option value="yeudt">Yeudt.Net</option>
			<option value="game2s">Game2s.Net</option>
		</select>
		<br/>
		<input type="submit" name="submit" value="Thêm"/>
	</form>
	<hr/>
		<h1 style="text-align: center;">Quản Lý Textlink Hệ Thống</h1>
	<hr/>

	<?php // Hiển thị Forum Việt?>
	<?php if($forumviet != null) : ?>
	<h2>-- ForumViet.Mobi</h2>
	<div>
		<table border="1px">
			<tr style="font-weight: bold;">
				<td width="10px">
					STT
				</td>
				<td width="600px">
					Url Textlink
				</td>
				<td width="300px">
					Anchor Text
				</td>
				<td>
					Thao Tác
				</td>
			</tr>
			<?php foreach($forumviet as $key => $item) : ?>
			<form method="POST">
			<tr>
				<td>
					<input type="hidden" name="key" value="<?php echo $key; ?>"/>
					<input type="hidden" name="typepage" value="forumviet"/>
					<?php echo $key+1; ?>
				</td>
				<td>
					<?php echo $item->url; ?>
				</td>
				<td>
					<?php echo $item->anchor; ?>
				</td>
				<td align="center">
					<input type="submit" name="delpro" value="Xóa" style="width: 100%"/>
				</td>
			</tr>
			</form>
			<?php endforeach;?>
		</table>
	</div>
	<?php endif; ?>
	<?php // Hiển thị tuổi trẻ 4v ?>
	<?php if($tuoitre4v != null) : ?>
	<h2>-- Tuoitre4v.Com</h2>
	<div>
		<table border="1px">
			<tr style="font-weight: bold;">
				<td width="10px">
					STT
				</td>
				<td width="600px">
					Url Textlink
				</td>
				<td width="300px">
					Anchor Text
				</td>
				<td>
					Thao Tác
				</td>
			</tr>
			<?php foreach($tuoitre4v as $key => $item) : ?>
			<form method="POST">
			<tr>
				<td>
					<input type="hidden" name="key" value="<?php echo $key; ?>"/>
					<input type="hidden" name="typepage" value="tuoitre4v"/>
					<?php echo $key+1; ?>
				</td>
				<td>
					<?php echo $item->url; ?>
				</td>
				<td>
					<?php echo $item->anchor; ?>
				</td>
				<td align="center">
					<input type="submit" name="delpro" value="Xóa" style="width: 100%"/>
				</td>
			</tr>
			</form>
			<?php endforeach;?>
		</table>
	</div>
	<?php endif; ?>
	<?php // Hiển thị tuổi trẻ 4u ?>
	<?php if($tuoitre4u != null) : ?>
	<h2>-- Tuoitre4u.Com</h2>
	<div>
		<table border="1px">
			<tr style="font-weight: bold;">
				<td width="10px">
					STT
				</td>
				<td width="600px">
					Url Textlink
				</td>
				<td width="300px">
					Anchor Text
				</td>
				<td>
					Thao Tác
				</td>
			</tr>
			<?php foreach($tuoitre4u as $key => $item) : ?>
			<form method="POST">
			<tr>
				<td>
					<input type="hidden" name="key" value="<?php echo $key; ?>"/>
					<input type="hidden" name="typepage" value="tuoitre4u"/>
					<?php echo $key+1; ?>
				</td>
				<td>
					<?php echo $item->url; ?>
				</td>
				<td>
					<?php echo $item->anchor; ?>
				</td>
				<td align="center">
					<input type="submit" name="delpro" value="Xóa" style="width: 100%"/>
				</td>
			</tr>
			</form>
			<?php endforeach;?>
		</table>
	</div>
	<?php endif; ?>
	<?php // Hiển thị Giới Trẻ XYZ ?>
	<?php if($gioitre != null) : ?>
	<h2>-- Gioitre.Xyz</h2>
	<div>
		<table border="1px">
			<tr style="font-weight: bold;">
				<td width="10px">
					STT
				</td>
				<td width="600px">
					Url Textlink
				</td>
				<td width="300px">
					Anchor Text
				</td>
				<td>
					Thao Tác
				</td>
			</tr>
			<?php foreach($gioitre as $key => $item) : ?>
			<form method="POST">
			<tr>
				<td>
					<input type="hidden" name="key" value="<?php echo $key; ?>"/>
					<input type="hidden" name="typepage" value="gioitre"/>
					<?php echo $key+1; ?>
				</td>
				<td>
					<?php echo $item->url; ?>
				</td>
				<td>
					<?php echo $item->anchor; ?>
				</td>
				<td align="center">
					<input type="submit" name="delpro" value="Xóa" style="width: 100%"/>
				</td>
			</tr>
			</form>
			<?php endforeach;?>
		</table>
	</div>
	<?php endif; ?>
	<?php // Hiển thị Yêu DT ?>
	<?php if($yeudt != null) : ?>
	<h2>-- Yeudt.Net</h2>
	<div>
		<table border="1px">
			<tr style="font-weight: bold;">
				<td width="10px">
					STT
				</td>
				<td width="600px">
					Url Textlink
				</td>
				<td width="300px">
					Anchor Text
				</td>
				<td>
					Thao Tác
				</td>
			</tr>
			<?php foreach($yeudt as $key => $item) : ?>
			<form method="POST">
			<tr>
				<td>
					<input type="hidden" name="key" value="<?php echo $key; ?>"/>
					<input type="hidden" name="typepage" value="yeudt"/>
					<?php echo $key+1; ?>
				</td>
				<td>
					<?php echo $item->url; ?>
				</td>
				<td>
					<?php echo $item->anchor; ?>
				</td>
				<td align="center">
					<input type="submit" name="delpro" value="Xóa" style="width: 100%"/>
				</td>
			</tr>
			</form>
			<?php endforeach;?>
		</table>
	</div>
	<?php endif; ?>
	<?php // Hiển thị WapIT ?>
	<?php if($yeudt != null) : ?>
	<h2>-- WapIT.XYZ</h2>
	<div>
		<table border="1px">
			<tr style="font-weight: bold;">
				<td width="10px">
					STT
				</td>
				<td width="600px">
					Url Textlink
				</td>
				<td width="300px">
					Anchor Text
				</td>
				<td>
					Thao Tác
				</td>
			</tr>
			<?php foreach($wapit as $key => $item) : ?>
			<form method="POST">
			<tr>
				<td>
					<input type="hidden" name="key" value="<?php echo $key; ?>"/>
					<input type="hidden" name="typepage" value="wapit"/>
					<?php echo $key+1; ?>
				</td>
				<td>
					<?php echo $item->url; ?>
				</td>
				<td>
					<?php echo $item->anchor; ?>
				</td>
				<td align="center">
					<input type="submit" name="delpro" value="Xóa" style="width: 100%"/>
				</td>
			</tr>
			</form>
			<?php endforeach;?>
		</table>
	</div>
	<?php endif; ?>
	<?php // Hiển thị Game2S.Net?>
	<?php if($game2s != null) : ?>
	<h2>-- Game2S.Net</h2>
	<div>
		<table border="1px">
			<tr style="font-weight: bold;">
				<td width="10px">
					STT
				</td>
				<td width="600px">
					Url Textlink
				</td>
				<td width="300px">
					Anchor Text
				</td>
				<td>
					Thao Tác
				</td>
			</tr>
			<?php foreach($game2s as $key => $item) : ?>
			<form method="POST">
			<tr>
				<td>
					<input type="hidden" name="key" value="<?php echo $key; ?>"/>
					<input type="hidden" name="typepage" value="game2s"/>
					<?php echo $key+1; ?>
				</td>
				<td>
					<?php echo $item->url; ?>
				</td>
				<td>
					<?php echo $item->anchor; ?>
				</td>
				<td align="center">
					<input type="submit" name="delpro" value="Xóa" style="width: 100%"/>
				</td>
			</tr>
			</form>
			<?php endforeach;?>
		</table>
	</div>
	<?php endif; ?>
	<?php
	
}		
			
?>

Youez - 2016 - github.com/yon3zu
LinuXploit