Skip to content

Instantly share code, notes, and snippets.

@SevenLayerJedi
Created December 21, 2018 19:31
Show Gist options
  • Save SevenLayerJedi/62260146bb926bee9342395d96317329 to your computer and use it in GitHub Desktop.
Save SevenLayerJedi/62260146bb926bee9342395d96317329 to your computer and use it in GitHub Desktop.
Windows Network Commands
# IP Configuration
ipconfig /all
# Local and DNS Cache
ipconfig /displaydns
# Show Open Connections
netstat -ano
# Netstat Loop
netstat -anop tcp 1
# Show Listening Ports
netstat -an | findstr LISTENING
# Print the Routing Table
route print
# Display ARP Table
arp -a
# DNS Zone XFER
nslookup, set type=any, ls -d domain > results.txt, exit
# Domain SRV lookup (_ldap,_kerberos,_sip)
nslookup -type=SRV _www._tcp.url.com
# TFTP File transfer (GET)
tftp -I 10.10.10.10 GET passwords.log
# Show WiFi networks saved
netsh wlan show profiles
# Disable Firewall
netsh firewall set cpmode disable
# Export WiFi clear text password
netsh wlan export profile folder=, key=clear
# List Interface ID's/MTU's
netsh interface ip show interfaces
# Set IP
netsh interface ip set address local static 10.10.10.10 255.255.255.0 10.10.10.254 <ID>
# Set DNS Server
netsh interface ip set dns local static 1.1.1.1
# Set interface to use DHCP
netsh interface ip set address local dhcp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment