Windows常用命令行
查看文件的MD5
certutil -hashfile E:\test.exe MD5
其他相关命令:
certutil -hashfile E:\test.exe SHA1
certutil -hashfile E:\test.exe SHA256
查看端口状态
netstat [-a] [-b] [-e] [-f] [-n] [-o] [-p proto] [-r] [-s] [-x] [-t] [interval]
命令的作用:显示协议统计信息和当前 TCP/IP 网络连接。
参数列表可用以下命令查看:
netstat /?
命令执行后可得到下面的参数列表。
参数列表:
可以不带参数,也可以带多个参数,多个参数选项可以连着用,比如:
netstat
netstat -a
netstat -ano
还可以结合查找功能减少显示信息:
netstat -ano|findstr “TCP” // 查看所有TCP端口
netstat -ano|findstr “1234” // 查看1234这个端口
查看进程信息
tasklist [/S system [/U username [/P [password]]]]
[/M [module] | /SVC | /V] [/FI filter] [/FO format] [/NH]
参数列表可用以下命令查看:
tasklist /?
查看DLL库导出接口
打开命令提示符窗口
输入命令:
dumpbin /exports 目录/xxx.dll