Resources

Cyber Range and Kali Linux Commands

Purpose

Access Your Cyber Range Account

Note: To copy and paste between the Linux virtual environment and your Windows environment, use Ctrl + Shift + Alt.

Due Date: August 24, 2026

Simple Python Game

Code is below. We will use this later. Review it.

 ```python
# Import the random module so the computer can choose a random number
import random

# Display the game title
print("================================")
print("       GUESS THE NUMBER")
print("================================")

# The computer selects a random number between 1 and 100
secret_number = random.randint(1, 100)

# Keep track of how many guesses the player makes
guesses = 0

# Give guess a starting value
guess = 0

# Explain the goal of the game
print("I am thinking of a number between 1 and 100.")

# Keep repeating the game until the player guesses the correct number
while guess != secret_number:

    # Ask the player to enter a number
    # int() converts the keyboard input into an integer
    guess = int(input("Enter your guess: "))

    # Add 1 to the number of guesses
    guesses += 1

    # Check if the player's guess is too low
    if guess < secret_number:
        print("Too low! Try again.")

    # Check if the player's guess is too high
    elif guess > secret_number:
        print("Too high! Try again.")

    # If the guess is not too low or too high,
    # then the player guessed the correct number
    else:
        print()
        print("Correct!")

        # Display the secret number
        print("The number was:", secret_number)

        # Display how many guesses it took
        print("You guessed it in", guesses, "tries.")

# This message appears after the game is finished
print("Thanks for playing!")
```
Note: To copy and paste between the Linux virtual environment and your Windows environment, use Ctrl + Shift + Alt.

Due Date: August 24, 2026

You should have your Terminal Box open.

Purpose

Learning Linux top 10 Commands

Note: To copy and paste between the Linux virtual environment and your Windows environment, use Ctrl + Shift + Alt.

Due Date: August 24, 2026

You should have your Terminal Box open.

Purpose

We will run a python Game.

Note: To copy and paste between the Linux virtual environment and your Windows environment, use Ctrl + Shift + Alt.

Due Date: August 28, 2026

Learning about Kali Linux File/Folder Permissions.

Due Date: August 28, 2026

Complete this: Permission1, Permission2, Permission3, and Permission4

  1. Assignment 1: Create a file named after your favorite sport or activity.
  2. Use the touch command.
  3. Create another user that we will work with later.
  4. Run the following chmod codes: 700, 600, 500, 400, 300, 200, 100, 000.
  5. Example: chmod 700 sports
  6. Run ls -l to see how the permissions have changed.
  7. At the end, type echo yourname and run history.
  8. Save the screenshot as PX_lastname_permissions1.png

  9. Assignment 2: Run chmod with codes 777, 666, 555, 444, 333, 222, 111.
  10. Example: chmod 700 sports
  11. Save the screenshot as PX_lastname_permissions2.png

  12. Assignment 3: Run chmod with codes 007, 006, 005, 004, 003, 002, 001.
  13. Save the screenshot as PX_lastname_permissions3.png

  14. Assignment 4: Run chmod with codes 123, 456, 712, 345, 671, 234, 567.
  15. Save the screenshot as PX_lastname_permissions4.png

Due Date: August 28, 2026

Learning about Kali Linux File/Folder Ownership.

Due Date: August 28, 2026

Complete this: Ownership1, Ownership2

  1. Assignment 1: Create files: touch Mechanic, touch Artist, touch CyberExpert, touch musician.
  2. (Hints - Click here)
  3. Create users with sudo adduser: lastname, jack, maddy.
  4. Create groups: teacher, student, parent, assistant.
  5. Use chown to change ownership and verify with ls -l.
  6. Then type echo "your lastname" and run history.
  7. (Hints - Click here)
  8. Take screenshots and record a video (PX_lastname_Ownership1.png, PX_lastname_Ownership1.mp4).
  9. Type clear, then ls -l and set group ownership:
    • sudo chown "lastname":student Artist
    • sudo chown jack:parent Mechanic
    • sudo chown maddy:assistant musician
    • ls -l
  10. Again, type echo "your lastname" and history.
  11. (Hints - Click here)
  12. Ensure screenshots and video are saved (PX_lastname_Ownership2.png, PX_lastname_Ownership2.mp4).
  13. Submit the 4 files in Google Classroom when Mr. Cusack adds the assignment.