Jump to content

Net (command)

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Rodriguezwilfre (talk | contribs) at 17:36, 15 May 2009 (Created page with '==Net use== The N'''et use''' command has two main usages in the windows world. One of them is to mount drives shares in a network environment. This command make…'). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

Net use

The Net use command has two main usages in the windows world. One of them is to mount drives shares in a network environment. This command makes use of the SMB (server message block) and the NetBios protocol on port 139 or 445. By default, in the basic windows XP configuration, it is enabled. Thus, users can connect and disconnect from shared resources such as computers, printers and drives.

In addition, it provides other functionalities as well. Net use is used to display a list of network connection information on shared resources. It also connects to the IPC$ (interprocess communication share). This is so called the null session connection, which allows unauthenticated users. The basic use for connecting anonymously is: net use \\ IP address\IPC$ “” /u:””. For example,if this is typed in the command prompt: net use \\192.168.1.101\IPC$ "" /u:"", you would be connecting to the share IPC of the network 192.168.1.101. If successfully connected to the target machine, a lot of information can be gathered such as shares, users, groups, registry keys and more. This would provide a hacker with a lot of information about a remote user.

To know more about net use for connecting and disconnecting from network shares, please refer to the reference section.


References

http://codeidol.com/security/anti-hacker-tool-kit/Windows-Enumeration-Tools/NET-TOOLS/

http://neworder.box.sk/newsread.php?newsid=6576

http://technet.microsoft.com/en-us/library/bb490717.aspx