Lab 1: Challenges
This week we have some hacking challenges to complete.
Task 1: The Linux Trainer.
We will be using a lot of Linux in the module, (and you will also be using it in the OS module), being comfortable with the command line is going to be a great help from next week.
The Linux trainer is a wargame style set of levels based around basic Linux command line. If you have done anything like Bandit by over the wire, or IO on netgarage you will see where I got the inspiration from
Task: Linux Trainer
You don't need to it all this week, but the Linux trainer should help you get back up to speed with some basic Linux commands.
I know we ran through the Linux trainer in the first year, but this is an opportunity to remind yourself (and if you have done it all-ready, its going to be easy right...)
Instructions
Once you have a working version of Docker you can start the Linux trainer using
$ docker run -p 22:22 --name nixtrainer --rm cueh/nixtrainer
After a while you the docker image should start up and you will get the welcome screen.
==============================================================
| |
| CUEH: Linux Trainer |
| |
| To get started SSH into the trainer with: |
| |
| Username: level0 |
| Password: level0 |
| |
| IP address For SSH is 172.17.0.2/16 |
| |
| |
| To exit the trainer you will need to run |
| docker stop nixtrainer |
| |
==============================================================
Important
Docker is now running the SSH service in the foreground of that termnal window. The system hasnt hung, but you will need to use a new termnal window for the next part.
You can now access the challenges using SSH. I like to use the command line, but you can use putty / mobaterm or whatever.
Also, if you are using WSL, (or trying to connect between systems) the IP address given in the header will only work on the host system. Use the actual network address of the host to connect.
ssh level0@172.17.0.2
Follow the instructions to complete all of the levels. We will have a walkthrough of some of the levels in the Lab session.