0x01 获取操作系统信息
- 识别操作系统名称及版本 12systeminfo | findstr /B /C:"OS Name" /C:"OS Version"systeminfo | findstr /B /C:"OS 名称" /C:"OS 版本"
- 识别系统体系结构 1echo %PROCESSOR_ARCHITECTURE%
- 查看所有环境变量 1SET
- 查看在线用户,有时候低权限看不到 1query user
- 查询终端端口 1REG query HKLM\SYSTEM\CurrentControlSet\Control\Terminal" "Server\WinStations\RDP-Tcp /v PortNumber
- 查看某特定用户信息 1net user test
0x02 获取网络信息
- 查看路由表信息 1route print
- 查看ARP缓存信息 1arp -a
- 查看网络连接和防火墙规则 123netstat -anonetsh firewall show confignetsh firewall show state
0x03 应用程序及服务信息
- 查看计划任务 1schtasks /QUERY /fo LIST /v
- 查看服务进程ID 1tasklist /SVC
- 查看已经启动Windows 服务 1net start
- 查看安装驱动 1DRIVERQUERY
- 查看安装程序和版本信息(漏洞利用线索) 1wmic product list brief
- 查看服务、进程和启动程序信息 123wmic service list briefwmic process list briefwmic startup list brief
- 查看服务权限 1sc qc mysqla
- 查看安装补丁和时间信息 1wmic qfe get Caption,Description,HotFixID,InstalledOn
- 查看特定漏洞补丁信息 1wmic qfe get Caption,Description,HotFixID,InstalledOn | findstr /C:"KBxxxxxxx"
0x04 敏感数据和目录
- 查找密码文件或其它敏感文件12345cd/dir /b/s password.txt # Will search for all password.txt files on the filesystem.dir /b/s config.* # Will search for all files starting with 'config' on the filesystem.findstr /si password *.xml *.ini *.txtfindstr /si login *.xml *.ini *.txt
0x05 文件系统
- 打包 1rar a -k -r -s -m3 c:\1.rar c:\folde
- 检查文件夹可写状态 1dir /a-r-d /s /b