LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-21-2007, 09:56 AM   #1
immortaltechnique
Member
 
Registered: Oct 2006
Location: Kenya
Distribution: Ubuntu, RHEL, OpenBSD
Posts: 287

Rep: Reputation: 32
discovering virtual sites


Hi there
Now i want to know which command you run in linux to discover if a website is virtually hosted or not.
For instance, if i have a 196.x.x.x and it hosts multiple site, is there a way in linux or a tool available to enumerate the sites hosted as virtual domains??


CHEERS
 
Old 08-21-2007, 12:27 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
no, it's really none of your business (from a technical perspective i mean...) the closest you *could* get would be to do a reverse lookup on the ip address to get all A records pointing to it. from then though, you'd still want the CNAME's pointing to the A's and neither of those jumps are possible (AFAIK). you can get the PTR record for the IP, but that's only one address, usually the name for a physical box, which wouldn't relate the the domains held on it.

as far as virtual hosting in itself... it's really not an interesting thing. there's no difference if an apache instance has 1 default server or 1 virtual host or 1000 virtual hosts.
 
Old 08-21-2007, 12:51 PM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Given one domain name you can get somewhere using Robtex, though admittedly that's not a local tool. Here's an example query for mrtgglds dot nf (which was either scam or spam, can't remember). I vaguely remember recon possibilities using the Google API but I can't find any clues right now.


Quote:
as far as virtual hosting in itself... it's really not an interesting thing. there's no difference if an apache instance has 1 default server or 1 virtual host or 1000 virtual hosts.
If it's interesting is for the OP to decide. Why else would he be asking? Besides, given the recent infections of certain webfarms hosting hundreds of sites *I* find it interesting.

Last edited by unSpawn; 08-21-2007 at 12:53 PM.
 
Old 08-21-2007, 12:55 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Nice site... interesting graphing of the relationships... I assume it's technically a brute force approach they're taking?

and i meant interesting in "fingers" really... seemed as if there was a suggestion that using a virtualhost was technically inferior or some such.
 
Old 08-21-2007, 01:03 PM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by acid_kewpie View Post
Nice site... interesting graphing of the relationships... I assume it's technically a brute force approach they're taking?
Spose it is, can't imagine any other way. Either way what they're doing is way cool.


Quote:
Originally Posted by acid_kewpie View Post
and i meant interesting in "fingers" really... seemed as if there was a suggestion that using a virtualhost was technically inferior or some such.
Hmm. Haven't read it like that. Oh well. Maybe I need a new lexer.
 
Old 08-21-2007, 11:29 PM   #6
immortaltechnique
Member
 
Registered: Oct 2006
Location: Kenya
Distribution: Ubuntu, RHEL, OpenBSD
Posts: 287

Original Poster
Rep: Reputation: 32
Thanks alot......
Yeah i mean why wouldnt it be my business if i had like say 1000 virtual hosts and i need to map them out for some reason?

Away from that...i think i found a way to do though its a bit quick and dirty. I wrote a simple perl script and it workin just fine for now..


Another question i had was how do i protect my webserver from being discovered as one that hosts multiple site?
I have done pen tests myself and once you realize that a certain address maps to over 30 websites then its kinda easy to take them down...


I seek clarification
 
Old 08-22-2007, 01:47 AM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
why is it easier to take them down?? i don't understand why you seem to think that a virtual host is somehow deficient... 30 small secure sites with little content are a lot harder to take down that one huge one littered with holes.

how do you stop them being "discovered"? stop running them i guess. if you run a website, it's pretty obvious you want it to be used. as above we're assuming that the tool there just uses a very large dns cache to search through, so as long as you have valid dns records in order to get the traffic, you would be "susceptible" to being cross referenced. still don't see it as a problem in the slightest.
 
Old 08-22-2007, 02:13 AM   #8
w3bd3vil
Senior Member
 
Registered: Jun 2006
Location: Hyderabad, India
Distribution: Fedora
Posts: 1,191

Rep: Reputation: 49
If what I understood is correct, you want all the sites on an IP address. Use this site, I use it to understand which all sites are being hosted on the server to get a decent idea of how the host is...

 
Old 08-22-2007, 02:28 AM   #9
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well there's a good example of how vague it is to find this info. I put one of my sites in there, and it's shown a totally different set to unspawns link... the second one appears to state it's comprehensive too, which is clearly isn't.
 
Old 08-22-2007, 03:15 AM   #10
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by immortaltechnique View Post
Away from that...i think i found a way to do though its a bit quick and dirty. I wrote a simple perl script and it workin just fine for now..
Can we please look at the script?
 
Old 08-22-2007, 03:30 AM   #11
w3bd3vil
Senior Member
 
Registered: Jun 2006
Location: Hyderabad, India
Distribution: Fedora
Posts: 1,191

Rep: Reputation: 49
Quote:
well there's a good example of how vague it is
Well I kinda cross checked with my /etc/passwd file, all of the sites shown on seologs seem to be correct to me.
 
Old 08-22-2007, 03:42 AM   #12
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
for your domain sure... for others, not so...
 
Old 08-22-2007, 04:40 AM   #13
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by acid_kewpie
well there's a good example of how vague it is to find this info. I put one of my sites in there, and it's shown a totally different set to unspawns link... the second one appears to state it's comprehensive too, which is clearly isn't.
Heh. I didn't even test it. Any DN that has "SEO" in it is usually marketing something and "searchengine optimization" is way overrated anyway.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Client cannot open few https://.. sites i.e. secure sites rajeshghy Linux - General 1 11-02-2006 06:30 AM
need help with apach virtual hosts ssl/non ssl sites danthach Linux - Networking 3 05-25-2006 06:40 AM
Virtual hosting not point to different sites techneck Linux - Newbie 1 02-21-2006 01:46 PM
virtual ftp sites naveenrajn Linux - General 2 10-08-2005 05:59 AM
Configuring Webalizer for virtual sites. dmedici Fedora 0 07-22-2004 03:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration