From 4329e28af7e1c26a2fdf2a2dced03d2846725826 Mon Sep 17 00:00:00 2001 From: Muhammad Daffa <36522826+MD15@users.noreply.github.com> Date: Fri, 10 Apr 2020 18:57:44 +0700 Subject: [PATCH] Create bazaar.sh --- Exposed Source Code/bazaar.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Exposed Source Code/bazaar.sh diff --git a/Exposed Source Code/bazaar.sh b/Exposed Source Code/bazaar.sh new file mode 100644 index 0000000..2555cb5 --- /dev/null +++ b/Exposed Source Code/bazaar.sh @@ -0,0 +1,19 @@ +#!/bin/bash +# .bzr Mass Scanner +LISTS=$1 + +if [[ ! -f ${LISTS} ]]; then + echo "ERROR: ${LISTS} not found" + echo "usage: bash $0 list.txt" + exit +fi + +for SITE in $(cat $LISTS); +do + if [[ $(curl --connect-timeout 3 --max-time 3 -kLs "${SITE}/.bzr/README" ) =~ 'This is a Bazaar control directory.' ]]; then + echo -e "\e[32m[+] FOUND: ${SITE}.bzr + else + echo -e "\e[31m[-] NOT FOUND: ${SITE}" + fi + +done