How can I find subdomains of splunk.com using http reponse?

Clash Royale CLAN TAG#URR8PPP
up vote
1
down vote
favorite
I have sent http request to the "splunk.com" with usin that command
curl -L splunk.com
I got html codes. I want to find subdomains of that website by parsing the html codes.

curl http html
add a comment |Â
up vote
1
down vote
favorite
I have sent http request to the "splunk.com" with usin that command
curl -L splunk.com
I got html codes. I want to find subdomains of that website by parsing the html codes.

curl http html
Please remove your previous duplicate question, cause this one is detailed better.
â RomanPerekhrest
Nov 6 '17 at 16:12
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I have sent http request to the "splunk.com" with usin that command
curl -L splunk.com
I got html codes. I want to find subdomains of that website by parsing the html codes.

curl http html
I have sent http request to the "splunk.com" with usin that command
curl -L splunk.com
I got html codes. I want to find subdomains of that website by parsing the html codes.

curl http html
edited Nov 7 '17 at 14:07
terdonâ¦
123k28231403
123k28231403
asked Nov 6 '17 at 16:04
HAKKI
12
12
Please remove your previous duplicate question, cause this one is detailed better.
â RomanPerekhrest
Nov 6 '17 at 16:12
add a comment |Â
Please remove your previous duplicate question, cause this one is detailed better.
â RomanPerekhrest
Nov 6 '17 at 16:12
Please remove your previous duplicate question, cause this one is detailed better.
â RomanPerekhrest
Nov 6 '17 at 16:12
Please remove your previous duplicate question, cause this one is detailed better.
â RomanPerekhrest
Nov 6 '17 at 16:12
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
1
down vote
accepted
Complex parsing/scaping with xmlstarlet, xmllint and sed tools:
curl -sL "http://splunk.com" | xmlstarlet fo --html --recover 2>/dev/null
| xmllint --html --xpath "//a[contains(@href, '.splunk.com') and not(contains(@href, '//www.'))]/@href" - 2>/dev/null
| tr ' ' 'n' | sed -E 's~^href="https?:[/]+~~; s/.com.*$/.com/' | sort -u
The output:
answers.splunk.com
conf.splunk.com
dev.splunk.com
docs.splunk.com
investors.splunk.com
live.splunk.com
login.splunk.com
splunkbase.splunk.com
splunklive.splunk.com
usergroups.splunk.com
@HAKKI, you're welcome
â RomanPerekhrest
Nov 6 '17 at 21:09
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
accepted
Complex parsing/scaping with xmlstarlet, xmllint and sed tools:
curl -sL "http://splunk.com" | xmlstarlet fo --html --recover 2>/dev/null
| xmllint --html --xpath "//a[contains(@href, '.splunk.com') and not(contains(@href, '//www.'))]/@href" - 2>/dev/null
| tr ' ' 'n' | sed -E 's~^href="https?:[/]+~~; s/.com.*$/.com/' | sort -u
The output:
answers.splunk.com
conf.splunk.com
dev.splunk.com
docs.splunk.com
investors.splunk.com
live.splunk.com
login.splunk.com
splunkbase.splunk.com
splunklive.splunk.com
usergroups.splunk.com
@HAKKI, you're welcome
â RomanPerekhrest
Nov 6 '17 at 21:09
add a comment |Â
up vote
1
down vote
accepted
Complex parsing/scaping with xmlstarlet, xmllint and sed tools:
curl -sL "http://splunk.com" | xmlstarlet fo --html --recover 2>/dev/null
| xmllint --html --xpath "//a[contains(@href, '.splunk.com') and not(contains(@href, '//www.'))]/@href" - 2>/dev/null
| tr ' ' 'n' | sed -E 's~^href="https?:[/]+~~; s/.com.*$/.com/' | sort -u
The output:
answers.splunk.com
conf.splunk.com
dev.splunk.com
docs.splunk.com
investors.splunk.com
live.splunk.com
login.splunk.com
splunkbase.splunk.com
splunklive.splunk.com
usergroups.splunk.com
@HAKKI, you're welcome
â RomanPerekhrest
Nov 6 '17 at 21:09
add a comment |Â
up vote
1
down vote
accepted
up vote
1
down vote
accepted
Complex parsing/scaping with xmlstarlet, xmllint and sed tools:
curl -sL "http://splunk.com" | xmlstarlet fo --html --recover 2>/dev/null
| xmllint --html --xpath "//a[contains(@href, '.splunk.com') and not(contains(@href, '//www.'))]/@href" - 2>/dev/null
| tr ' ' 'n' | sed -E 's~^href="https?:[/]+~~; s/.com.*$/.com/' | sort -u
The output:
answers.splunk.com
conf.splunk.com
dev.splunk.com
docs.splunk.com
investors.splunk.com
live.splunk.com
login.splunk.com
splunkbase.splunk.com
splunklive.splunk.com
usergroups.splunk.com
Complex parsing/scaping with xmlstarlet, xmllint and sed tools:
curl -sL "http://splunk.com" | xmlstarlet fo --html --recover 2>/dev/null
| xmllint --html --xpath "//a[contains(@href, '.splunk.com') and not(contains(@href, '//www.'))]/@href" - 2>/dev/null
| tr ' ' 'n' | sed -E 's~^href="https?:[/]+~~; s/.com.*$/.com/' | sort -u
The output:
answers.splunk.com
conf.splunk.com
dev.splunk.com
docs.splunk.com
investors.splunk.com
live.splunk.com
login.splunk.com
splunkbase.splunk.com
splunklive.splunk.com
usergroups.splunk.com
answered Nov 6 '17 at 16:56
RomanPerekhrest
22.5k12145
22.5k12145
@HAKKI, you're welcome
â RomanPerekhrest
Nov 6 '17 at 21:09
add a comment |Â
@HAKKI, you're welcome
â RomanPerekhrest
Nov 6 '17 at 21:09
@HAKKI, you're welcome
â RomanPerekhrest
Nov 6 '17 at 21:09
@HAKKI, you're welcome
â RomanPerekhrest
Nov 6 '17 at 21:09
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f402861%2fhow-can-i-find-subdomains-of-splunk-com-using-http-reponse%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Please remove your previous duplicate question, cause this one is detailed better.
â RomanPerekhrest
Nov 6 '17 at 16:12