Ask Dr. Mohammad locally, or prepare an experiment-aware prompt for ChatGPT, Gemini or Claude. The external providers open in their own tabs; nothing is automatically submitted.
Public course objective, displayed commands, source excerpts and procedure. Private assessment content is not collected.
Prepare a contextual AI prompt
0 characters
Common secret and email patterns are redacted on preparation; this is not a comprehensive privacy filter. Review the entire editable prompt, including student work and unpublished research, before sharing. The providers apply their own accounts, privacy settings and limits.
Determine whether the selected WSL distribution, tools and approved scope satisfy the course preflight.
The focus of this experiment is to identify the authorized local lab environment and available commands. Students then interpret WSL version and architecture checks, and verify prerequisites and restrict exercises to permitted fixtures. The Concepts view explains the operation before the practical work; the Simulation view is used to examine reference and changed inputs, not to substitute for actual measurements.
Learning objectives
Identify the authorized local lab environment and available commands.
Interpret WSL version and architecture checks.
Verify prerequisites and restrict exercises to permitted fixtures.
Identify the configured inputs (Selected distribution; WSL version; Host architecture; Unavailable command; Requested lab scope) and record the corresponding observed outputs with units where applicable.
Compare the reference calculation or decision with an independent implementation or authorized observation; state any discrepancy and the applicable model boundary.
Expected learning outcomes
On completion, students can identify the authorized local lab environment and available commands, interpret WSL version and architecture checks, and verify prerequisites and restrict exercises to permitted fixtures.
Required deliverables
Submit the derivation or state trace for the named operation, the exact reference and changed configurations, the associated simulator or practical evidence, and a short validation statement addressing verify prerequisites and restrict exercises to permitted fixtures. Separate predicted values from observations.
Prerequisite knowledge and related learning
Review the foundational terminology in Concepts and confirm readiness using the existing setup instructions. After completion, continue to K02 · Local broker & service inventory.
Environment and experimental methodology
The specified isolated laboratory environment, with local synthetic inputs and authorized services only. Use the experiment-specific setup and verification instructions.
Begin with a manual prediction, record the baseline, change one independent condition at a time, and compare the resulting trace or measurements with the original prediction. Record observations and uncertainty separately from reference values. Follow the experiment’s specific procedure, safety limits, and acceptance checks.
Scientific concept map: Windows / Linux — Environment evidence; WSL distribution — Scope and architecture; Local toolkit — Dependencies; Loopback boundary — Authorized services only; Readiness — Record evidence.
Scientific foundations and analytical reasoning
Kali WSL provides Linux tooling but authorization defines experiment scope. Tool availability and host architecture are separate from network permissions.
Before operating the equipment or executing the program, derive the expected outcome using the required theoretical work in Experiment. Use the diagram to identify the variables and system boundaries.
Scientific theory · Authorized experimental boundaries
A security laboratory distinguishes tooling, target ownership and permitted actions. Kali on WSL provides a Linux user space; it does not automatically reproduce bare-metal wireless interfaces or grant authorization. Define the target, interface, permitted traffic and evidence before execution.
Worked example and engineering interpretation
A local loopback service and a public IP address have different authorization boundaries. Verify the environment with harmless local commands, then use only the assigned targets. A tool's successful installation is not evidence that a security test is permitted or valid.
Engineering principles · additional worked teaching example
Environment readiness combines tool availability, runtime and scope independently. A successful tool version check says nothing about authorization. For a local-only exercise, a missing packet-analysis tool means that activity is blocked, not that an external target may be used.
From theory to experiment
Predict the reference result before operating the workbench; check the actual intermediate state, units and constraints. The existing simulation, implementation and procedure below are distinct sources of evidence.
How to investigate K01 · Environment & scope
Verify Kali dependencies and authorized training scope.
Analytical investigation means collecting an observation, identifying the mechanism, using a calculation or state trace to explain it, and checking your conclusion against evidence. Controlled comparison means changing one independent variable, holding the remaining relevant conditions constant, and measuring a dependent variable against a baseline. Experimental validation means comparing a predicted result to a reproducible observation or assertion; agreement inside a model does not certify hardware. Evidence-based reasoning connects a specific observation to a theoretical rule and states uncertainty, not merely an opinion. Performance characterization records a named metric and its units across conditions; sensitivity analysis changes one parameter across several values. A threat assessment links an asset, threat, consequence and evidence to a mitigation.
Experiment-specific guided practice
Objective: Verify Kali dependencies and authorized training scope.
Select Kali Linux, WSL 2, x86_64 and all tools. Compare the command inventory with the setup wizard.
Switch WSL version to 1; record the version check and do not mistake x86_64 for a Raspberry Pi.
Remove tcpdump from the fixture and identify the single missing prerequisite.
Select external scope and verify that the approved target check fails; return to loopback.
Reference check:
Model boundary:
Independent task and submission evidence
2. Switch WSL version to 1; record the version check and do not mistake x86_64 for a Raspberry Pi. Record the named input, prediction, actual output and one limitation; restore the original condition and repeat.
Before execution write the independent variable and its levels, dependent observation with units where applicable, baseline, controlled variables, measurement method and expected result. For a state machine use state/event/output rather than inventing a numeric metric. Record failures and repeat the baseline. A weak conclusion is “it works”; a supported conclusion names the changed setting, observed value/state, corresponding rule and one limitation.
Trial
Changed setting
Fixed settings
Predicted result
Actual observation / units
Evidence / uncertainty
A: baseline
Reference
Record
Predict
Record
Record
B: one change
Record
Same as A
Predict
Record
Record
A: repeat
Restore
Same as A
Predict
Record
Record
Completion: submit the filled table, relevant simulator screenshot or terminal/notebook output, reasoning with units/assumptions, and one limitation. Preserve the independent assessment questions; this guide does not fill their answers.
Worked engineering reasoning and boundary conditions
Engineering reference configuration: Selected distribution = kali-linux; WSL version = 2; Host architecture = x86_64; Unavailable command = none; Requested lab scope = loopback. In the classroom model, Tools available = 7; Ready for toolkit = Yes; Host architecture = x86_64. The fixture meets the course prerequisites. This is a fictional inventory, not access to your computer.
Use the diagram to follow the calculation or state progression. Keep the teaching configuration separate from the independent exercise values; compare observations with the actual model and implementation.
Concept animation · operation pathway
Explore the teaching example independently of the simulator. Each step reveals an operation, data relationship or calculated state. The Simulation view has separate editable inputs.
Step 1 of 5 · Distribution
Distribution
Distribution
kali-linux · WSL 2
Architecture
Distribution
kali-linux · WSL 2
Architecture
x86_64
Executable check
Distribution
kali-linux · WSL 2
Architecture
x86_64
Executable check
7 of 7 tools found
Scope
Distribution
kali-linux · WSL 2
Architecture
x86_64
Executable check
7 of 7 tools found
Scope
Loopback only
Readiness
Distribution
kali-linux · WSL 2
Architecture
x86_64
Executable check
7 of 7 tools found
Scope
Loopback only
Readiness
Fixture ready
Teaching example only; inspect live calculations or real practical evidence separately.
Recall the concept before revealing its explanation.
0 / 3 revealed
K01 · 01 / 08What is the approved scope?Reveal explanation
Engineering explanation
Only owned local training services and synthetic data.
A distribution installation alone does not install the course toolchain.
K01 · 03 / 08What local security-tool and authorization prerequisites must be checked?Reveal explanation
Engineering explanation
Complete Kali setup and verify_kali.sh first. Use PowerShell for WSL commands; use Kali Bash for Linux commands.
K01 · 04 / 08Why limit security experiments to the provided local fixtures?Reveal explanation
Engineering reasoning
The exercises are designed for authorized isolated resources; scope limits unintended impact on unrelated systems.
K01 · 05 / 08Why record the Linux distribution and tool versions?Reveal explanation
Engineering reasoning
It makes the environment reproducible and helps distinguish missing dependencies from a failed security control.
K01 · 06 / 08A Kali lab is prepared. Select every technically valid statement.
A. Use the authorized isolated lab scope.
B. Check required dependencies before interpreting results.
C. A missing dependency is evidence that a security control failed.
D. Permission for a local lab authorizes testing unrelated systems.Reveal explanation
Applied scenario
Correct: A. Use the authorized isolated lab scope.; B. Check required dependencies before interpreting results.
K01 · 07 / 08In K01 · Environment & scope, which command or code executes the final documented practical action?Reveal explanation
K01 · 08 / 08For K01 · Environment & scope, which actual output or state confirms the prescribed practical run succeeded, and what does it not establish?Reveal explanation
Evidence & acceptance
In PowerShell check wsl --list --verbose and enter kali-linux; do not reinstall an existing distro. Copy extracted kali-labs into Linux home using explorer.exe .; run bash setup_kali.sh then bash verify_kali.sh in that folder as normal user. Require Python cryptography and Paho 2 support. Do not use sudo for lab.py init.
Loading experiment-specific apparatus…Previous model / additional reference tools
Simulation task
Verify Kali dependencies and authorized training scope.
Explore the model using its own controls. Record a prediction before changing a condition. Compare the reference with a changed condition, then use the Experiment tab for the procedure, acceptance criteria and notebook. Model outputs and physical observations must remain separate.
Predict the outcome, change either condition, then compare the modeled decision. This illustrates the selected control criteria, not a full implementation or measurement.
01 · InputEnvironment readiness
→
02 · Evaluate2 of 2 checks
→
03 · OutcomeConditions met
CONTROL PATH · VIRTUAL INSTRUMENTCONDITIONS MET
Signal path illustrates a decision rule. The indicator is not actual network traffic, cryptographic verification or device measurement.
Proceed with authorized local practical
Reference conditions selected.
Reference conditions selected.
Complete the actual local Kali procedure below. The workbench does not send packets, perform cryptography, inspect a device or establish that real controls are effective.
Closed two-condition teaching fixture; actual security validation requires the practical procedure.
Loading instrument…
Awaiting model display.
Experimental instrumentation · A/B
Compare two model conditions
Capture a baseline, change one experimental condition, run the model if required and capture the comparison. Snapshots contain visible controls and display text, not physical sensor readings. Review before exporting.
Complete Kali setup and verify_kali.sh first. Use PowerShell for WSL commands; use Kali Bash for Linux commands.
Experimental protocol
Prerequisites
None beyond Kali setup
Procedure
Compare installed distribution, version and dependencies.
Acceptance
WSL 2 and all dependency checks pass; if not, stop.
Evidence
Tool versions and permitted target scope.
Standards link
Device identification / baseline configuration
Discussion
Why is WSL not a security boundary?
Run & verify — acceptance checklist
Build verification: Installer shell syntax checked; actual Kali WSL/APT pending.
In PowerShell check wsl --list --verbose and enter kali-linux; do not reinstall an existing distro. Copy extracted kali-labs into Linux home using explorer.exe .; run bash setup_kali.sh then bash verify_kali.sh in that folder as normal user. Require Python cryptography and Paho 2 support. Do not use sudo for lab.py init.
Record the actual output, source (mock/model or physical), and any error. A missing tool, timeout or untested external service is not a pass.
Before the simulation or practical, solve both experiment-specific tasks. List the given inputs, show the intermediate calculation or state trace, identify the expected observation, and state a limitation. Show formulas and intermediate calculations where relevant, or draw the requested state/sequence diagram. These are independent classroom fixtures; where they differ from the reference configuration below, do not treat them as measured values. Compare your predictions with the corresponding experiment afterwards.
01 · Predict and derive using the given inputs
Construct a readiness matrix for WSL2, required commands and loopback-only scope. Explain the decision when a required tool is missing.
Engineering method — Environment readiness combines tool availability, runtime and scope independently. A successful tool version check says nothing about authorization. For a local-only exercise, a missing packet-analysis tool means that activity is blocked, not that an external target may be used. Apply this method to the assigned values independently; compare your reasoning with the relevant simulator or practical implementation.
02 · Compare or justify using evidence
Classify three requests: localhost owned service, instructor-approved isolated VM and unrelated Internet host. Explain which may proceed and what evidence of authorization is needed.
Engineering method — Environment readiness combines tool availability, runtime and scope independently. A successful tool version check says nothing about authorization. For a local-only exercise, a missing packet-analysis tool means that activity is blocked, not that an external target may be used. Apply this method to the assigned values independently; compare your reasoning with the relevant simulator or practical implementation.
03 · Troubleshooting
Troubleshooting · Independent work
Kali WSL2 has python3 and openssl but lacks the required broker; a classmate suggests a public broker. Propose a safe readiness decision.
Troubleshooting — Environment readiness combines tool availability, runtime and scope independently. A successful tool version check says nothing about authorization. For a local-only exercise, a missing packet-analysis tool means that activity is blocked, not that an external target may be used. Apply this method to the assigned values independently; compare your reasoning with the relevant simulator or practical implementation.
Work is saved locally when browser storage is available. Export it for submission; no remote upload or automatic grade is assigned.
Expanded independent theoretical exercise bank
Progress from calculation and interpretation to diagnosis and controlled engineering design. Complete the questions without opening the simulation first; show intermediate steps.
Intermediate · Explain a changed-input result
Independent theoretical exercise · K01-01
Use the reference configuration (Selected distribution = kali-linux; WSL version = 2; Host architecture = x86_64; Unavailable command = none; Requested lab scope = loopback), but change Selected distribution = Ubuntu-24.04. The model reports Ready for toolkit = No. Explain the governing rule and assumptions that make this output plausible; identify an independent verification method.
Intermediate · Interpret a state transition
Independent theoretical exercise · K01-02
The reference model reports Ready for toolkit: Yes. Under Selected distribution = Ubuntu-24.04 it reports No. Explain which configured condition changed and what the two outputs establish, and what they do not establish.
Intermediate · Interpret a technical trace
Independent theoretical exercise · K01-03
For Host architecture = aarch64, the model supplies this excerpt from Executable discovery:
Command · Modeled command -v
python3 · /usr/bin/python3
openssl · /usr/bin/openssl
nmap · /usr/bin/nmap
tcpdump · /usr/bin/tcpdump
mosquitto · /usr/bin/mosquitto
Count rows whose Modeled command -v value is exactly “/usr/bin/python3”, and identify the displayed row numbers. Explain what the count describes.
Advanced · Reverse reasoning
Independent theoretical exercise · K01-04
An observation is Host architecture = aarch64. Candidate A uses Selected distribution = kali-linux; WSL version = 2; Host architecture = x86_64; Unavailable command = none; Requested lab scope = loopback. Candidate B changes the listed settings (Host architecture = aarch64) and keeps the remaining settings fixed. Which is consistent with the observation? If both can explain it, say what additional evidence is required.
Advanced · Diagnose a reported mismatch
Independent theoretical exercise · K01-05
A student configures Unavailable command = python3 while preserving all other reference settings, but copies the reference report of Tools available = 7. Evaluate whether the report is justified. Identify the first configuration/output check to perform.
Challenging · Design a controlled verification
Independent theoretical exercise · K01-06
Design a controlled comparison for K01 · Environment & scope using reference Selected distribution = kali-linux; WSL version = 2; Host architecture = x86_64; Unavailable command = none; Requested lab scope = loopback and test Selected distribution = Ubuntu-24.04. Specify the changed setting(s), measured metric Ready for toolkit, controls, repetitions, an acceptance check and what evidence can distinguish an actual implementation from the model.
Step-by-step experimental procedure
Determine whether the selected WSL distribution, tools and approved scope satisfy the course preflight.
1 · Reference workbench configuration
Use the named reference workbench and its reference inputs. Additional live instruments may have different controls; use the matching instrument. Record virtual and practical results separately.
Selected distributionkali-linux
WSL version2
Host architecturex86_64
Unavailable commandnone
Requested lab scopeloopback
2 · Perform the investigation in order
Select Kali Linux, WSL 2, x86_64 and all tools. Compare the command inventory with the setup wizard.
Switch WSL version to 1; record the version check and do not mistake x86_64 for a Raspberry Pi.
Remove tcpdump from the fixture and identify the single missing prerequisite.
Select external scope and verify that the approved target check fails; return to loopback.
In your own PowerShell and Kali terminals, execute the preserved inventory commands and enter the actual distribution and command paths separately.
3 · Compare controlled trials
Trial
Independent change
Expected check
Observation
Approved Kali
Use reference inputs above
Ready for toolkit: Yes
Record actual result
WSL 1
WSL version = 1
Ready for toolkit: No
Record actual result
Missing tcpdump
Unavailable command = tcpdump
Tools available: 6
Record actual result
Outside scope
Requested lab scope = external
Ready for toolkit: No
Record actual result
4 · Analyze and report
Explain which failure is a setup issue and which is a scope issue.
Required evidence: Completed inventory plus actual wsl --list --verbose output.
Model boundary: This is a fictional inventory, not access to your computer.
Controlled investigation · reproducible evidence
Method. Use the existing reference workbench configuration and the named controlled changes below. A controlled variable stays fixed while the independent variable is intentionally changed; the dependent variable is the resulting observed output. First predict each trial from the Concepts page. Run the baseline, then change only the specified setting and record the outcome. For deterministic traces one execution per case and a repeated verification are sufficient; for timing or stochastic measurements repeat at least five times, recording each run, median and range. Reset to the reference state between independent comparisons.
Trial
Independent change
Dependent observation
Approved Kali
Use reference inputs above
Record actual outcome and units
WSL 1
WSL version = 1
Record actual outcome and units
Missing tcpdump
Unavailable command = tcpdump
Record actual outcome and units
Outside scope
Requested lab scope = external
Record actual outcome and units
Evidence: attach the completed comparison table, one trace or screenshot per condition, and actual practical terminal/hardware evidence where applicable. Explain any prediction mismatch and distinguish modeled behavior from measured results.
Loading laboratory-specific procedure…
Python / Google Colab notebook
Bounded notebook reference exercise; original device/service commands are reference-only. Validated locally in a fresh Jupyter kernel. Download, then upload to Google Colab.
Objective: Identify your Kali WSL distribution and approved target boundary.
Compare WSL distribution versions and tool availability.
ACTION 01 / 02
PowerShell (Windows)
wsl--list--verbosewsl-dkali-linux
✓ Expected: The selected Linux shell opens; on first launch complete account creation. The prompt ends in $. No physical board is connected by this command.Expected result for each action (2)
wsl--list--verboseA table of installed distributions, STATE and VERSION appears. Verify the intended distribution is listed with VERSION 2.
wsl-dkali-linuxThe selected Linux shell opens; on first launch complete account creation. The prompt ends in $. No physical board is connected by this command.
✓ Expected: Python 3 version is printed; the exact version depends on Kali’s installed packages.Expected result for each action (4)
uname -aLinux kernel details; WSL kernel is not a Pi kernel.
cat /etc/os-releaseKali Linux distribution information, including ID=kali and rolling-release metadata.
command-vpython3opensslnmaptcpdumpmosquittomosquitto_pubmosquitto_subPaths for the requested installed executables are printed; any missing tools must be installed before continuing.
python3--versionPython 3 version is printed; the exact version depends on Kali’s installed packages.
Experimental notebook
Record your own results. Values are not prefilled or independently verified.
Method and implementation
Review the implementation after attempting the practical steps.
Execution boundary · method and source
Use one Kali distribution for both test client and server. WSL distributions can share a network namespace; do not rely on a distribution boundary for security. Use only the specific loopback ports you own.
Verification and notebook
Expected observation / verification
Record distribution/version and available tools. No scanning outside the two isolated lab ports.
Engineering discussion
What does WSL isolation provide, and why is it not a separate physical attack network?
Download this notebook and open Google Colab. Select File → Upload notebook and choose the downloaded .ipynb.
Read the Markdown instructions before each executable cell. Use a Python runtime, run cells from top to bottom, and resolve imports if necessary.
Perform the baseline and controlled changes. Save the notebook with actual outputs and your written interpretation.
Execution scope: Default computational cells passed isolated local Python execution; physical equipment and live services require separate verification.
01Instructions · Markdown
# K01 · K01 · Environment & scope
**PSUT IoT Engineering Studio — Dr. Mohammad Alja’afreh**
## Introduction
Verify Kali dependencies and authorized training scope.
## How to run
1. Download this notebook from the laboratory page. Open Google Colab → File → Upload notebook.
2. Select a Python CPU runtime. Run cells from top to bottom using Shift+Enter, or Runtime → Run all.
3. Read the printed observations and assertions. Change one parameter at a time and rerun the relevant cell.
4. Save your own outputs and compare them to the portal Experiment tab.
**Execution boundary:** Bounded notebook reference exercise; original device/service commands are reference-only. Do not run the hardware or service commands in Colab. No real credentials are needed. The notebook is self-contained.
02Instructions · Markdown
## Experiment-specific preparation
Verify Kali dependencies and authorized training scope.
**Reference procedure (use the matching simulator/WSL tool where named, not an unrelated service):**
1. Select Kali Linux, WSL 2, x86_64 and all tools. Compare the command inventory with the setup wizard.
2. Switch WSL version to 1; record the version check and do not mistake x86_64 for a Raspberry Pi.
3. Remove tcpdump from the fixture and identify the single missing prerequisite.
4. Select external scope and verify that the approved target check fails; return to loopback.
5. In your own PowerShell and Kali terminals, execute the preserved inventory commands and enter the actual distribution and command paths separately.
**Evidence:**
**Boundary:**
03Instructions · Markdown
## 1. Objectives and reference condition
- Reproduce the specific computational mechanism in this laboratory.
- Inspect the output, compare the reference condition with a changed or rejected condition where implemented, and explain any discrepancy.
- Distinguish actual local Python execution from mock, physical and external-service observations.
## 2. Environment check
04Python · executable cell
PYTHON · Code cell
# =====================================================================
# K01 | Code cell 01 | K01 · Environment & scope
# Purpose: 1. Objectives and reference condition - Reproduce the specific computational mechanism in this laboratory. - Inspect the output, compare the reference condition with a changed or rejected condition where implem
# Inputs: the explicit fixture/settings below and any preceding cell state.
# Output: inspect printed values, returned records or assertions; record evidence.
# =====================================================================
import sys
print("Python",sys.version.split()[0])
# Check the expected invariant so a mismatch fails visibly instead of appearing successful.
assert sys.version_info >= (3,10)
## 3. Implementation
Read the comments and variable definitions before execution. Assertions must pass; inspect values, not just completion.
06Python · executable cell
PYTHON · Code cell
# =====================================================================
# K01 | Code cell 02 | K01 · Environment & scope
# Purpose: 3. Implementation Read the comments and variable definitions before execution. Assertions must pass; inspect values, not just completion.
# Inputs: the explicit fixture/settings below and any preceding cell state.
# Output: inspect printed values, returned records or assertions; record evidence.
# =====================================================================
import sys,platform,shutil
print(platform.platform(),sys.version.split()[0]);print({x:bool(shutil.which(x)) for x in ['openssl','nmap','mosquitto','tcpdump']})
# Check the expected invariant so a mismatch fails visibly instead of appearing successful.
assert sys.version_info>=(3,10)
print('Missing tools require the separate Kali setup; not a readiness PASS.')
## Original portal implementation (reference only)
These are the actual laboratory snippets. They are retained for comparison; follow the portal setup for WSL, hardware or services. They are **not** executed by Run all.
```bash
uname -a
cat /etc/os-release
command -v python3 openssl nmap tcpdump mosquitto mosquitto_pub mosquitto_sub
python3 --version
```
08Instructions · Markdown
## 4. Results and analysis
Record the actual output and whether the assertions pass. Identify a parameter to vary, state your prediction, repeat the reference calculation, then explain the changed result.
| Trial | Configuration | Observation | Interpretation |
|---|---|---|---|
| A | Reference | | |
| B | One controlled change | | |
| C | Reference repeat | | |
**Limitations:** Bounded notebook reference exercise; original device/service commands are reference-only. Notebook success does not certify external equipment or services.
09Instructions · Markdown
## Guided reasoning and evidence
A controlled comparison changes one independent input while keeping the other relevant inputs fixed; the dependent variable is the recorded output. Use this lab’s reference condition above.
**Independent task:** 2. Switch WSL version to 1; record the version check and do not mistake x86_64 for a Raspberry Pi. Record the named input, prediction, actual output and one limitation; restore the original condition and repeat.
| Trial | Input/configuration | Prediction | Observation | Evidence / limitation |
|---|---|---|---|---|
| A | Reference | | | |
| B | Changed input | | | |
| A repeat | Reference | | | |
A conclusion is supported only when it cites the recorded values or observed states and explains them with the experiment theory.
Shared research workbenches · network designer & advanced studiesConcurrent-device simulation & Monte Carlo research