Net command, secret weapon

Source: Internet
Author: User
Tags net command

First, we will introduce the concept of a shared host. Shared hosts are shared items such as hard disks, folders, and printers on computers. Shared settings can be divided into read-only, complete, and password-based access. It is undeniable that sharing on the LAN brings us great convenience, but if a shared host is directly connected to the Internet, it will pose a great hidden danger to our security. Most shared hosts are Internet cafes and computer users in the LAN. Because of their work needs, they often set up shared disks on their computers without a password, which makes it very convenient to call files from each other and leaves hackers with a chance.
Next, we will introduce the net command.

(1). Net View
Usage: displays the list of domains, computers, or shared resources of a specified computer.
Command Format: Net view [\ computername/domain [: domainname]
Parameter introduction:
L enter a net view without parameters to display the computer list of the current domain.
L \ computername specifies the computer to view its shared resources.
L/domain [: domainname] specifies the domain for which you want to view the available computers.

(2). Net use
For use: connect the computer or disconnect the computer from sharing resources, or display the connection information of the computer.
Command Format: net use [devicename *] [\ computername \ sharename [\ volume] [password *] [/User: [domainname \] username] [[/delete] [/persistent: {Yes No}]
Parameter introduction:
Type "net use" without parameters to list network connections.
Devicename specifies the name of the resource to be connected to or the name of the device to be disconnected.
\ Computername \ Name of the server and shared resource.
Password: the password used to access shared resources.
* The system prompts you to enter the password.
/User specifies another user to connect.
Domainname specifies another domain.
Username specifies the username to log on.
/Home connects the user to its home directory.
/Delete cancels the specified network connection.
/Persistent controls the use of permanent network connections.
In the running item of the Start Menu, type net view // ip address (the number that was just detected). A wonderful thing happened,

The C, D, and E disks of this host are shared. Enter the MS-DoS Status and type dir \ 192.168.0.10 \ c. Then the files and directories under drive C are displayed.

ArticleInput: dnbm responsible editor: dnbm

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.