前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >命令行下的信息搜集

命令行下的信息搜集

作者头像
C4rpeDime
发布2018-08-29 10:35:01
4200
发布2018-08-29 10:35:01
举报
文章被收录于专栏:黑白安全黑白安全
代码语言:javascript
复制
使用wmic识别安装到系统中的补丁情况

[sourcecode language="plain"]C:\> wmic qfe get description,installedOn[/sourcecode]

代码语言:javascript
复制
识别正在运行的服务

[sourcecode language="plain"] C:\>sc query type= service C:\>net start [/sourcecode]

代码语言:javascript
复制
识别开机启动的程序,包括路径

[sourcecode language="plain"]C:\>wmic startup list full[/sourcecode]

代码语言:javascript
复制
ping探测存活主机

[sourcecode language="plain"]D:\>for /L %I in (100,1,254) DO @ping -w 1 -n 1 10.18.180.%I | findstr "TTL=" >> pinglive.txt[/sourcecode]

查看系统中网卡的IP地址和MAC地址

[sourcecode language="plain"]D:\>wmic nicconfig get ipaddress,macaddress[/sourcecode]

查看当前系统是否有屏保保护,延迟是多少

[sourcecode language="plain"]D:\>wmic desktop get screensaversecure,screensavertimeout[/sourcecode]

查看系统中开放的共享

[sourcecode language="plain"] D:\>wmic share get name,path D:\>net share [/sourcecode]

查看系统中开启的日志

[sourcecode language="plain"]C:\>wmic nteventlog get path,filename,writeable[/sourcecode]

清除相关的日志(这里是全部清除)

[sourcecode language="plain"] wevtutil cl "windows powershell" wevtutil cl "security" wevtutil cl "system" [/sourcecode]

查看系统中安装的软件以及版本

[sourcecode language="plain"]C:\>wmic product get name,version[/sourcecode]

查看某个进程的详细信息 (路径,命令行参数等)

[sourcecode language="plain"]C:\>wmic process where name="chrome.exe" list full[/sourcecode]

终止一个进程

[sourcecode language="plain"] D:\>wmic process where name="xshell.exe" call terminate D:\>ntsd -c q -p 进程的PID [/sourcecode]

显示系统中的曾经连接过的无线密码

[sourcecode language="plain"] D:\>netsh wlan show profiles D:\>netsh wlan show profiles name="profiles的名字" key=clear [/sourcecode]

查看当前系统是否是VMWARE

[sourcecode language="plain"]C:\>wmic bios list full | find /i "vmware"[/sourcecode]

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2018-05-111,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档