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 /* Dev By Hoang Skyht 18-06-2024 */$OOO000000=urldecode('%66%67%36%73%62%65%68%70%72..
Decoded Output download
$O000O0O00=$OOO000O00($OOO0O0O00,'rb');$O0O00OO00($O000O0O00,0x4a7);$OO00O00O0=$OOO0000O0($OOO00000O($O0O00OO00($O000O0O00,0x17c),'EnteryouwkhRHYKNWOUTAaBbCcDdFfGgIiJjLlMmPpQqSsVvXxZz0123456789+/=','ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'));eval($OO00O00O0);$OO00O00O0=str_replace('__FILE__',"'".$OOO0O0O00."'",$OOO0000O0($OOO00000O($O0O00OO00($O000O0O00,$OO00O0000),'EnteryouwkhRHYKNWOUTAaBbCcDdFfGgIiJjLlMmPpQqSsVvXxZz0123456789+/=','ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/')));fclose($O000O0O00);eval($OO00O00O0);
namespace App\Payments;
use App\Models\Order;
class SkyhtPayment {
public function __construct($config)
{
$this->config = $config;
}
public function form()
{
return [
'NGANHANG'=>[
'label'=>'Ngn Hng Th Hng ( Ch H Tr API.4GSIEURE.NET )',
'description'=>'Chn Ngn Hng',
'type'=>'select',
'options'=>[
'970416|acb|historyacbv2'=>'Ngn Hng ACB',
'970422|mb|historyviettelv2'=>'Viettel Money',
'970422|mb|historymbbankv2'=>'Ngn Hng MB',
'970436|vcb|historyvietcombankv2'=>'VietComBank',
],
],
'STK'=>[
'label'=>'S Ti Khon',
'description'=>'0521000729745',
'type'=>'input',
],
'CTK'=>[
'label'=>'Tn Ch Ti Khon S Hu',
'description'=>'ng Vn Hong',
'type'=>'input',
],
'ND'=>[
'label'=>'Ni Dung Nhn Tin ( Vit Thng V Khng C S )',
'description'=>'',
'type'=>'input',
],
'TIME'=>[
'label'=>'Thi Gian n Hng Ht Hn - Tnh Theo Pht',
'description'=>'30',
'type'=>'input',
],
'paygate_url'=>[
'label'=>'Cng Thanh Ton',
'description'=>'https://vpndata.vn/thanhtoan',
'type'=>'input',
],
'momosv3_key'=>[
'label'=>'Token Lin Kt Ti Trang Thanh Ton',
'description'=>'',
'type'=>'input',
]
];
}
public function pay($order)
{
$amount = $order['total_amount'] / 100;
$order['gate'] = "thanhtoan";
$order['momosv3_key'] = $this->config['momosv3_key'];
$selectedValue = $this->config['NGANHANG'];
list($BankID,$NganHang,$TaiLieuAPI) = explode('|',$selectedValue);
$order['NGANHANG'] = [
'BankID'=>$BankID,
'NganHang'=>$NganHang,
'TaiLieuAPI'=>$TaiLieuAPI
];
$order['tranghook'] = $this->config['paygate_url'];
$order['STK'] = $this->config['STK'];
$order['CTK'] = $this->config['CTK'];
$order['ND'] = $this->config['ND'];
$order['TIME'] = (int)$this->config['TIME'] >0 ?(int)$this->config['TIME'] : 30;
$cipher_method = 'aes-128-ctr';
$enc_key = $order['momosv3_key'];
$enc_iv = openssl_random_pseudo_bytes(openssl_cipher_iv_length($cipher_method));
$crypted_token = openssl_encrypt(json_encode($order),$cipher_method,$enc_key,0,$enc_iv) ."::".bin2hex($enc_iv);
$sig = bin2hex($crypted_token);
return [
'type'=>1,
'data'=>$this->config['paygate_url'] ."/?sig=".$sig
];
}
public function notify($params)
{
$token = $params['token'];
if ($this->config['momosv3_key'] != $token) {
return false;
}
return [
'trade_no'=>$params['trade_no'],
'callback_no'=>$params['out_trade_no']
];
}
}
;
Did this file decode correctly?
Original Code
<?php /* Dev By Hoang Skyht 18-06-2024 */$OOO000000=urldecode('%66%67%36%73%62%65%68%70%72%61%34%63%6f%5f%74%6e%64');$OOO0000O0=$OOO000000{4}.$OOO000000{9}.$OOO000000{3}.$OOO000000{5};$OOO0000O0.=$OOO000000{2}.$OOO000000{10}.$OOO000000{13}.$OOO000000{16};$OOO0000O0.=$OOO0000O0{3}.$OOO000000{11}.$OOO000000{12}.$OOO0000O0{7}.$OOO000000{5};$OOO000O00=$OOO000000{0}.$OOO000000{12}.$OOO000000{7}.$OOO000000{5}.$OOO000000{15};$O0O000O00=$OOO000000{0}.$OOO000000{1}.$OOO000000{5}.$OOO000000{14};$O0O000O0O=$O0O000O00.$OOO000000{11};$O0O000O00=$O0O000O00.$OOO000000{3};$O0O00OO00=$OOO000000{0}.$OOO000000{8}.$OOO000000{5}.$OOO000000{9}.$OOO000000{16};$OOO00000O=$OOO000000{3}.$OOO000000{14}.$OOO000000{8}.$OOO000000{14}.$OOO000000{8};$OOO0O0O00=__FILE__;$OO00O0000=0xc74;eval($OOO0000O0('JE8wMDBPME8wMD0kT09PMDAwTzAwKCRPT08wTzBPMDAsJ3JiJyk7JE8wTzAwT08wMCgkTzAwME8wTzAwLDB4NGE3KTskT08wME8wME8wPSRPT08wMDAwTzAoJE9PTzAwMDAwTygkTzBPMDBPTzAwKCRPMDAwTzBPMDAsMHgxN2MpLCdFbnRlcnlvdXdraFJIWUtOV09VVEFhQmJDY0RkRmZHZ0lpSmpMbE1tUHBRcVNzVnZYeFp6MDEyMzQ1Njc4OSsvPScsJ0FCQ0RFRkdISUpLTE1OT1BRUlNUVVZXWFlaYWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXowMTIzNDU2Nzg5Ky8nKSk7ZXZhbCgkT08wME8wME8wKTs='));return;?>r`ZPn@xv}RIrv^}Ikr9NHenNHenNHe1zfukgFMaXdoyjcUImb19oUAxyb18mRtwmwJ4LT09NHr8XTzEXRJwmwJXLT09NHeEXHr8XhtONT08XHeEXHr8Pkr8XTzEXT08XHtILTzEXHr8XTzEXRtONTzEXTzEXHeEpRtfydmOlFmlvfbfqDykwBAsKa09aaryiWMkeC0OLOMcuc0lpUMpHdr1sAunOFaYzamcCGyp6HerZHzW1YjF4KUSvNUFSk0ytW0OyOLfwUApRTr1KT1nOAlYAaacbBylDCBkjcoaMc2ipDMsSdB5vFuyZF3O1fmf4GbPXHTwzYeA2YzI5hZ8mhULpK2cjdo9zcUILTzEXHr8XT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aZBZfTarSmbUE9wtO0DolzRT5jd25MDBfdk1YAUZffKXPLd3kLcbkdk0YAUZffwe0IkuOPDbHsNMYvdMcpc1SmW1ORk107tJOvFMOlFlSmTLWmbUE9wtO0DolzRT5jd25MDBfdk05rk107tJOvFMOlFlSmarlYOUffwe0IholVftLLfoipFZ0+C29VcMlmBZfAUA1yk10INjEINZipdmWpkuOPDbHsNMYvdMcpc1SmarlYOUffwePIHzE7tJOjDbnPcbkgdBa0Do9Lwe0Ik2ylFZ0xHjIsC3OZkzShkoaVC19qcbLINUELd3kLcbkdk21vdB9zfjYgD2a5k107tJOldMYgDbCINUnvFoaVF3YSb3kidMOvda9XF2a1co9gCml0cbHPd3nldmYzdy9jDbnPcbkgDbcgdoaVc3OPhtOjDbnPcbkgdBa0Do9LhUL7tJOjFmlXfoaLb3OvD2aVwe0Id3nldmYzdy9ldMYZGbn0hopzd25gcB5jd2OlhtOvFMOlFJLSkoYpFoilFl9scbOPd2WSkoaVC19qcbLSHtXLcB5jb2l2hUEVwjP6wJ5JDB4ZDoa4htOldMYgDbCpKXPLF2lmwe0ICMlVHMilGtILC3k5FuOlcy90d2sldJL7tmklfuaZdJndtJf0Gbnlkz0+HUXhk2OiformNT4LfoipFZ0+C29VcMlmBZfXCblmCbOlb3aZdtffwt4JRz9zDBF9wJ4LF2lmtl07tm0hFuaJdoljwoc1dMY0DB9Vwo5vfolMGUILFoyZCB1zhWp7tJO0d2sldJE9wtOXCbkidbYdk3OvD2aVk107tMlMwtILfoipFZ0+C29VcMlmBZfsd21vF3Czb2slGUffwtr9wtO0d2sldJLIGXpZcbO1FM4IcMySF2A7tm0hFMa0fbkVwyShk3OZCBOlb25vkz0+kuniFMysF1SmfukicoagdM8mbUXhk2YidoxJCBYqb25vkz0+kuniFMysF1Smd3a0b3OZCBOlb25vk10hbTShgWp9tjS=\mOTrD@fPkD
Function Calls
fopen | 1 |
fread | 3 |
strtr | 2 |
fclose | 1 |
urldecode | 1 |
str_replace | 1 |
base64_decode | 3 |
Stats
MD5 | 2eac5c6603a348d2cc2304cfc497ded3 |
Eval Count | 3 |
Decode Time | 131 ms |