瀏覽代碼

WAAP lab scripts for partners

main
kusum 2 月之前
父節點
當前提交
4a7d7c73ac

+ 11
- 0
PartnerAutomation/waap-labs/waap_partner_ratecontrols.sh 查看文件

@@ -0,0 +1,11 @@
#!/bin/bash

# Prompt the user for the value of the prefix
read -p "Enter the prefix for the hostname: " prefix

# Construct URLs with the user-provided prefix
url="https://${prefix}.appsec-akaed.com/rest/user/whoami"

# Generating GET requests for /rest/user/whoami
echo "Generating GET requests for /rest/user/whoami"
siege -c150 -t10s $url

+ 12
- 0
PartnerAutomation/waap-labs/waap_partner_slowpost.sh 查看文件

@@ -0,0 +1,12 @@
#!/bin/bash

# Prompt user for the prefix value
read -p "Enter the prefix for the hostname: " prefix


# Run slowhttptest with the specified prefix
echo "Generating Slow POST requests for homepage"
slowhttptest -B \
-u "http://${prefix}.appsec-akaed.com/" \
-d "appsec-akaed.com.edgekey-staging.net:80" \
-r 4 -c 2

+ 14
- 0
PartnerAutomation/waap-labs/waap_partner_urlloadshedding.sh 查看文件

@@ -0,0 +1,14 @@
#!/bin/bash

# Prompt the user for the value of the prefix
read -p "Enter the prefix for the hostname: " prefix

# Construct URLs with the user-provided prefix
url="https://${prefix}.appsec-akaed.com/api/Quantitys/"

# Set the User-Agent string to the latest version of Ruby
user_agent="Ruby/3.2.2"

# Generating GET requests for api/Quantitys/ with Ruby User-Agent
echo "Generating GET requests for api/Quantitys/ with Ruby User-Agent"
siege -c25 -t30s --header="User-Agent: $user_agent" $url

+ 11
- 0
PartnerAutomation/waap-labs/waap_partner_urlprotection.sh 查看文件

@@ -0,0 +1,11 @@
#!/bin/bash

# Prompt the user for the value of the prefix
read -p "Enter the prefix for the hostname: " prefix

# Construct URLs with the user-provided prefix
url="https://${prefix}.appsec-akaed.com/api/Quantitys/"

# Generating GET requests for api/Quantitys/
echo "Generating GET requests for api/Quantitys/"
siege -c25 -t30s $url

Loading…
取消
儲存