Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[ANSWERED] Identify samba hosts on network?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
dfelicia
Apprentice
Apprentice


Joined: 11 May 2005
Posts: 281
Location: Southwestern Connecticut

PostPosted: Wed Mar 22, 2006 7:06 pm    Post subject: [ANSWERED] Identify samba hosts on network? Reply with quote

Anyone know how to scan a subnet for Samba hosts? Googling revealed a tool from Digital Defense that did this (http://www.digitaldefense.net/labs/tools/nmbping.pl) but the link no longer works.

Last edited by dfelicia on Fri Mar 24, 2006 1:52 am; edited 1 time in total
Back to top
View user's profile Send private message
srlinuxx
l33t
l33t


Joined: 22 Nov 2003
Posts: 627

PostPosted: Wed Mar 22, 2006 7:08 pm    Post subject: Reply with quote

well, it might be too simplistic for your purposes, but I use smbtree.
_________________
--You talk the talk, but do you waddle the waddle?
-Gentoo Monthly Screenshots
Back to top
View user's profile Send private message
dfelicia
Apprentice
Apprentice


Joined: 11 May 2005
Posts: 281
Location: Southwestern Connecticut

PostPosted: Wed Mar 22, 2006 7:12 pm    Post subject: Reply with quote

I'm actually looking for a scanner that can differentiate Samba hosts from Windows hosts, if that is even possible.
Back to top
View user's profile Send private message
DaveArb
Guru
Guru


Joined: 29 Apr 2004
Posts: 510
Location: Texas, USA

PostPosted: Wed Mar 22, 2006 8:01 pm    Post subject: Reply with quote

nmap may be able to help you. It can scan looking for open Samba-esque ports, like 139 and 445, and also has an "OS identification" switch that at least is pretty good at distinguishing between Windows and Linux. It wouldn't be an all in one just type one command solution, but may get the job done.

Dave
Back to top
View user's profile Send private message
dfelicia
Apprentice
Apprentice


Joined: 11 May 2005
Posts: 281
Location: Southwestern Connecticut

PostPosted: Fri Mar 24, 2006 1:52 am    Post subject: Reply with quote

Looks promising. Thanks!

Code:

dfelicia@rtfm ~ $ sudo nmap -p139,445,22,113 -O <obscured to protect the innocent>

Starting Nmap 4.01 ( http://www.insecure.org/nmap/ ) at 2006-03-23 20:36 EST
Interesting ports on <obscured to protect the innocent>:
PORT    STATE    SERVICE
22/tcp  open     ssh
113/tcp closed   auth
139/tcp open     netbios-ssn
445/tcp filtered microsoft-ds
Device type: general purpose|broadband router
Running: Linux 2.4.X|2.5.X, D-Link embedded
OS details: Linux 2.4.0 - 2.5.20, Linux 2.4.18 - 2.4.20, Linux 2.4.26, Linux 2.4.27 or D-Link DSL-500T (running linux 2.4)
Uptime 98.386 days (since Thu Dec 15 11:20:42 2005)

Nmap finished: 1 IP address (1 host up) scanned in 3.252 seconds

dfelicia@rtfm ~ $ sudo nmap -p139,445,22,113 -O <obscured to protect the innocent>

Starting Nmap 4.01 ( http://www.insecure.org/nmap/ ) at 2006-03-23 20:40 EST
Interesting ports on <obscured to protect the innocent>:
PORT    STATE  SERVICE
22/tcp  open   ssh
113/tcp closed auth
139/tcp open   netbios-ssn
445/tcp open   microsoft-ds
MAC Address: <obscured to protect the innocent> (Micro-star International CO.)
Device type: general purpose
Running: Microsoft Windows NT/2K/XP|2003/.NET
OS details: Microsoft Windows 2003 Server, 2003 Server SP1 or XP Pro SP2

Nmap finished: 1 IP address (1 host up) scanned in 2.088 seconds

dfelicia@rtfm ~ $ sudo nmap -p139,445,22,113 -O <obscured to protect the innocent>

Starting Nmap 4.01 ( http://www.insecure.org/nmap/ ) at 2006-03-23 20:42 EST
Interesting ports on <obscured to protect the innocent>:
PORT    STATE    SERVICE
22/tcp  open     ssh
113/tcp closed   auth
139/tcp open     netbios-ssn
445/tcp filtered microsoft-ds
Device type: general purpose
Running: FreeBSD 4.X, IBM AIX 5.X
OS details: FreeBSD 4.3 - 4.4-RELEASE, IBM AIX 5.3

Nmap finished: 1 IP address (1 host up) scanned in 3.254 seconds
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum