From c1d65afac94fd43f79f4f6189fb273866219ceaa Mon Sep 17 00:00:00 2001 From: Thomas Vanbesien Date: Thu, 26 Mar 2026 22:33:53 +0100 Subject: Add information gathering via hidden directory crawling solution --- Information gathering 2/Resources/crawl.bash | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 Information gathering 2/Resources/crawl.bash (limited to 'Information gathering 2/Resources/crawl.bash') diff --git a/Information gathering 2/Resources/crawl.bash b/Information gathering 2/Resources/crawl.bash new file mode 100755 index 0000000..13f729c --- /dev/null +++ b/Information gathering 2/Resources/crawl.bash @@ -0,0 +1,20 @@ +#!/usr/bin/bash + +get_next_step() { + url="$1" + curl --follow --silent "$url" | grep '^ 0)); do + current="${urls[0]}" + urls=("${urls[@]:1}") + + if [[ "${current[i]: -1}" == / ]]; then + mapfile -t next_steps < <(get_next_step "$current") + urls+=("${next_steps[@]/#/$current}") + else + echo -en "$current\t" + curl --silent "$current" + fi +done -- cgit v1.2.3