|
Menu |
|
|
Home |
| |
|
Discussions |
| |
|
Tools |
| |
|
Affiliates |
| |
|
Content |
| |
|
Info |
| | |
|
|
|
|
|
User Info |
|
Membership:
Latest: MichaelSnaRe
New Today: 0
New Yesterday: 0
Overall: 9144
People Online:
Visitors: 64
Members: 0
Total: 64
|
|
|
|
|
|
Full disclosure |
|
|
|
|
|
|
|
|
|
IT Security and Insecurity Portal |
|
|
Can you decode this. |
|
Posted: Sat May 14, 2011 1:04 pm |
|
|
swan5968 |
Beginner |
|
|
Joined: May 14, 2011 |
Posts: 2 |
|
|
|
|
|
|
|
hello everybody. please can you decode this file :
Code: | <?php //0046b
if(!extension_loaded('ionCube Loader')){$__oc=strtolower(substr(php_uname(),0,3));$__ln='ioncube_loader_'.$__oc.'_'.substr(phpversion(),0,3).(($__oc=='win')?'.dll':'.so');if(function_exists('dl')){@dl($__ln);}if(function_exists('_il_exec')){return _il_exec();}$__ln='/ioncube/'.$__ln;$__oid=$__id=realpath(ini_get('extension_dir'));$__here=dirname(__FILE__);if(strlen($__id)>1&&$__id[1]==':'){$__id=str_replace('\\','/',substr($__id,2));$__here=str_replace('\\','/',substr($__here,2));}$__rd=str_repeat('/..',substr_count($__id,'/')).$__here.'/';$__i=strlen($__rd);while($__i--){if($__rd[$__i]=='/'){$__lp=substr($__rd,0,$__i).$__ln;if(file_exists($__oid.$__lp)){$__ln=$__lp;break;}}}if(function_exists('dl')){@dl($__ln);}}else{die('The file '.__FILE__." is corrupted.\n");}if(function_exists('_il_exec')){return _il_exec();}echo('Site error: the file <b>'.__FILE__.'</b> requires the ionCube PHP Loader '.basename($__ln).' to be installed by the website operator. If you are the website operator please use the <a href="http://www.ioncube.com/lw/">ionCube Loader Wizard</a> to assist with installation.');exit(199);
?>
4+oV5DXbBwPe+9E9OQQwXOfWwkzNQtbndG871PkieOYw0N+lhyAiks9N5+MgtnML+Ot8wofUcZjY
M8uUYIruW2WiLaI4zPWHfVghwQWTzvpaJGJ2GMW8hBy/NQ1aXjF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7RxfjUliRH/0EPjGNh8PoIc
my/okzUV9NGOpmHs4CJg8H3keo06IrbZwujH3nG+hsYGr3xXKCHk83rrZLma8QluhO3a9Nwfymvc
bkDWuGllHtGPrUNC6RYF/4gCSYxxpT714TlGhZ/BQhFeiK4szDudmoVCAAuSgT/m6sr6qaxXhnam
rtr/aS/VER86nd21kvwMwY7CX7+bZmOFdUpiVPGHME3gogob1QyUxUv1Hr+7mwn/BDGaQDGRnHRG
JOzdSWRdOrwbBv8iMJt8hyZAWv/KUy+9IKJQ6+kCC/Z+ZZQeUo5gcj2Kr7X8b/CFpYMUzGv+WUTj
sYHpIoUA276SbHjscZxdfEyfcdvHqmqmX7XDi9i1YYitBI8t/76S1JUMYhis7KKdDt6DUmykmGjn
mZt0Syf4McCYu/kwFcxDoza/Amjk5pHjEnEccy8fVDdH4URb3FievEolJasoc23X+D0IR6IGCHjX
ylewxUut9J24nc7zhDCapo5ZfKTVapFTeQEhJmxQzG== |
|
|
_________________ Thanks
swan5968 |
|
|
|
|
|
|
|
Posted: Sat May 14, 2011 4:46 pm |
|
|
johnburn |
Advanced user |
|
|
Joined: Jan 14, 2011 |
Posts: 199 |
Location: Malaysia |
|
|
|
|
|
|
Code: | <?php
function create_forum_account($vars) {
global $phpBB3;
global $phpEx;
global $db;
global $config;
global $user;
global $auth;
global $cache;
global $template;
if ($phpBB3['int'] == "1") {
$userid = $vars['userid'];
if ($phpBB3['usernamechoice'] == "1") {
$bbuser = getusername($userid);
} else {
$bbuser = $vars['firstname'] . "." . $vars['lastname'] . $userid;
}
$bbpass = getuserpass($userid);
$bbemail = $vars['email'];
define("IN_PHPBB", true);
$phpbb_root_path = $phpBB3['root_path'];
$phpEx = substr(strrchr(__FILE__, "."), 1);
include ($phpbb_root_path . "common_bridge." . $phpEx);
include ($phpbb_root_path . "includes/functions_user." . $phpEx);
session_begin();
acl($user->data);
if (validate_username($bbuser) == false) {
$link = mysql_connect($phpBB3['mysql_server'], $phpBB3['mysql_user'], $phpBB3['mysql_pass']);
if (!$link) {
exit("Not connected to forums: " . mysql_error());
}
$db_selected = mysql_select_db($phpBB3['mysql_db'], $link);
if (!$db_selected) {
exit("Can't use forum db : " . mysql_error());
} else {
$user_row = array("username" => $bbuser, "user_password" => md5($bbpass), "user_email" => $bbemail, "group_id" => "2", "user_timezone" => "1.00", "user_dst" => 0, "user_lang" => "en", "user_type" => "0", "user_actkey" => "", "user_style" => "1", "user_dateformat" => "d M Y H:i", "user_regdate" => time(), "whmcs_id" => $userid);
$phpbb_user_id = user_add($user_row);
}
mysql_close($link);
}
restoredb();
}
}
function edit_forum_account($vars) {
global $phpBB3;
global $phpEx;
global $db;
global $config;
global $user;
global $auth;
global $cache;
global $template;
if ($phpBB3['int'] == "1") {
$userid = $vars['userid'];
$bbuser = getusername($userid);
$bbpass = getuserpass($userid);
$bbemail = $vars['email'];
$link = mysql_connect($phpBB3['mysql_server'], $phpBB3['mysql_user'], $phpBB3['mysql_pass']);
if (!$link) {
exit("Not connected to forums: " . mysql_error());
}
$db_selected = mysql_select_db($phpBB3['mysql_db'], $link);
if (!$db_selected) {
exit("Can't use forum db : " . mysql_error());
} else {
$sqlcmd = "SELECT username FROM " . $phpBB3['mysql_prefix'] . "users WHERE whmcs_id='" . $userid . "'";
if (!($result = mysql_query($sqlcmd))) {
exit("Mysql Error in updating details :" . mysql_error());
}
while ($row = mysql_fetch_object($result)) {
$bbolduser = $row->username;
}
define("IN_PHPBB", true);
$phpbb_root_path = $phpBB3['root_path'];
$phpEx = substr(strrchr(__FILE__, "."), 1);
include ($phpbb_root_path . "common_bridge." . $phpEx);
include ($phpbb_root_path . "includes/functions_user." . $phpEx);
session_begin();
acl($user->data);
if (validate_username($bbuser) == false) {
user_update_name($bbolduser, $bbuser);
update_last_username();
}
$sqlcmd = "UPDATE " . $phpBB3['mysql_prefix'] . "users SET username = '" . $bbuser . "', username_clean = '" . utf8_clean_string($bbuser) . "', user_email = '" . $bbemail . "', user_password = '" . md5($bbpass) . "' WHERE whmcs_id = '" . $userid . "'";
if (!($result = mysql_query($sqlcmd))) {
exit("Mysql Error in updating details :" . mysql_error());
}
}
mysql_close($link);
restoredb();
}
}
function delete_forum_account($vars) {
global $phpBB3;
if ($phpBB3['int'] == "1") {
$userid = $vars['userid'];
$link = mysql_connect($phpBB3['mysql_server'], $phpBB3['mysql_user'], $phpBB3['mysql_pass']);
if (!$link) {
exit("Not connected to forums: " . mysql_error());
}
$db_selected = mysql_select_db($phpBB3['mysql_db'], $link);
if (!$db_selected) {
exit("Can't use forum db : " . mysql_error());
} else {
$sqlcmd = "DELETE FROM " . $phpBB3['mysql_prefix'] . "users WHERE whmcs_id='" . $userid . "'";
if (!($result = mysql_query($sqlcmd))) {
exit("Mysql Error in removing details :" . mysql_error());
}
}
restoredb();
}
}
function getusername($userid) {
global $phpBB3;
$sqlcmd = "select value from tblcustomfieldsvalues where fieldid='" . $phpBB3['usernamefieldid'] . "' and relid='" . $userid . "'";
if (!($result = mysql_query($sqlcmd))) {
exit("Mysql Error in getting user's forum username :" . mysql_error());
}
if ($row = mysql_fetch_object($result)) {
return $row->value;
}
}
function getuserpass($userid) {
global $phpBB3;
$sqlcmd = "select value from tblcustomfieldsvalues where fieldid='" . $phpBB3['passwordfieldid'] . "' and relid='" . $userid . "'";
if (!($result = mysql_query($sqlcmd))) {
exit("Mysql Error in getting user's forum password :" . mysql_error());
}
if ($row = mysql_fetch_object($result)) {
return $row->value;
}
}
function restoredb() {
global $db_host;
global $db_username;
global $db_password;
global $db_name;
$whmcssql = mysql_connect($db_host, $db_username, $db_password);
if (!mysql_select_db($db_name, $whmcssql)) {
exit("Could not connect to the database");
}
}
include ("phpbb3config.php");
add_hook("ClientAdd", 1, "create_forum_account");
add_hook("ClientEdit", 1, "edit_forum_account");
add_hook("ClientDelete", 1, "delete_forum_account");
?> |
|
|
|
|
|
|
|
|
|
Posted: Mon May 16, 2011 12:57 am |
|
|
swan5968 |
Beginner |
|
|
Joined: May 14, 2011 |
Posts: 2 |
|
|
|
|
|
|
|
|
|
|
|
www.waraxe.us Forum Index -> PHP script decode requests
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
All times are GMT
Page 1 of 1
|
|
|
Powered by phpBB © 2001-2008 phpBB Group
|
|
|
|
|
|