From 9485647695fe9f34f1461bc2926a419a497ef926 Mon Sep 17 00:00:00 2001 From: Muhammad Daffa <36522826+MD15@users.noreply.github.com> Date: Fri, 10 Apr 2020 18:58:49 +0700 Subject: [PATCH] Create subversion.sh --- Exposed Source Code/subversion.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Exposed Source Code/subversion.sh diff --git a/Exposed Source Code/subversion.sh b/Exposed Source Code/subversion.sh new file mode 100644 index 0000000..d37daea --- /dev/null +++ b/Exposed Source Code/subversion.sh @@ -0,0 +1,21 @@ +#!/bin/bash +# .svn Checker +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}/.svn/entries" ) =~ 'svn://' ]]; then + echo -e "\e[32m[+] FOUND: ${SITE}.svn/entries" + else + echo -e "\e[31m[-] NOT FOUND: ${SITE}" + fi + +done + +