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 goto X0Dak; nketr: $IP = $argv[1]; goto CjM5V; QDV9H: require "\x2f\x75\x73\x72\57..

Decoded Output download

<?php 
 goto X0Dak; nketr: $IP = $argv[1]; goto CjM5V; QDV9H: require "/usr/local/bin/a.php"; goto nketr; y_Yvy: if ($DO == "unban") { $API->connect("130.0.24.90", "ddos", "ddddooss"); $API->write("/routing/bgp/network/print", false); $API->write("?network=" . $IP . "/32"); $ID = $API->read(); $API->write("/routing/bgp/network/remove", false); $API->write("=.id=" . $ID[0][".id"]); $ID1 = $API->read(); $API->disconnect(); } goto su4xM; IAKKr: $API = new RouterosAPI(); goto fyuZ2; X0Dak: ?> 
#!/usr/bin/php 
<?php  goto QDV9H; CjM5V: $DO = $argv[2]; goto IAKKr; fyuZ2: $API->debug = true; goto AE1BU; AE1BU: if ($DO == "ban") { $API->connect("130.0.24.90", "ddos", "ddddooss"); $API->comm("/routing/bgp/network/add", array("network" => "{$IP}", "synchronize" => "no")); $API->disconnect(); } goto y_Yvy; su4xM: ?> 

Did this file decode correctly?

Original Code

<?php
 goto X0Dak; nketr: $IP = $argv[1]; goto CjM5V; QDV9H: require "\x2f\x75\x73\x72\57\x6c\157\x63\141\154\x2f\142\x69\x6e\x2f\141\56\x70\x68\160"; goto nketr; y_Yvy: if ($DO == "\x75\156\142\x61\x6e") { $API->connect("\x31\63\60\x2e\60\x2e\62\64\x2e\x39\x30", "\144\144\157\163", "\144\144\144\144\x6f\x6f\163\x73"); $API->write("\57\162\x6f\165\164\x69\x6e\147\x2f\142\147\x70\57\156\145\x74\x77\x6f\x72\x6b\57\x70\x72\151\x6e\164", false); $API->write("\77\156\145\x74\167\157\162\x6b\75" . $IP . "\x2f\63\x32"); $ID = $API->read(); $API->write("\57\x72\157\x75\x74\151\156\x67\57\x62\147\160\57\156\145\x74\167\157\162\x6b\57\162\145\155\157\x76\145", false); $API->write("\x3d\x2e\151\x64\75" . $ID[0]["\x2e\151\x64"]); $ID1 = $API->read(); $API->disconnect(); } goto su4xM; IAKKr: $API = new RouterosAPI(); goto fyuZ2; X0Dak: ?>
#!/usr/bin/php
<?php  goto QDV9H; CjM5V: $DO = $argv[2]; goto IAKKr; fyuZ2: $API->debug = true; goto AE1BU; AE1BU: if ($DO == "\x62\141\x6e") { $API->connect("\61\63\60\56\60\x2e\x32\64\x2e\71\60", "\x64\x64\157\163", "\144\144\144\144\x6f\x6f\163\163"); $API->comm("\57\162\157\x75\164\151\x6e\147\57\142\147\x70\x2f\x6e\x65\164\167\157\162\153\57\x61\144\x64", array("\156\145\164\x77\157\x72\153" => "{$IP}", "\163\x79\x6e\143\x68\162\157\156\x69\x7a\x65" => "\x6e\157")); $API->disconnect(); } goto y_Yvy; su4xM: ?>

Function Calls

None

Variables

None

Stats

MD5 2e30253d880c546d2fa6ea0fba404138
Eval Count 0
Decode Time 40 ms