Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no issue, just thank you #8

Open
bdmorin opened this issue May 31, 2022 · 0 comments
Open

no issue, just thank you #8

bdmorin opened this issue May 31, 2022 · 0 comments

Comments

@bdmorin
Copy link

bdmorin commented May 31, 2022

I've been using this app for ~4 years now and it still stuns me the simplicity, yet power I get out of of it. Thank you.

This is one of my crazy shakedowns (scrubbed)

#!/usr/bin/env bash
source shakedown.lib.20220531.bash

declare -A DIRECTIP
DIRECTIP['staging1.domain.io']='172.24.32.12'
DIRECTIP['staging2.domain.io']='172.24.32.9'
DIRECTIP['prodapp7.domain.io']='10.246.165.101'
DIRECTIP['prodapp8.domain.io']='10.246.165.20'

DIRECTIP['development.domain.io']='172.24.32.8'
DIRECTIP['integ.domain.io']='172.24.32.21'
DIRECTIP['integration.domain.io']='172.24.32.16'
DIRECTIP['testing1.domain.io']='172.24.32.18'
DIRECTIP['testing2.domain.io']='172.24.32.20'
DIRECTIP['testing3.domain.io']='172.24.32.19'
DIRECTIP['testing4.domain.io']='172.24.32.23'
DIRECTIP['testing5.domain.io']='10.246.165.62'
DIRECTIP['training.domain3.com']='172.24.32.13'

TESTURL=( "domain.com" "www.domain.com" )

# Color variables
red='\033[0;31m'
green='\033[0;32m'
yellow='\033[0;33m'
blue='\033[0;34m'
magenta='\033[0;35m'
cyan='\033[0;36m'
# Clear the color after that
clear='\033[0m'

# Color variables
bg_red='\033[0;41m'
bg_green='\033[0;42m'
bg_yellow='\033[0;43m'
bg_blue='\033[0;44m'
bg_magenta='\033[0;45m'
bg_cyan='\033[0;46m'


# Loop each url on each host

for IP in "${!DIRECTIP[@]}"; do
  #echo $IP
  #echo ${DIRECTIP[$IP]}
  for URL in ${TESTURL[@]}; do
printf "\n\n${red}Testing${clear}: ${magenta}%s${clear}" "${IP}"
shakedown GET https://${URL} --resolve ${URL}:443:${DIRECTIP[$IP]} -k
  status 301
  header 'Location: https://www.domain2.com/gl/click.do?keycode=418259'
  done


done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant