The most classic command line of the network - the killing skills of network security workers

xiaoxiao2021-03-06  74

The most classic command line of the network - the essential, most commonly used, test physical network, Ping 192.168.0.8 -T, parameter-T is waiting for users to interrupt test 2. View DNS, IP, Mac, etc. A.WIN98: Winipcfg B.Win2000 or more: IPConfig / All C.NSLOOKUP: See DNS C: /> NSLOOKUP DEFAULT Server: ns.hesjptt.net.cn address: 202.99.160.68> Server 202.99.41.2 Change 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.212 3. Network letter makes Net Send computer name / Ip * (broadcast) transmitted content, pay attention to stop the letter across the network segment NET STOP Messenger, you can also start the messenger service 4. Detect the other party computer name, the group, domain and the current user Name (pursued working principle) ping -a ip -t, only display NetBIOS name nbtstat -a 192.168.10.146 Comparison 5.NetStat -a Show all port netstat -s -e, all ports opened by your computer, more detailed Show your network information, including statistics of TCP, UDP, ICMP, and IP. Bundle IP and MAC addresses on the proxy server, solve the IP of the local area network! : ARP -S 192.168.10.59 00 -50-FF-6C-08-75 Remove the iP and MAC address of the NIC: ARP -D NIC IP 8. Hide your computer NET Config Server / Hidden in the network neighbor: YES NET Config Server / Hidden: NO is open 9. Several net command A. Display the current Workgroup Server List Net View, when you use this command without an option, it displays the current domain or network computer. List. For example: view shared resources on this IP, you can c: /> net view 192.168.10.8 at 192.168.10 shared resource resource resource resource shared name Type Types -------------------------------------------------- ---------------------- The website service Disk command successfully completed.

B. View user account list NET User C. View network link NET USE, for example: Net Use z: / 192.168.10.8/Movie maps this IP's MOVIE shared directory to a local Z disk D. Record link NET session, for example : C: /> NET sessions computer username customer type Open free time --------------------------------- ------------------------------- / 192.168.10.110 Rome Windows 2000 2195 0 00:03:12 / 192.168.10.51 Rome Windows 2000 2195 0 00:00:39 Command successfully completed. 10. Routing Tracking Command A.Tracert Pop.pcpop.com B.Pathping Pop.pcpop.com In addition to displaying routing, 325S analysis is provided,% 11% of the lost package is calculated. A few commands on sharing security A. View you Machine sharing resource NET Share B. Manually delete sharing (can be compiled with a BAT file, start running, put the sharing!) NET Share C $ / d Net Share D $ / D NET Share IPC $ / D NET Share Admin Admin $ / D pay attention to a space after it. C. Add a share: C: / Net Share mymovie = E: / Downloads / Movie / Users: 1 MyMovie shared success. At the same time, the number of limited link users is 1 person. 12. Set static IP 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 ARP Display and Modification The item in the Address Resolution Protocol (ARP) cache. One or more tables are included in the ARP cache that stores the IP address and its resolved Ethernet or token ring physical address. Each Ethernet or token ring network adapter installed on a computer has its own separate table. If you use without parameters, the ARP command will display the help information. Syntax ARP [-A [inetaddr] [-n ifceaddr]] [-g [inetaddr]] [-g [inetaddr]] [-d inetaddr [iFaceaddr]] [-s inetaddr etheraddr [iFaceddr]]

Parameters -a [inetaddr] [-n ifceaddr] displays the current ARP cache table for all interfaces. To display the ARP cache item for the specified IP address, use the ARP -A with the inetaddr parameter, which is the INetAddr represents the specified IP address. To display the ARP cache table for the specified interface, use the -n ifceaddr parameter, which the IFACEADDR represents the IP address assigned to the specified interface. -N parameter is case sensitive. -G [inetaddr] [-n ifceaddr] is the same as -A. -D inetaddr [ifceaddr] deletes the specified IP address item, which is the INetAddr represents the IP address. For a specified interface, you want to delete an item in the table, use the ifAceAddr parameter, where the IFACEADDR represents the IP address assigned to the interface. To delete all items, use an asterisk (*) wildcard instead of inetaddr. -S inetaddr etheraddr [ifceaddr] Add IP address inetaddr to the static item of the physical address EtherAddr to the ARP cache. To add a static ARP cache item to the specified interface, use the ifAceAddr parameter, where the IFACEAddr represents the IP address assigned to the interface. Display help at the command prompt. Note The IP address of Inetdr and IFACEADDR is represented by a decimal number of decisions with a dot. The physical address EtherAddr consists of six bytes, which are represented by hexadecimal notes and is separated by a linker (for example, 00-AA-00-4F-2 A-9C). The items added by the -s parameter belong to a static item, which will not timeout in the ARP cache. These items will be deleted if the TCP / IP protocol is terminated. To create a permanent static ARP cache item, use the appropriate ARP command in the batch file and run the batch file when starting through the Plan Task Program. This command is only available when an internet protocol (TCP / IP) protocol is installed as components of the network adapter property in the network connection. Example To display the ARP cache table of all interfaces, type: ARP -A for interfaces for the assigned IP address of 10.0.0.99, to display its ARP cache table, type: arp -a -n 10.0.0.99 to add IP Address 10.0.0.80 parsing static AA-00-4F-2 A-9C static AA-00-4F-2 A-9C, typing: arp -s 10.0.0.80 00-AA-00-4F-2 A-9C

转载请注明原文地址:https://www.9cbs.com/read-108865.html

New Post(0)