%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/ugotscom/public_html/
Upload File :
Create Path :
Current File : /home/ugotscom/public_html/reliabletest2.php

<?php
 
$login_url = 'https://reliablegroups.in/reliablenew/login';

//These are the post data username and password
$post_data = 'username=reliable&password=reliable';

//Create a curl object
$ch = curl_init();

//Set the useragent
$agent ='Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/32.0.1700.107 Chrome/32.0.1700.107 Safari/537.36';
curl_setopt($ch, CURLOPT_USERAGENT, $agent);

//Set the URL
curl_setopt($ch, CURLOPT_URL, $login_url );

//This is a POST query
curl_setopt($ch, CURLOPT_POST, 1 );

//Set the post data
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data);

//We want the content after the query
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

//Follow Location redirects
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);

/*
Set the cookie storing files
Cookie files are necessary since we are logging and session data needs to be saved
*/

curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookie.txt');
curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookie.txt');

//Execute the action to login
//Execute the GET request and print out the result.
echo curl_exec($ch);
?>

Zerion Mini Shell 1.0