forked from leebaird/discover
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdirectObjectRef.sh
More file actions
executable file
·41 lines (31 loc) · 1020 Bytes
/
directObjectRef.sh
File metadata and controls
executable file
·41 lines (31 loc) · 1020 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/usr/bin/env bash
# by Lee Baird (@discoverscripts)
clear
f_banner
echo -e "${BLUE}Using Burp, authenticate to a site, map & Spider, then log out.${NC}"
echo -e "${BLUE}Target > Site map > select the URL > right click > Copy URLs in${NC}"
echo -e "${BLUE}this host. Paste the results into a new file.${NC}"
echo
echo -n "Enter the location of your file: "
read -r LOCATION
# Check for no answer
if [ -z "$LOCATION" ]; then
f_error
fi
# Check for wrong answer
if [ ! -f "$LOCATION" ]; then
f_error
fi
###############################################################################################################################
while read -r i; do
curl -sk -w "%{http_code} - %{url_effective} \\n" "$i" -o /dev/null 2>&1 | tee -a tmp
done < "$LOCATION"
cat tmp | sort -u > DirectObjectRef.txt
mv DirectObjectRef.txt "$HOME"/data/DirectObjectRef.txt
rm tmp
echo
echo "$MEDIUM"
echo
echo "[*] Scan complete."
echo
echo -e "The new report is located at ${YELLOW}$HOME/data/DirectObjectRef.txt${NC}"