LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-17-2004, 03:08 PM   #1
:King_58:
Member
 
Registered: Aug 2004
Location: Cyprus
Distribution: RedHat 9
Posts: 46

Rep: Reputation: 15
Wink how can I scan my network


Using Linux(redhat 9), how can I scan my network for all the PC's that are connected to the server?

meaning that, on windows you can run the command net view, and that will scan for all pc's that is on your network(same network group), I have a little network home, server and 2 clients, I want to know how can I scan the network to identify the server IP and my other client that is running windows XP.

I have nmap installed, I need to know the command for that.

Thanks.
 
Old 08-17-2004, 03:22 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
If you mean connected via samba then you can use:
smbstatus
 
Old 08-17-2004, 04:32 PM   #3
gvec
Member
 
Registered: Aug 2004
Posts: 32

Rep: Reputation: 15
i am guessing that you are asking about nmap in particular since you say you have it installed but dont know the command

man nmap
should give you everything you are looking for if you want to use nmap for port scanning your home/private network

there are front-ends for nmap (nmapfe) which will take some of the guess work out of it for you if you do not want to filter through the man pages, just use the front end and it will create the syntax based on options/boxes chosen


nmap -v -O 192.168.0.0/24

will scan the class C IP range 192.168.0.0-192.168.0.255, find open ports on any up systems and attempt to identify the OS through TCP/IP Fingerprinting

hope this helps

Last edited by gvec; 08-17-2004 at 04:36 PM.
 
Old 09-04-2004, 02:27 PM   #4
:King_58:
Member
 
Registered: Aug 2004
Location: Cyprus
Distribution: RedHat 9
Posts: 46

Original Poster
Rep: Reputation: 15
thanks gvec that was helpful


can some one tell why do i get this

SInfo(V=3.50%P=i686-pc-linux-gnu%D=9/4%Time=41396DD7%O=135%C=1)
TSeq(Class=TR%IPID=I%TS=0)
T1(Resp=Y%DF=N%W=4000%ACK=S++%Flags=AS%Ops=MNWNNT)
T2(Resp=N)
T3(Resp=N)
T4(Resp=Y%DF=N%W=0%ACK=O%Flags=R%Ops=)
T5(Resp=Y%DF=N%W=0%ACK=S++%Flags=AR%Ops=)
T6(Resp=Y%DF=N%W=0%ACK=O%Flags=R%Ops=)
T7(Resp=N)
PU(Resp=Y%DF=N%TOS=0%IPLEN=B0%RIPTL=148%RID=E%RIPCK=E%UCK=E%ULEN=134%DAT=E)

when it guesses the operating system
 
Old 09-04-2004, 03:36 PM   #5
grim1234
Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware 10.2, Fluxbox.
Posts: 64

Rep: Reputation: 15
I guess you have the -v switch enabled (the linux bit is from your box).

to scan the local area network I use nmap -sP 192.168.0.* (replace the first three from your ip with your ip).

nmap -sS -O 192.168.0.* works wuite well too.

regards,


gir.
 
Old 09-04-2004, 08:08 PM   #6
:King_58:
Member
 
Registered: Aug 2004
Location: Cyprus
Distribution: RedHat 9
Posts: 46

Original Poster
Rep: Reputation: 15
after running the command nmap -sS -O 192.168.0.1

this is what i get:

(The 1652 ports scanned but not shown below are in state: closed)
PORT STATE SERVICE
135/tcp open msrpc
139/tcp open netbios-ssn
389/tcp open ldap
445/tcp open microsoft-ds
1025/tcp open NFS-or-IIS
1026/tcp open LSA-or-nterm
1720/tcp open H.323/Q.931
No exact OS matches for host (If you know what OS is running on it, see http://www.insecure.org/cgi-bin/nmap-submit.cgi).
TCP/IP fingerprint:
SInfo(V=3.50%P=i686-pc-linux-gnu%D=9/4%Time=4139BD95%O=135%C=1)
TSeq(Class=TR%IPID=I%TS=0)
T1(Resp=Y%DF=N%W=4000%ACK=S++%Flags=AS%Ops=MNWNNT)
T2(Resp=N)
T3(Resp=N)
T4(Resp=Y%DF=N%W=0%ACK=O%Flags=R%Ops=)
T5(Resp=Y%DF=N%W=0%ACK=S++%Flags=AR%Ops=)
T6(Resp=Y%DF=N%W=0%ACK=O%Flags=R%Ops=)
T7(Resp=N)
PU(Resp=Y%DF=N%TOS=0%IPLEN=B0%RIPTL=148%RID=E%RIPCK=E%UCK=E%ULEN=134%DAT=E)

I dunno why this happening before i was able to obtain the OS type.

Dunno what happend.
 
Old 09-05-2004, 05:35 AM   #7
grim1234
Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware 10.2, Fluxbox.
Posts: 64

Rep: Reputation: 15
Is it xp sp2? Maybe the database doesn't include service pack 2 yet. If you use the -A switch it'll tell you more about the service running on each port. That'll help.

Gir.
 
Old 09-05-2004, 06:00 AM   #8
:King_58:
Member
 
Registered: Aug 2004
Location: Cyprus
Distribution: RedHat 9
Posts: 46

Original Poster
Rep: Reputation: 15
No its Windows 2003 server, but also since u mentioned XP i also couldn't detect that too maybe bc of SP2.
 
Old 09-13-2004, 02:46 AM   #9
:King_58:
Member
 
Registered: Aug 2004
Location: Cyprus
Distribution: RedHat 9
Posts: 46

Original Poster
Rep: Reputation: 15
Still can’t get it to work, any more ideas.
 
Old 09-13-2004, 08:38 AM   #10
grim1234
Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware 10.2, Fluxbox.
Posts: 64

Rep: Reputation: 15
try scanning a linux box or a local router if you're on that sort of network. it looks like it's working okay, you can work out the os by the open ports yourself. use the -A switch for more info on services.

Gir.
 
  


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
How to scan? SolidSnakeX28 Linux - Hardware 4 08-23-2005 12:54 AM
Wireless Sis900 network Card iwlist scan not working Arrowx7 Linux - Wireless Networking 7 07-10-2005 01:47 PM
To SCAN or not to SCAN? HP750xi Suse 9.2 Pro newtwolinux Linux - Hardware 4 06-22-2005 04:02 PM
scan my network with nmap. amer_58 Linux - Networking 3 06-17-2004 12:11 AM
Samba question - network print/scan/copy/fax Illah Linux - Networking 1 06-04-2004 01:45 PM

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

All times are GMT -5. The time now is 12:34 PM.

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