Microsoft Windows Command code

Joined
Jun 17, 2017
Messages
103
#21
bitsadmin ftw when pentesting. Most people don't know it exists. Can be useful when you don't have a browser installed or at your disposal ;)
 

TheJokerz

Level 6
Verified
Joined
Jan 7, 2016
Messages
250
OS
Windows 10
Antivirus
Webroot
#22
This is awesome, thanks to all those who contributed! I wish I had more to add.

I use net use a lot at work.

net use H: \\someshareddrive\somefolder\someotherfolder /p:Y

This will map drives, you can also remove mapped drives

net use H: /delete
 

TheJokerz

Level 6
Verified
Joined
Jan 7, 2016
Messages
250
OS
Windows 10
Antivirus
Webroot
#23
Windows wmic command line command

Wmic is not very well known command, you can do tons of stuff with it, I use it for network setup.

Code:
wmic nicconfig where DHCPEnabled=TRUE call SetDNSServerSearchOrder ("208.67.222.222","208.67.220.220")
Setup DNS Servers on DHCP Enabled Network (OpenDNS)

Code:
wmic nicconfig where macaddress="D0:17:C2:D0:30:DC" call EnableStatic ("10.10.10.12"), ("255.255.255.248")
wmic nicconfig where macaddress="D0:17:C2:D0:30:DC" call SetDNSServerSearchOrder ("84.200.69.80","84.200.70.40")
wmic nicconfig where macaddress="D0:17:C2:D0:30:DC" call SetGateways ("10.10.10.10")
Setup IP, Gateway and DNS Servers based on the MAC address (it is more practical than using a name)
You can also use wmic to get serial number of pc for dells, lenovo ect.

wmic bios get serialnumber
 
Likes: TairikuOkami