Beruflich Dokumente
Kultur Dokumente
A. Bring up 2 hosts (one for the victim service, one for the aggressor) 0.5 points
• Go to the EC2 console (AWS console > Services > EC2)
• Start 2 t2.micro Amazon Linux AMI 2016.09.1 (HVM) instances with default settings
o In Step 6: Configure Security Group
▪ for the first instance choose Create a new security group: name pbs-at-scale-victim-sg
▪ for the second instance choose Create a new security group: name pbs-at-scale-aggressor-sg
▪ for both, in order for you to be able to log in using ssh, change the default rule to allow SSH on
port 22 from Anywhere (Hint: column Source)
o When prompted for the key pair, choose the existing one (qwikLABS…)
• To see your instances launching go to EC2 Dashboard > Instances.
• Wait for the victim & aggressor hosts’ Status Checks to complete (you should see: ✓ 2/2 checks passed)
o you can tell your hosts apart using their attached security groups (see rightmost column, Security Groups)
o you can also assign them names by editing the Name column (leftmost column)
#!/usr/bin/env python
print('Content-type: text/html\n')
print('<title>Hello World</title>')
1
Cloud Shape Your Idea
o make the file executable by running
$ chmod +x service.py