Validating user input with php

The task we had for this exercise was to create a website that first takes user input then validates the given user input and after submitting then redirects to a page that then serves as a confirmation page. All of this was to be done with PHP and by using sessions. The latter part of the exercise was to store user info in cookies and use that info on another page. I'd also like to point out that while all code works and is valid, as required by the assignment, I wrote this post from memory and not while doing the exercise.

Configuring LAMP with salt (h6)

This exercise had us configuring the entire Linux Apache2 Mariadb Php7.2 development stack for a Linux based machine. I used my Acer Aspire Laptop from previous exercises and a minion named azazel running on Virtualbox with a xubuntu 18.04 LTS OS.


Windows minions H5

Controlling a Windows 10 minion

For the exercise I used my Acer Aspire V laptop and a freshly installed Windows 10 running on virtualbox called "Merihem".

As the Windows was a fresh install I chose to do this step by step from the beginning. First up I needed to figure out which version of salt-minion I needed to install on the Windows. It's extremely important to make sure that both minion and master are running the same version of salt.

Vagrant and Virtualbox with salt (h4)

Exercises were done on my acer aspire V running on a xubuntu 18.04 LTS OS, booted from a live usb-drive (Kingston DataTraveller 16gb) due to the usage of Vagrant (and just to spice things up).

This assignment had us using some linux shell scripting and using Vagrant/Virtualbox to set up a new virtual machine.


This exercise had us create a script that installs salt-minion on the computer instantly.

First I created a folder in which to do my project.

The script I created read

Usin git on xubuntu H3 (written in markdown also available on github no pics)

This was all written in markdown, as the assignment ordered. The machine used for the assigment was my Acer Aspire V laptop running a Xubuntu 18.04 LTS OS. Minions will be reported later on as the exercise goes on.

The minion used was a virtualbox xubuntu 18.04 LTS machine called azazel.

Using salt to automate apache2 and php installation (h2)

(Tiistain ryhmä)

In this exercise we were to create states that did various tasks from installing and configuring apache to configuring demons on our own.

For the exercise I used my Acer Aspire V laptop and my regular xubuntu 18.04 salt-minion running in virtualbox called "azazel".

After booting my laptop and starting virtualbox I tested the connection between my master and my minion with 'sudo salt 'azazel'

Using salt to control a Kali-minion (H1)

Controlling a Kali-minion

The purpose of this exercise was to control a salt-minion with a salt-master and preform a couple of tasks with it.

I chose to create the master on my Acer Aspire V laptop running on a xubuntu 18.04 LTS system, and just for fun I decided to make my Virtualbox machine running a Kali Linux my minion.

C) Creating the master

To create the connection you need to first install the salt-master framework on the machine you chose as the master.

H3 (Installing apache2 with php functionality)

This exercise was about installing apache2 and creating a php compatible website.

Installing Apache2

The first task was to install apache2 and have the user homepage work. The user home page can be found by navigating to your own ip-address and /~username e.g.

The current username can be found via the command 'whoami' and your ip-address with the command 'ip addr'. When you try to connect to the server it does not respond because apache2 is not installed