瀏覽代碼

Updated WAAP Lab Scripts

main
kusum 7 月之前
父節點
當前提交
c464ef4a4c
共有 2 個文件被更改,包括 18 次插入4 次删除
  1. 14
    0
      GSAutomation/waap-labs/waap_urlloadshedding.sh
  2. 4
    4
      GSAutomation/waap-labs/waap_urlprotection.sh

+ 14
- 0
GSAutomation/waap-labs/waap_urlloadshedding.sh 查看文件

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

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

# Construct URLs with the user-provided prefix
url="https://${prefix}.gslab-juiceshop.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

+ 4
- 4
GSAutomation/waap-labs/waap_urlprotection.sh 查看文件

@@ -4,8 +4,8 @@
read -p "Enter the prefix for the URL: " prefix

# Construct URLs with the user-provided prefix
url="https://${prefix}.gslab-juiceshop.com/rest/admin/application-configuration"
url="https://${prefix}.gslab-juiceshop.com/api/Quantitys/"

# Generating GET requests for /rest/admin/application-configuration
echo "Generating GET requests for /rest/admin/application-configuration"
siege -c150 -t30s $url
# Generating GET requests for api/Quantitys/
echo "Generating GET requests for api/Quantitys/"
siege -c25 -t30s $url

Loading…
取消
儲存