LecLabs 1.0 Intro and Linux


Intro to Programming Languages.

[ ← Module List ]

This module introduces the basics of Linux, including its history, architecture, and common commands. It is designed for beginners who are new to Linux and want to understand its fundamental concepts.


Challenges

Lecture video on Course Environment

Prior to starting this level, enter your ASU ID by ctrl-clicking on here, switching tabs, enter your student ID, and click update.

If pwn.college does not have your student id, then the grades will not properly sync with Canvas

CTRL-Click Here for Follow Along Video

To complete the lab, do the following steps

  • Start the challenge
  • Cntrl-click on Workspace
  • Switch tabs to VSCode Workspace
  • Open the folder to /home/hacker/cse240 following the commands in VSCode
  • Right click on the left side and select "open integrated terminal" or use `ctrl-~` to open a terminal. The flag should be shown in the termianl.
  • Type in `cat /flag`
  • Copy and paste flag to pwnc.college website

Lecture video on Linux Shells

Lecture video on Linux File System

Lecture video on Executing Programs

Lecture video on Common Commands

For this level we will find the flag in the /challenge folder using `cd` and `ls` commands

CTRL-Click Here for Follow Along Video

For this level, we will find the flag in one of the `.txt` files located in the /challenge directory.

To find the flag in the files, you will need to use the `grep` program.

CTRL-Click Here for Follow Along Video

Lecture video on Redirection of I/O

The getflag program in the /challenge directory will give you the flag when you send the lines from `/challenge/text` that contain a `q` or an `x` only.

The getflag program is reading from standard input so you can use the proper `grep` command followed by | and then the path to the `getflag` program.

Remeber to execute the file you must use the relative or absolute path because getflag's directory is not in the PATH environmental variable.

CTRL-Click Here for Follow Along Video

Lecture video on Regular Expressions

Lecture video on Misc Linux

Lecture video on Testing Code on pwn.college

In this level, you will write 4 user test cases for the provided C program.

CTRL-Click Here for Follow Along Video

The C program, located at ~/cse240/labw/lab02/04/main.c.
  • For each of the user tests, the test must pass the program when modelGood is used and fail the program when modelBad is used
  • The user tests are located in ~/cse240/labw/lab02/04/user_tests/
    • utest2.4.1 will test the first if statement
    • utest2.4.2 will test the second if statement
    • utest2.4.3 will test the third if statement
    • utest2.4.4 will test the fourth if statement
  • When all the test cases pass the modelGood and fail the modelBad the tester will reveal the flag.
HELPFUL HINT: if you have navigated away from your project folder, you can quickly get back by using the alias `cdhw`

30-Day Scoreboard:

This scoreboard reflects solves for challenges in this module after the module launched in this dojo.

Rank Hacker Badges Score