Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
libre
utils
Commits
5edd20e1
Commit
5edd20e1
authored
Apr 06, 2020
by
Michał "rysiek" Woźniak
Browse files
Update sni-crawler.sh
parent
15b2c4df
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
sni-crawler.sh
sni-crawler.sh
+2
-2
No files found.
sni-crawler.sh
View file @
5edd20e1
...
...
@@ -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
)
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment