Sh3ll
OdayForums


Server : Apache
System : Linux profile 3.10.0-1160.88.1.el7.x86_64 #1 SMP Tue Mar 7 15:41:52 UTC 2023 x86_64
User : apache ( 48)
PHP Version : 8.0.28
Disable Function : NONE
Directory :  /var/www/html/mmishra/erp-19-12-2019/includes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //var/www/html/mmishra/erp-19-12-2019/includes/pg-post.php
<?php 
session_start();
$HASHING_METHOD = 'sha512'; // md5,sha1
$ACTION_URL = "https://secure.ebs.in/pg/ma/payment/request/";

// This post.php used to calculate hash value using md5 and redirect to payment page.
if(isset($_POST['secretkey']))
	$_SESSION['SECRET_KEY'] = $_POST['secretkey'];
else
	$_SESSION['SECRET_KEY'] = ''; //set your secretkey here
	
$hashData = $_SESSION['SECRET_KEY'];

unset($_POST['secretkey']);
unset($_POST['submitted']);

ksort($_POST);
foreach ($_POST as $key => $value){
	if (strlen($value) > 0) {
		$hashData .= '|'.$value;
	}
}
if (strlen($hashData) > 0) {
	$secureHash = strtoupper(hash($HASHING_METHOD, $hashData));
}
?>
<html>
<body onLoad="document.payment.submit();">
<h3>Please wait, redirecting to process payment..</h3>
<form action="<?php echo $ACTION_URL;?>" name="payment" method="POST">
<?php
	foreach($_POST as $key => $value) {
?>
<input type="hidden" value="<?php echo $value;?>" name="<?php echo $key;?>"/>
<?php
	}
?>
<input type="hidden" value="<?php echo $secureHash; ?>" name="secure_hash"/>
</form>
</body>
</html>

ZeroDay Forums Mini