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 $socket = fsockopen("127.0.0.1","5038", $errno, $errstr,10); if (!$socket){ echo "$e..

Decoded Output download

<?php $socket = fsockopen("127.0.0.1","5038", $errno, $errstr,10); if (!$socket){ echo "$errstr ($errno)
"; }else{ fputs($socket, "Action: Login
"); fputs($socket, "UserName: admin
"); fputs($socket, "Secret: 13201

"); fputs($socket, "Action: WaitEvent
"); fputs($socket, "Action: Logoff

"); while(!feof($socket)){ $result=fread($socket,5000); if (preg_match("/$argv[1]/i", $result,$match)){ echo $result; } } } fclose($socket); ?>

Did this file decode correctly?

Original Code

<?php $socket = fsockopen("127.0.0.1","5038", $errno, $errstr,10); if (!$socket){ echo "$errstr ($errno)\n"; }else{ fputs($socket, "Action: Login\r\n"); fputs($socket, "UserName: admin\r\n"); fputs($socket, "Secret: 13201\r\n\r\n"); fputs($socket, "Action: WaitEvent\r\n"); fputs($socket, "Action: Logoff\r\n\r\n"); while(!feof($socket)){ $result=fread($socket,5000); if (preg_match("/\b$argv[1]\b/i", $result,$match)){ echo $result; } } } fclose($socket); ?>

Function Calls

fsockopen 1

Variables

None

Stats

MD5 9f8a6b108ebe6da3837adc86104e9312
Eval Count 0
Decode Time 87 ms