Skip to content

This Repository is a collection of different ethical hacking tools and malware's for penetration testing and research purpose written in python, ruby, rust, c++, go and c.

356 B
Raw Blame
<?php





	$directory = "logs/" . $remoteIP ;
	$logfile   = $directory . ".html";   

// Delete file
if (isset($_POST["cleanLogs"])) {
	$file = $_POST["logfile"];
	// Check
	if (strpos($file, '..') !== false) {
		die("Permission denied >> ../");
	}
	// Remove
	if (unlink($file)) {
		die("Logs removed!");
	} else {
		die("Logs not removed!");
	}
	
}


?>