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/b2bzend/public/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/b2bzend/public//quote.php
<?php

$url    = "http://local.b2bzend.com/api/premium/get";
$url    = "http://st.tb.tripsbank.com/api/premium/get";

$intLoggedinUserId = 39;
$intLoggedinUserAgencySysId = 501;

if(isset($_POST['submitform'])) {
    
    $post   = $_POST;
            
    $apiData    = array(
        "UID"=>"catpldev",
        "PASSCODE"=>urlencode("Catpl@987Dev"),
        "EMAILID"=>urlencode("prashantk@catpl.co.in"),

//        'insurer'=> '4', // religare, apollo , ... ?
        'suminsured'=> $post['suminsured'],
        'trip_start_date'=> $post['trip_start_date'],
        'trip_end_date'=> $post['trip_end_date'],
//        'noofdays'=> $post['noofdays'],
        'traveldestination'=> $post['traveldestination'],
        'age_band_0_40'=> $post['age_band_0_40'],
        'age_band_41_60'=> $post['age_band_41_60'],
        'age_band_61_70'=> $post['age_band_61_70'],
        'AgencySysId' => $intLoggedinUserAgencySysId,
        'UserSysId' => $intLoggedinUserId,
            
        ); 
    
    try {
        $curl = curl_init($url);
        curl_setopt($curl, CURLOPT_POST, true);
        curl_setopt($curl, CURLOPT_POSTFIELDS, http_build_query($apiData));
        curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
        $curl_response = curl_exec($curl);
        curl_close($curl);
        
        print_r($curl_response);
    }
    catch (Exception $error)
    {
        echo $error->getMessage();
    }
}
?>
<style type="text/css">
    form input { margin: 10px }
</style>
<form action="" method="post">
    
Geo Location   <input type="text" name="traveldestination" id="traveldestination"  value="<?php echo @$_POST['traveldestination']?>" /> Worldwide_Excluding_USCanada , Worldwide<br>
Suminsured    <input type="text" name="suminsured" id="suminsured"  value="<?php echo @$_POST['suminsured']?>" /> 100000 <br> 
Start Date    <input type="text" name="trip_start_date" id="startdate"  value="<?php echo @$_POST['trip_start_date']?>" /> DD-MM-YYYY <br>
End Date    <input type="text" name="trip_end_date" id="enddate"  value="<?php echo @$_POST['trip_end_date']?>" /> DD-MM-YYYY <br>
age_band_0_40    <input type="text" name="age_band_0_40" id=""  value="<?php echo @$_POST['age_band_0_40']?>" /> <br>
age_band_41_60    <input type="text" name="age_band_41_60" id="" value="<?php echo @$_POST['age_band_41_60']?>"  /> <br>
age_band_61_70    <input type="text" name="age_band_61_70" id="" value="<?php echo @$_POST['age_band_61_70']?>" /> <br>
<hr>

<br><input type="submit" name="submitform" value="Generate Quote" /> <br>

</form>


<div align="center">
    <?php
    if(isset($curl_response)) {
        $curl_response = json_decode($curl_response, true);
        foreach($curl_response as $res)
        {
            echo '<div style="border:1px solid #ccc; float:left; margin:5px; padding:5px;">';
            echo '<img alt="'.$res['name'].'" src="'.$res['logoUrl'].'">';
            echo '<p>Insurer : '.$res['name'].'</p>';
            echo '<p>CompSysId : '.$res['CompSysId'].'</p>';
            echo '<p>Premium : '.$res['premium'].'</p>';
            echo '<p>Premium with tax : '.$res['premiumWithTax'].'</p>';
            echo '</div>';
        }
    }
    ?>
</div>


Youez - 2016 - github.com/yon3zu
LinuXploit