|
Menu |
|
|
Home |
| |
|
Discussions |
| |
|
Tools |
| |
|
Affiliates |
| |
|
Content |
| |
|
Info |
| | |
|
|
|
|
|
User Info |
|
Membership:
Latest: MichaelSnaRe
New Today: 0
New Yesterday: 0
Overall: 9144
People Online:
Visitors: 70
Members: 0
Total: 70
|
|
|
|
|
|
Full disclosure |
|
|
|
|
|
|
|
|
|
IT Security and Insecurity Portal |
|
|
decode request |
|
Posted: Thu Jul 17, 2008 12:58 pm |
|
|
ozzy_nutter |
Beginner |
|
|
Joined: Jul 17, 2008 |
Posts: 3 |
|
|
|
|
|
|
|
Hi there all,
Hope you can help, I am trying to decode the following code:
Code: |
<?php $_F=__FILE__;$_X='P3cwPw19bSoqDX0qWQpneXN1Z3JZXUhyZ1l5VjVZdEhsPGd1UVlybHJRZzxZdDFwS3N1cg19Kg19Km0NfU4xSHJyWXRIbDxndVFZPg19DX1ZWVlZbW1OMXNndVFZZzxIczEsWXJnUVFnNVkvczExWV1nWU5IMTFnW1lzdVlnZnVhVnNOZw19WVlZWWFINVkkTjFzZ3VRX2c8SHMxWWtZJyc7DX0NfVlZWVltbU4xc2d1UVl5czVyUVl1SDxnLFk8SFFOMlk0NCxZcHRbSFFnWU4xc2d1UVl0NVZ5czFnWXN5WXVnZ1tnW24NfVlZWVlhSDVZJE4xc2d1UV95dUg8Z1lrWScnOw19DX1ZWVlZbW1OMXNndVFZPHNbWzFnWXVIPGcNfVlZWVlhSDVZJE4xc2d1UV88dUg8Z1lrWScnOw19DX1ZWVlZbW1OMXNndVFZMUhyUVl1SDxnDX1ZWVlZYUg1WSROMXNndVFfMXVIPGdZa1knJzsNfQ19WVlZWW1tTjFzZ3VRWUhbWzVncnINfVlZWVlhSDVZJE4xc2d1UV9IW1s1Z3JyWWtZJyc7DX0NfVlZWVltbU4xc2d1UVlOc1FsDX1ZWVlZYUg1WSROMXNndVFfTnNRbFlrWScnOw19DX1ZWVlZbW1OMXNndVFZclFIUWcNfVlZWVlhSDVZJE4xc2d1U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X1ZWVlZTA19DX1ZWVlZeXB1TlFzVnVZcmdRX04xc2d1UV9RZzFfdVYoJE51Vik+DX1ZWVlZWVlZJFEyc3Itd04xc2d1UV9RZzFfdVZZa1kkTnVWOw19WVlZWUwNfQ19WVlZWXlwdU5Rc1Z1WXJnUV9nc3VhX3JncnJzVnVfc1soJGdzdWFfcmdycik+DX1ZWVlZWVlZJFEyc3Itd2dzdWFfcmdycnNWdV9zW1lrWSRnc3VhX3JncnI7DX1ZWVlZTA19TA19DX0/dw==';$_D=strrev('edoced_46esab');eval($_D('JF9YPWJhc2U2NF9kZWNvZGUoJF9YKTskX1g9c3RydHIoJF9YLCd1IHkzLzZlfTVqN0NYR3NaSFBwPUpLXW5CV1E8e2tEYnZJUm9ybGRVRjguRW0KTkxBOWk+dGNhd2ZNMlNoMFR4Z3F6MTRWW1lPJywnbk9mMXc0UgpyW0E4UzdpVmFadUp6Z2IuTVF0bVQ9cV01aldIc3kyS0JGWDAvRGN9TlB4e3BMdj5JVWg5MzxZa2VHRWxDb2QgNicpOyRfUj1zdHJfcmVwbGFjZSgnX19GSUxFX18nLCInIi4kX0YuIiciLCRfWCk7ZXZhbCgkX1IpOyRfUj0wOyRfWD0wOw=='));?>
|
I got as far as getting the following:
Code: |
$_X=base64_decode($_X);$_X=strtr($_X,'u y3/6e}5j7CXGsZHPp=JK]nBWQ<{kDbvIRorldUF8.Em
NLA9i>tcawfM2Sh0Txgqz14V[YO','nOf1w4R
r[A8S7iVaZuJzgb.MQtmT=q]5jWHsy2KBFX0/Dc}NPx{pLv>IUh93<YkeGElCod 6');$_R=str_replace('__FILE__',"'".$_F."'",$_X);eval($_R);$_R=0;$_X=0;
|
But can't seem to make any sense of the code thats decrypted using the above?
Any help is grately appreciated! |
|
|
|
|
|
|
|
|
Posted: Thu Jul 17, 2008 3:03 pm |
|
|
mge |
Valuable expert |
|
|
Joined: Jul 16, 2008 |
Posts: 142 |
|
|
|
|
|
|
|
i got this
Code: | ?><?
/**
* Defines base for payment system plugins
*
*/
class payment {
//client email, setter will be called in eInvoice
var $client_email = '';
//client first name, match CC, update client profile if needed.
var $client_fname = '';
//client middle name
var $client_mname = '';
//client last name
var $client_lname = '';
//client address
var $client_address = '';
//client city
var $client_city = '';
//client state
var $client_state = '';
//client zip code
var $client_zip = '';
//client country
var $client_country = '';
//client telephone country code.
var $client_tel_ctry = '';
//client telephone area code
var $client_tel_area = '';
//client telephone number.
var $client_tel_no = '';
//session id
var $einv_session_id = '';
/**
* Constructor
*/
function payment(){
}
/**
* Redirect to payment system or make other action for payment
* this function returns the HtmL link to do payments.
*
* the following paramenters will be passed in for you to use
* in this function.
* @param integer $client_id Client ID
* @param integer $invoice_id Invoice ID
* @param integer $price invoice amount
* @param string $link_text the text to show to client for the link returned to UI.
* @param string $ppcurrencycode PayPal currency code, you may map this to your currency code of your payment plugin
* @param boolean $use_icon If true, an icon image is used for link, instead of link text.
* @return string the link to payment gateway.
*/
//function do_payment($client_id, $invoice_id, $price, $link_text, $ppcurrencycode, $use_icon){
//the following global variables are also available to you.
//$site: eInvoice running root URL.
//$yourtitle: your company name.
//$ppbusiness: your paypal account email address
//step 1: get globals if needed.
//global $site,$yourtitle,$ppbusiness;
//step 2: map $ppcurrencycode to your payment gateway currency code.
//USD: us dollars, CAD: canada dollars, EUR: euros, see PayPal web site for full list.
//step 3: build payment gateway links or action forms.
//step 4: return the link or form with link_text or icon.
// define the icon path first use <img.. tag for if use_icon=true
//}
/**
* ialidate variables from thanks page
* If payment system submit it only to thanks page and give the way
* to check it
* @param array $vars Payment-System submitted variables
* @return string Empty if all ok / Error message if any
*/
function validate_thanks(&$vars){
return '';
}
/**
* If {@link validate_thanks} return true, this function called
* most common usage for this is call db->finish_waiting_payment
* with correct parameters to save payment status
* @param array $vars Payment-System submitted variables
* @return string Empty if all ok / Error message if any
*/
function process_thanks(&$vars){
return '';
}
//the following getters will be called by eInvoice.
//if you need overload these functions, put
//your implementation in your own plugin.
function set_client_email($cemail){
$this->client_email = $cemail;
}
function set_client_fname($fname){
$this->client_fname = $fname;
}
function set_client_mname($mname){
$this->client_mname = $mname;
}
function set_client_lname($lname){
$this->client_lname = $lname;
}
function set_client_address($caddress){
$this->client_address = $caddress;
}
function set_client_city($ccity){
$this->client_city = $ccity;
}
function set_client_state($cstate){
$this->client_state = $cstate;
}
function set_client_zip($czip){
$this->client_zip = $czip;
}
function set_client_country($ccountry){
$this->client_country = $ccountry;
}
function set_client_tel_ctry($ctelctry){
$this->client_tel_ctry = $ctelctry;
}
function set_client_tel_area($ctelarea){
$this->client_tel_area = $ctelarea;
}
function set_client_tel_no($cno){
$this->client_tel_no = $cno;
}
function set_einv_session_id($einv_sess){
$this->einv_session_id = $einv_sess;
}
}
?> |
it is possible that a few letters aren't right (for the commentaries) but I think the code works.
i hope i could be of help |
|
|
|
|
|
|
Thanks! |
|
Posted: Thu Jul 17, 2008 3:43 pm |
|
|
ozzy_nutter |
Beginner |
|
|
Joined: Jul 17, 2008 |
Posts: 3 |
|
|
|
|
|
|
|
Hey thats great, if you dont mind me asking, how did you manage that?
I tried a few things but I think i just kept encrypting it even more! D'OH!
Much appreciated though. |
|
|
|
|
Posted: Thu Jul 17, 2008 3:58 pm |
|
|
mge |
Valuable expert |
|
|
Joined: Jul 16, 2008 |
Posts: 142 |
|
|
|
|
|
|
|
eval () is the key
so i didn't let it evaluate the code directly.
the last layer was kind of guessing around a lot as it didn't give me the correct source code right away. some characters were used instead of others (like capital Qs instead of lower-case ts) so I just kept twisting it a little until it made sense |
|
|
|
|
Posted: Thu Jul 17, 2008 8:59 pm |
|
|
ozzy_nutter |
Beginner |
|
|
Joined: Jul 17, 2008 |
Posts: 3 |
|
|
|
|
|
|
|
Genius! Thanks for the explanation too! |
|
|
|
|
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
|
|
|
|
|
|