An exercise to illustrate a security flaw.
You can display your public SSH key in your terminal with the following command:
$> cat ~/.ssh/id_rsa.pub
You should copy the output of this command. You will need it later.
You will launch a virtual server to deploy the vulnerable application.
-
Access the Azure portal and go to the Virtual machines section:
-
Create a new virtual machine with these settings, then go to the Disks settings:
-
Keep the default Disks settings.
Go to the Networking settings:
-
In the Networking settings, enable the option to automatically Delete public IP and NIC when VM is deleted:
-
Create the VM.
Follow the instructions in this repository.
Be sure to do this on the gallery server you just launched. You can connect
to it with ssh gallery@W.X.Y.Z
(where W.X.Y.Z
is the IP address of the
server, which you can find in the Azure portal).