LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-06-2009, 05:39 PM   #1
jcafaro10
LQ Newbie
 
Registered: Apr 2009
Posts: 25

Rep: Reputation: 15
How to find out information about a server?


If there's an http server on my network and I want to find out information about that server, what version of linux, 32 or 64 bit, etc, is there a command I can use to find that information out?
 
Old 04-06-2009, 05:55 PM   #2
bsdunix
Senior Member
 
Registered: May 2006
Distribution: BeOS, BSD, Caldera, CTOS, Debian, LFS, Mac, Mandrake, Red Hat, Slackware, Solaris, SuSE
Posts: 1,761

Rep: Reputation: 80
nmap can help.

http://nmap.org/book/man.html
 
Old 04-06-2009, 06:10 PM   #3
jcafaro10
LQ Newbie
 
Registered: Apr 2009
Posts: 25

Original Poster
Rep: Reputation: 15
Thanks!
 
Old 04-06-2009, 06:23 PM   #4
jcafaro10
LQ Newbie
 
Registered: Apr 2009
Posts: 25

Original Poster
Rep: Reputation: 15
hmm, this is going really slow. I just did what the example had, nmap -A -T4 ipaddress. It gave me a warning about giving up on a port early, than said Connect Scan Timing: 23.69% done, about a half hour remaining.
 
Old 04-06-2009, 06:47 PM   #5
dandart
Member
 
Registered: Dec 2005
Posts: 34

Rep: Reputation: 18
SSH in and run:

cat /proc/cpuinfo
CPU info

cat /proc/version
Version of Linux, compile time, etc

echo $HOSTTYPE for arch
echo $MACHTYPE for host triplet

Hope this helps.
Cheers!
 
Old 04-06-2009, 07:24 PM   #6
jcafaro10
LQ Newbie
 
Registered: Apr 2009
Posts: 25

Original Poster
Rep: Reputation: 15
That would be helpful except I can't ssh into the server b/c I don't have the login info. All I really need is the OS
 
Old 04-06-2009, 07:40 PM   #7
jcafaro10
LQ Newbie
 
Registered: Apr 2009
Posts: 25

Original Poster
Rep: Reputation: 15
I can use netcraft and see that it is running linux, but I need to know specifically which linux distribution.
 
Old 04-06-2009, 08:30 PM   #8
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
Why would you need to know the specific distro of a machine that you do not have access rights to?
 
Old 04-06-2009, 10:14 PM   #9
jcafaro10
LQ Newbie
 
Registered: Apr 2009
Posts: 25

Original Poster
Rep: Reputation: 15
Our final project in my CS class is to attempt to do a buffer exploit on a fake buggy server that our professor set up. I've been messing around in Red Hat and Ubuntu and have noticed that even though they are both linux, when I make a buffer and try to overwrite the return address by going outside the range of the buffer there is a different amount that I have to go by depending on Red Hat or Ubuntu.
 
Old 04-06-2009, 10:20 PM   #10
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
Have you checked to see if it is not only distro but version specific? Say RHEL3,4,5? Could you not use your exploit to determine which distro (of your choices) it is?
 
Old 04-06-2009, 11:07 PM   #11
jcafaro10
LQ Newbie
 
Registered: Apr 2009
Posts: 25

Original Poster
Rep: Reputation: 15
Wouldn't I be putting my cart before the horse? If the server is running red hat version x and I write my exploit on red hat version y, and so it won't work on version x, I won't be able to use it to find out that the server is running red hat version x.
 
Old 04-06-2009, 11:39 PM   #12
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
I guess I meant that as two separate thoughts.

1.Have you checked to see if it is not only distro but version specific? Say RHEL3,4,5?

2.Could you not use your exploit to determine which distro (of your choices) it is?
 
Old 04-06-2009, 11:45 PM   #13
jcafaro10
LQ Newbie
 
Registered: Apr 2009
Posts: 25

Original Poster
Rep: Reputation: 15
Are you saying like write versions that work under different distros and just keep trying ones until it works, and then you've found out the distro? I think I'm just not following
 
Old 04-06-2009, 11:48 PM   #14
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
Assuming that you know that each distro and version requires a different buffer exploit, yes.


Although I suspect it is more dependent on the version of the software that the distro is running, rather than the distro itself.

Last edited by lazlow; 04-06-2009 at 11:51 PM.
 
  


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
Z/OS: find the processor information form z/os sachink General 8 03-27-2009 08:18 AM
How to find out indone information and datablocks information in a file system chaitanya1982 Linux - Newbie 1 09-24-2008 01:58 AM
Find hardware information speederpro Linux - Newbie 10 03-02-2007 05:26 PM
Where to find beginner information tgrier Linux - Newbie 7 11-22-2004 06:07 PM
How to find patch information? grub Linux - Software 1 01-29-2004 12:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:14 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