【奇技淫巧】windows下可以通过wmic获取进程安装路径

  • A+
所属分类:安全文章

【奇技淫巧】windows下可以通过wmic获取进程安装路径


查询mysql路径:

wmic process where(description="mysqld.exe") >> mysql.log


输出到当前目录下

wmic process where(description="cmd.exe")


显示结果为:

【奇技淫巧】windows下可以通过wmic获取进程安装路径


附带两条

wmic service where caption="zhudongfangyu" call stopservice   wmic service where name="zhudongfangyu" call stopservice echo y|wmic process where processid=6428 call terminate  干掉pid echo y|wmic process where name="SogouExplorer.exe" call terminate 干掉进程

【奇技淫巧】windows下可以通过wmic获取进程安装路径

本文始发于微信公众号(T00ls):【奇技淫巧】windows下可以通过wmic获取进程安装路径

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: