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

The name of the pictureThe name of the pictureThe name of the pictureClash 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.



Some part of html code







share|improve this question






















  • Please remove your previous duplicate question, cause this one is detailed better.
    – RomanPerekhrest
    Nov 6 '17 at 16:12














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.



Some part of html code







share|improve this question






















  • Please remove your previous duplicate question, cause this one is detailed better.
    – RomanPerekhrest
    Nov 6 '17 at 16:12












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.



Some part of html code







share|improve this question














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.



Some part of html code









share|improve this question













share|improve this question




share|improve this question








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
















  • 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










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





share|improve this answer




















  • @HAKKI, you're welcome
    – RomanPerekhrest
    Nov 6 '17 at 21:09










Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















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






























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





share|improve this answer




















  • @HAKKI, you're welcome
    – RomanPerekhrest
    Nov 6 '17 at 21:09














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





share|improve this answer




















  • @HAKKI, you're welcome
    – RomanPerekhrest
    Nov 6 '17 at 21:09












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





share|improve this answer












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






share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 6 '17 at 16:56









RomanPerekhrest

22.5k12145




22.5k12145











  • @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




@HAKKI, you're welcome
– RomanPerekhrest
Nov 6 '17 at 21:09

















 

draft saved


draft discarded















































 


draft saved


draft discarded














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













































































Popular posts from this blog

Peggy Mitchell

Palaiologos

The Forum (Inglewood, California)