Created
December 21, 2018 19:31
-
-
Save SevenLayerJedi/62260146bb926bee9342395d96317329 to your computer and use it in GitHub Desktop.
Windows Network Commands
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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