Windows Utility Commands# Count the number of connections in the established state./C is the number of statistics rows,/I is ignored case
" established " /C
View Code
# count the number of connections in the TIME_WAIT state, usually used to determine if there is a CC attack ...
" time_wait " /C
View Code
# Refresh the DNS cache
Ipconfig/flushdns
View Code
# Export IP to C drive Ip.txt
Netsh-c interface IP Dump > c:\ip.txt
View Code
# do route tracking for 192.168.0.1
Tracert 192.168.0.1
View Code
# View native IPv4 routing table
Route print-4
View Code
# View native IPv6 routing table
Route print-6
View Code
# View a list of native interfaces
Route print Interfaceroute Print no interface
View Code
# Add route
Route ADD 10.35.10.0 MASK 255.255.255.0 10.35.10.104 [METRIC METRIC] [IF Interface]
View Code
# Modify the route, change can only be used to modify the gateway and metric
Route change 10.35.10.0 MASK 255.255.255.0 10.35.10.104 [METRIC METRIC] [IF Interface]
View Code
# Delete route
Route DELETE 10.35.10.0
View Code
# Detailed route command format
ROUTE [-F] [ -4|-6] command [destination] [MASK netmask] [gateway] [METRIC METRIC] [IF interface]-F : Clears the routing table for all gateways. If used in conjunction with a command, clear the routing table -4 : ForceThe use of IPv4-6: Force the use of ipv6command Print: Print routing add : Add route before running the command Delete: Delete route change: Modify existing route destination: Target host Mask: Specifies the next parameter is the netmask value netmask: 255.255.255.255Gateway : Specify Gateway Interface: Specifies the interface number of the route metric: Specifies the metric, such as the cost of the target
View Code
Windows Utility Commands