403Webshell
Server IP : 103.234.187.230  /  Your IP : 216.73.216.216
Web Server : Apache
System : Linux lserver42043-ind.megavelocity.net 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
User : apache ( 48)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/uatb2c.hellogtx.com/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/uatb2c.hellogtx.com//apiinvoice.php
<?php
error_reporting(0);
$data = json_decode('{"AgentSysId":"1","CustomerSysId":"130","TPSysId":"14797","MasterTPSysId":"14796","ProposalID":"14797/V1","InvoiceDate":"2022-07-08","isDisplayMarkup":true,"PaymentDueDate":"2022-07-08","PaymentDate":"2022-07-08","ClientGST":false,"ClientGSTNumber":"","Currency":"INR","TotalInvoiceValue":9224.4,"InvoiceStatus":true,"TotalCGST":0,"TotalSGST":0,"TotalIGST":324,"SumdiscountItem":0,"OtherDiscount":500,"otherDiscountVal":500,"TotalAdvance":0,"TotalDueAmount":0,"InvoiceValue":9224.4,"notes":"Flight Ticket","termsandcondition":"","client_state":"","Advance":0,"PaymentType":4,"paymentNote":"Online","misxItems_name":[{"AgencySysId":"1","AgentSysId":"0","MisxItems_name":"Flight","Description":"DEL-BOM-IndiGo 6E-171","ItemQty":1,"ItemRates":4233.7,"Total":"","DiscountType":250,"Discount":1,"TotalDiscount":250,"TotalAmount":5133.7,"MarkupType":"","Markup":900,"TotalMarkup":900,"SubTotal":5133.7,"ServiceFeeTotal":0,"GSTPercentage":"18","TotalGST":162,"SGST":0,"CGST":0,"IGST":162,"ItemsSACCode":""},{"AgencySysId":"1","AgentSysId":"0","MisxItems_name":"Flight","Description":"BOM-DEL-AirAsia India I5-620","ItemQty":1,"ItemRates":3440.7,"Total":"","DiscountType":250,"Discount":1,"TotalDiscount":250,"TotalAmount":4340.7,"MarkupType":"","Markup":900,"TotalMarkup":900,"SubTotal":4340.7,"ServiceFeeTotal":0,"GSTPercentage":"18","TotalGST":162,"SGST":0,"CGST":0,"IGST":162,"ItemsSACCode":""}]}',true);
if ($data) {

	$API_URL = "http://local.b2bzend.com/gtxwebservices/create-invoice";
	echo "<pre>";
	print_r(($data));

	$ch = curl_init();
	curl_setopt($ch, CURLOPT_URL, $API_URL);
	curl_setopt($ch, CURLOPT_HEADER, 0);
	curl_setopt($ch, CURLOPT_POST, 1);
	curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
	curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data));
	//curl_setopt($ch, CURLOPT_PORT, 443);
	curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
	curl_setopt($ch, CURLOPT_HTTPHEADER, array(
		'SecurityKey:369FB021-CF12-4627-AD0A-3C43AADA940A',
	));
	$output = curl_exec($ch);
	curl_close($ch);
	print_r($output);
	die('ssss');
	
} else {
	$data = array('status' => false, 'message' => 'Invalid request');
	return ($data);
}
?>



Youez - 2016 - github.com/yon3zu
LinuXploit