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[0m [33m$[0m[36mflag[0m [33m=[0m [31m""[0m[33m.[0m[36mfile_get_contents[0m[35m([0m[3..

Decoded Output download

<?php[0m 
[33m$[0m[36mflag[0m [33m=[0m [31m""[0m[33m.[0m[36mfile_get_contents[0m[35m([0m[31m".passwd"[0m[35m)[0m[33m.[0m[31m""[0m; 
[33mif[0m[35m([0m[33misset[0m[35m([0m[33m$[0m[36m_POST[0m[35m[[0m[31m"ip"[0m[35m])[0m [33m&&[0m [33m!empty[0m[35m([0m[33m$[0m[36m_POST[0m[35m[[0m[31m"ip"[0m[35m])){[0m[14;9H[33m$[0m[36mresponse[0m [33m=[0m [36mshell_exec[0m[35m([0m[31m"timeout -k 5 5 bash -c 'ping -c 3 "[0m[33m.$[0m[36m_POST[0m[35m[[0m[31m"ip"[0m[35m][0m[15;1H[33m.[0m[31m"'"[0m[35m)[0m;[16;9H[35mecho[0m [33m$[0m[36mresponse[0m; 
[35m} 
?>

Did this file decode correctly?

Original Code

<?php[0m
[33m$[0m[36mflag[0m [33m=[0m [31m""[0m[33m.[0m[36mfile_get_contents[0m[35m([0m[31m".passwd"[0m[35m)[0m[33m.[0m[31m""[0m;
[33mif[0m[35m([0m[33misset[0m[35m([0m[33m$[0m[36m_POST[0m[35m[[0m[31m"ip"[0m[35m])[0m [33m&&[0m [33m!empty[0m[35m([0m[33m$[0m[36m_POST[0m[35m[[0m[31m"ip"[0m[35m])){[0m[14;9H[33m$[0m[36mresponse[0m [33m=[0m [36mshell_exec[0m[35m([0m[31m"timeout -k 5 5 bash -c 'ping -c 3 "[0m[33m.$[0m[36m_POST[0m[35m[[0m[31m"ip"[0m[35m][0m[15;1H[33m.[0m[31m"'"[0m[35m)[0m;[16;9H[35mecho[0m [33m$[0m[36mresponse[0m;
[35m}
?>

Function Calls

None

Variables

None

Stats

MD5 9905e1338aa37e06659c797ef8fa313c
Eval Count 0
Decode Time 45 ms