From 94ae331179cf22df44f73763307240b29e79d126 Mon Sep 17 00:00:00 2001 From: neotycoder Date: Wed, 25 Feb 2015 23:22:54 -0800 Subject: [PATCH 1/4] bash shell script to check tech on website Simple bash script to check to see if a site is using Google Analytics or Dyn DNS. --- scrapeTech.sh | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 scrapeTech.sh diff --git a/scrapeTech.sh b/scrapeTech.sh new file mode 100644 index 0000000..f82d6e4 --- /dev/null +++ b/scrapeTech.sh @@ -0,0 +1,44 @@ +#!/bin/sh +# Author: Ty Lim +# Date: 02-23-2015 +# Description: Simple little shell bash shell script to scrape info on a site that's either using Google Analytics, or utilizing Dyn DNS. + +function readUrl(){ +read -p "Enter a URL: " url + +} + +function searchDns() { +dnsSearch=`whois $url | grep 'Name Server:' | grep -i dynect.net` +if [ "${dnsSearch}" ]; then + echo "Using Dyn: Yes" +else + echo "Using Dyn: No" +fi + +} + +function searchCurl() { +result=`curl -s $url | grep -F ".google-analytics.com/ga.js"` +result2=`curl -s $url | grep -F "ga.async = true"` +if [[ -n "$result" ]]; then + if [[ -n "$result2" ]]; then + echo "Using GA: Yes" + fi +else + echo "Using GA: No" + +fi + +} + + +function main(){ + +readUrl +searchCurl $url +searchDns $url + +} +######### MAIN ####### +main From fc73cd61db4b690c2bd245528996db1d3a67c576 Mon Sep 17 00:00:00 2001 From: Ty Date: Sat, 23 May 2020 22:37:37 -0700 Subject: [PATCH 2/4] Update createDirectory.py --- createDirectory.py | 1 - 1 file changed, 1 deletion(-) diff --git a/createDirectory.py b/createDirectory.py index fb29126..143dfb5 100644 --- a/createDirectory.py +++ b/createDirectory.py @@ -1,6 +1,5 @@ #!/usr/bin/python -# Author: Ty Lim # Date: 2/4/2015 # File name: createDirectory.py # Python Version: 3.X From 53c89006b64a624ae02a18ecd3fad546878b9af4 Mon Sep 17 00:00:00 2001 From: Ty Date: Sat, 23 May 2020 22:37:54 -0700 Subject: [PATCH 3/4] Update createDirectoryWindows.py --- createDirectoryWindows.py | 1 - 1 file changed, 1 deletion(-) diff --git a/createDirectoryWindows.py b/createDirectoryWindows.py index b2c8cb2..9d12b08 100644 --- a/createDirectoryWindows.py +++ b/createDirectoryWindows.py @@ -1,6 +1,5 @@ #!/usr/bin/python -# Author: Ty Lim # Date: 2/5/2015 # File name: createDirectory.py # Python Version: 2.X, Windows From 016ad33045fd102ef7d123afb2be1782843b8f33 Mon Sep 17 00:00:00 2001 From: Ty Date: Sat, 23 May 2020 22:38:11 -0700 Subject: [PATCH 4/4] Update scrapeTech.sh --- scrapeTech.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/scrapeTech.sh b/scrapeTech.sh index f82d6e4..31ccbbb 100644 --- a/scrapeTech.sh +++ b/scrapeTech.sh @@ -1,5 +1,4 @@ #!/bin/sh -# Author: Ty Lim # Date: 02-23-2015 # Description: Simple little shell bash shell script to scrape info on a site that's either using Google Analytics, or utilizing Dyn DNS.