Saturday, February 19, 2011

netbios tutorial


*Again anything that might happen to you using this information is not my fault*

Now for a tutorial on NetBIOS.
NetBIOS runs off port 139 *cough*my port tutorial*cough*. Anyway, it's used for sharing files and folder to other computers on the Network. The porblem is that anyone who knows the necessary information can have access to these files and folders.
Now lets say you have computer with IP 123.456.789.0 (this is made up don't try it). First you should go to the DOS prompt and use the nbtstat command. The syntax is:

nbtstat -A 123.456.789.0

yes it does have to be a capital 'A'. If you want to use a small 'a' you'll have to do it with the hostname, not the IP. To find a hostname use NSLookup which I know you will conveniently find out about from google or by getting the trusty program, Genius 2. If it lists something out good. If it gives an error of sometype, give up on this IP for NetBIOS. In the list you will see there are some names followed by numbers in '<,>' or '(,)' or I can't remember. If there is that number good again. You can guess if there isn't. Remember the name that corresponds with the number. Now do the net view command. Syntax:

net view \\123.456.789.0

Hopefully you get another listing of names (these are share names).
Whatever says disk after it is a shared folder or drive and whatever says printer after it is a shared printer. Now we must net use it. Syntax:

net use k: \\123.456.789.0\[share name]

[share name] should be replaced by a share name that you found earlier and k: can be replaced by any letter followed by ':'.

Now go to my computer and find your new drive k: (or whatever letter you used).

To store an IP go to C:\Windows\System32\Drivers\etc and open lmhosts.sam in Notepad or wrodpad. At the bottom type in the IP.

Whenever you want to check that computer out go to start, search, for computers and type in the IP.

Knowing this can be very good for security reasons. Simply use this method on yourself and see if anything you don't want accessible is. If u want to unshare some folders go to the folder, right click on it, click sharing and security, then uncheck the ceck box to share the folder. If you want sharing disabled completeley go to Start -> Settings -> Administrative Tools -> Services
Now go to Server, right click on it and got to properties and under startup type set it to disabled.
However, if you have a network and you want or have to share the
folder(s) then leave them but be careful.

No comments: