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

Connect with SSH

Link your SSH key, then connect with: ssh hacker@pwn.college

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

Connect with SSH

Link your SSH key, then connect with: ssh hacker@pwn.college

Lecture video on Linux Shells

Connect with SSH

Link your SSH key, then connect with: ssh hacker@pwn.college

Lecture video on Linux File System

Connect with SSH

Link your SSH key, then connect with: ssh hacker@pwn.college

Lecture video on Executing Programs

Connect with SSH

Link your SSH key, then connect with: ssh hacker@pwn.college

Lecture video on Common Commands

Connect with SSH

Link your SSH key, then connect with: ssh hacker@pwn.college

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

CTRL-Click Here for Follow Along Video

Connect with SSH

Link your SSH key, then connect with: ssh hacker@pwn.college

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

Connect with SSH

Link your SSH key, then connect with: ssh hacker@pwn.college

Lecture video on Redirection of I/O

Connect with SSH

Link your SSH key, then connect with: ssh hacker@pwn.college

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

Connect with SSH

Link your SSH key, then connect with: ssh hacker@pwn.college

Lecture video on Regular Expressions

Connect with SSH

Link your SSH key, then connect with: ssh hacker@pwn.college

Lecture video on Misc Linux

Connect with SSH

Link your SSH key, then connect with: ssh hacker@pwn.college

Lecture video on Testing Code on pwn.college

Connect with SSH

Link your SSH key, then connect with: ssh hacker@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/lab10/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/lab10/04/user_tests/
    • utest19.0.1 will test the first if statement
    • utest19.0.2 will test the second if statement
    • utest19.0.3 will test the third if statement
    • utest19.0.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`

Connect with SSH

Link your SSH key, then connect with: ssh hacker@pwn.college

30-Day Scoreboard:

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

Rank Hacker Badges Score