Commit 5edd20e1 authored by Michał "rysiek" Woźniak's avatar Michał "rysiek" Woźniak
Browse files

Update sni-crawler.sh

parent 15b2c4df
......@@ -10,7 +10,7 @@
#
# $1 - URL to crawl
# $2 - IP addresses to crawl through, comma-separated (no spaces)
# $3 - depth levels (wget's "-l" flag, basically)
# $3 - depth levels (wget's "-l" flag, basically; optional, default: 2)
CRAWLURL="$1"
CRAWLDOMAIN="$( echo "$CRAWLURL" | sed -r -e 's#^https?://([^/]+)/.*#\1#' )"
......@@ -18,7 +18,7 @@ CRAWLDOMAIN="$( echo "$CRAWLURL" | sed -r -e 's#^https?://([^/]+)/.*#\1#' )"
# TODO: reality checks
CRAWLIPS="${2//,/ }"
CRAWLDEPTH="$3"
CRAWLDEPTH="${3:-2}"
CRAWLDIR="$( mktemp -d "/tmp/$0".XXXX )"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment