Get the App
SLTechnology News&Howtos  ›  Network Security  › 

Some common network commands

Shulou Source: shulou.com Published: 2022-06-01 06:43:54 10月03日 Update

BY HORWATH

1. The most basic, most commonly used, testing physical network

Ping 192.168.0.8-t, parameter-t is waiting for the user to interrupt the test

two。 View DNS, IP, Mac, etc.

A.Win98:winipcfg

B.Win2000 or above: Ipconfig/all

C.NSLOOKUP:

For example, check the DNS of Hebei.

CRV / > nslookup

Default Server: ns.hesjptt.net.cn

Address: 202.99.160.68

> server 202.99.41.2 changes DNS to 41.2

> pop.pcpop.com

Server: ns.hesjptt.net.cn

Address: 202.99.160.68

Non-authoritative answer:

Name: pop.pcpop.com

Address:202.99.160.212Address:

3, message messenger (often asked ~)

Net send computer name / IP | * (broadcast) deliver content. Note that it cannot cross network segments.

Net stop messenger stops messenger service. You can also modify it in Panel-Service.

Net start messenger starts messenger service

4. Detect the other party's computer name, group, domain and current user name (how the manhunt works)

Ping-an IP-t shows only the NetBios name

Nbtstat-a 192.168.10.146 is relatively complete.

5.netstat-a shows all the ports currently open on your computer

Netstat-s-e shows your network information in detail, including statistics of TCP, UDP, ICMP and IP, etc.

6. Probe the list of arp bindings (dynamic and static), showing all computers connected to me, showing each other's IP and MAC addresses

Arp-a

7. Bind IP and MAC addresses on the proxy server to solve the embezzlement of IP in the LAN:

ARP-s 192.168.10.59 00-50-ff-6c-08-75

Unbind the IP of the Nic from the MAC address:

Arp-d network card IP

8. Hide your computer from your network neighbors (so that they can't see you! )

Net config server / hidden:yes

Net config server / hidden:no is enabled

9. Several net commands

a. Displays the current workgroup server list net view (when you use this command without options, it displays the list on computers on the current domain or network.)

For example, if you look at the shared resources on this IP, you can

Net view 192.168.10.8

Shared resources at 192.168.10.8

Resource share name type usage note

Website Service Disk

Command completed successfully

b. View the list of user accounts on the computer net user

c. View the web link net use

For example: net use z: / / 192.168.10.8/movie maps the movie shared directory of this IP to a local Z disk

d. Record Link net session

For example:

CRV / > net session

Computer user name customer type open idle time

/ / 192.168.10.110 ROME Windows 2000 2195 000: 03:12

/ / 192.168.10.51 ROME Windows 2000 2195 000: 00:39

The command completed successfully.

10. Route tracking command

A.tracert pop.pcpop.com

In addition to showing the route, B.pathping pop.pcpop.com also provides 325s analysis to calculate% of lost packets.

11. Several commands about sharing security

a. Check your machine's shared resource net share

b. Delete the share manually (you can make up a bat file, boot and run automatically, delete all the shares! )

Net share c $/ d

Net share d$ / d

Net share ipc$ / d

Net share admin$ / d

Notice the space after $!

c. Add a share:

C:/net share mymovie=e:/downloads/movie / users:1

Mymovie sharing succeeded.

At the same time, the number of linked users is limited to 1.

twelve。 Set static IP under the DOS line

a. Set static IP

CMD

Netsh

Netsh > int

Interface > ip

Interface ip > set add "Local Link" static IP address mask gateway

b. View IP settings

Interface ip > show address

Tags: Commands computers services networks users addresses resources links success shared resources other parties static messengers servers user names types network cards routes A.C. work Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Linux Apple Microsoft OPPO Reno Redmi