SoFunction
Updated on 2025-04-09

net command, secret weapon

First, let’s introduce the concept of shared hosting. The so-called shared hosting means that there are shared shared projects such as hard disks, folders, or printers on the computer. Shared settings can be divided into three types: read-only, complete, and password-required. It is undeniable that sharing on the LAN brings us great convenience, but if you open a shared host and directly connect to the Internet, it will bring great hidden dangers to security. Most of the hosts that are shared on the Internet are computer users in some Internet cafes and unit LANs. Due to work needs, they often set up shared disks on their computers without passwords, which makes it very convenient to call files from each other, leaving hackers with an opportunity to take advantage of them.
Secondly, let me introduce the net command.

⑴、net view
Function: Displays a field list, a computer list, or a list of shared resources for a specified computer.
Command format: net view [\\computername /domain[:domainname]]
Parameter description:
l Type a net view without parameters to display the computer list of the current domain.
l \\computername Specifies the computer whose shared resources you want to view.
l /domain[:domainname] specifies the domain of which computers you want to view.

⑵、net use
Function: Connect the computer or disconnect the computer from shared resources, or display the computer's connection information.
Command format: net use [devicename *] [\\computername\sharename[\volume]] [password *]] [/user:[domainname\]username] [[/delete] [/persistent:{yes no}]]
Parameter description:
Type net use without parameters to list the network connection.
devicename specifies the name of the resource to connect to or the name of the device to disconnect.
\\computername\sharename server and shared resource name.
password to access shared resources.
* Prompt to type your password.
/user specifies another user that connects.
domainname specifies another domain.
username specifies the logged in username.
/home connects the user to its host directory.
/delete unspecified network connection.
/persistent controls the use of permanent network connections.
Type net view//IP address (the string of numbers I just detected) in the run item of the start menu. A wonderful thing happened.