Re: About NETBIOS i
- From: "makuchaku" <mayank.gnu@xxxxxxxxx>
- Date: 29 Dec 2005 00:46:14 -0800
*****************
AIM: To use network shares available over HCLT's intranet from Linux
*****************
samba, nbtscan, nmblookup, smbclient, LINUX.
(1) Install samba
rpm -ivh samba.rpm (for redhat)
or
apt-get install samba (for debian)
(2) open "xterm" & do this
nbtscan aa.bb.cc.0/24
aa.bb.cc.0 is ur IP address with 0 in last octet (assuming ur subnet
mask is 255.255.255.0, for others, u just have to put ur network ID
there & follow it up by a corresponding /xx value, for me, it was /24 )
(3) select the IP's in previous o/p, where u see a corresponding
<server>, they might be possible targets. Let the IP be aa.bb.cc.dd
now do this
nmblookup -A aa.bb.cc.dd
(4) If you see a
some_name <20> - B <ACTIVE>
then this host is sharing things. GOOD! (the number 20 is important)
(5) now do this
smbclient -L some_name -I aa.bb.cc.dd -N
A positive result can be something like this,
---------------
[root:/>$ smbclient -L gahlawat -I aa.bb.cc.dd -U Administrator
Password:
Domain=[GAHLAWAT] OS=[Windows 5.0] Server=[Windows 2000 LAN Manager]
Sharename Type Comment
--------- ---- -------
IPC$ IPC Remote IPC
D$ Disk Default share
G$ Disk Default share
ADMIN$ Disk Remote Admin
H$ Disk Default share
C$ Disk Default share
Domain=[GAHLAWAT] OS=[Windows 5.0] Server=[Windows 2000 LAN Manager]
---------------
(use -U <username> if u know the target machine's passwd, -N says no
authentication.)
(6) Mount the available shares onto a directory
mkdir /share
mount -t smbfs -o username=Administrator,password=foobar //gahlawat/c$
/share
(7) now u have /share, just as a part of ur filesystem, play around
with it.
(8) do this when u are done
cd; umount /share
*****************
If you are using nautilus, try "smb:///" in the location bar :-)
*****************
.
- Follow-Ups:
- Re: About NETBIOS i
- From: jamesonang@xxxxxxxxx
- Re: About NETBIOS i
- From: jamesonang@xxxxxxxxx
- Re: About NETBIOS i
- References:
- About NETBIOS i
- From: jamesonang@xxxxxxxxx
- About NETBIOS i
- Prev by Date: About NETBIOS i
- Next by Date: Re: how to use rar with mknod ?
- Previous by thread: About NETBIOS i
- Next by thread: Re: About NETBIOS i
- Index(es):
Relevant Pages
|