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 $protocol = $_SERVER['SERVER_PROTOCOL']; $ip = $_SERVER['REMOTE_ADDR']; $por..

Decoded Output download

<?php 
 
  
$protocol = $_SERVER['SERVER_PROTOCOL']; 
$ip = $_SERVER['REMOTE_ADDR']; 
$port = $_SERVER['REMOTE_PORT']; 
$agent = $_SERVER['HTTP_USER_AGENT']; 
$ref = $_SERVER['HTTP_REFERER']; 
$hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']); 
  
 
  
$fh = fopen('msh.txt', 'a');  
fwrite($fh, 'IP Address: '."".$ip ."
"); 
fwrite($fh, 'Hostname: '."".$hostname ."
"); 
fwrite($fh, 'Port Number: '."".$port ."
"); 
fwrite($fh, 'User Agent: '."".$agent ."
"); 
fwrite($fh, 'HTTP Referer: '."".$ref ."

"); 
fclose($fh); 
?>

Did this file decode correctly?

Original Code

<?php

 
$protocol = $_SERVER['SERVER_PROTOCOL'];
$ip = $_SERVER['REMOTE_ADDR'];
$port = $_SERVER['REMOTE_PORT'];
$agent = $_SERVER['HTTP_USER_AGENT'];
$ref = $_SERVER['HTTP_REFERER'];
$hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']);
 

 
$fh = fopen('msh.txt', 'a'); 
fwrite($fh, 'IP Address: '."".$ip ."\n");
fwrite($fh, 'Hostname: '."".$hostname ."\n");
fwrite($fh, 'Port Number: '."".$port ."\n");
fwrite($fh, 'User Agent: '."".$agent ."\n");
fwrite($fh, 'HTTP Referer: '."".$ref ."\n\n");
fclose($fh);
?>

Function Calls

gethostbyaddr 1

Variables

$ip None
$ref None
$port None
$agent None
$protocol None

Stats

MD5 51eddf7093cdee8e184b22f65a07d09b
Eval Count 0
Decode Time 55 ms