Windows
Windows自动部署过程中的一些凭证(base64)存储位置
C:unattend.xml
C:WindowsPantherUnattend.xml
C:WindowsPantherUnattendUnattend.xml
C:Windowssystem32sysprep.inf
C:Windowssystem32sysprepsysprep.xml
使用Metasploit的 post/windows/gather/enum_unattend 模块也可以获取到
IIS管理凭证的web.config文件常见路径:
C:WindowsMicrosoft.NETFramework64v4.0.30319Configweb.config
C:inetpubwwwrootweb.config
文件内容一般如下:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.web>
<authentication mode="Windows">
<forms>
<credentials passwordFormat="Clear">
<user name="Admin" password="Admin" />
</credentials>
</forms>
</authentication>
</system.web>
</configuration>
包含密码的groups.xml文件和其他一些可能存储凭证的文件
C:ProgramDataMicrosoftGroup PolicyHistory????MachinePreferencesGroupsGroups.xml
domainSYSVOLPolicies????MACHINEPreferencesGroupsGroups.xml
ServicesServices.xml
ScheduledTasksScheduledTasks.xml
PrintersPrinters.xml
DrivesDrives.xml
DataSourcesDataSources.xml
命令查找
使用命令查找包含密码的文件:
findstr /si password *.txt
findstr /si password *.xml
findstr /si password *.ini
查找文件的位置:
C:> dir /b /s unattend.xml
C:> dir /b /s web.config
C:> dir /b /s sysprep.inf
C:> dir /b /s sysprep.xml
C:> dir /b /s *pass*
C:> dir /b /s vnc.ini
第三方软件
McAfee
McAfee的加密凭证存储在sitelist.xml文件中:
%AllUsersProfile%Application DataMcAfeeCommon FrameworkSiteList.xml
VNC
UltraVNC
[ultravnc]
passwd=5FAEBBD0EF0A2413
RealVNC
RealVNC的密码可以直接在注册表进行查询:
reg query HKEY_LOCAL_MACHINESOFTWARERealVNCWinVNC4 /v password
Putty
reg query" HKCUSoftwareSimonTathamPuTTYSessions"
注册表
Registry某些情况下可能会包含凭证
reg query HKLM /f password /t REG_SZ /s
reg query HKCU /f password /t REG_SZ /s
Windows 自动登陆:
reg query "HKLMSOFTWAREMicrosoftWindows NTCurrentversionWinlogon"
SNMP 相关参数:
reg query "HKLMSYSTEMCurrentControlSetServicesSNMP"
PowerSploit相关的模块
PowerSploit也可以用于发现存储的凭证,以下模块支持检查各种文件和注册表中的加密凭证和plain-text:
Get-UnattendedInstallFile
Get-Webconfig
Get-ApplicationHost
Get-SiteListPassword
Get-CachedGPPPassword
Get-RegistryAutoLogon
渗透测试中需要关注的本地凭据
发表于:2017-08-06
作者:re4lity
来源:
 相关文章
这27道Web自动化测试面试题,建议收藏√ 如何对网站和应用程序进行本地化测试? 软件测试之Web测试流程和方法 Web测试与App测试之间的区别 适合新人入门的Web测试指南 技术分享:Web测试方法与技术实战演练- 周排行
- 月排行
- 评论排行
-   跨浏览器网页效果免费自动测试网站分享
-   浏览器兼容+测试计划报告
-   UI自动化测试——页面差异检测
-   Web安全测试漏洞场景
-   web测试和手机测试的区别
-   跨浏览器测试确保更好的用户体验的14...
-   跨浏览器网页效果免费自动测试网站分享
-   浏览器兼容+测试计划报告
-   web测试和手机测试的区别
-   软件测试之全网最全Web端测试点
-   软件测试之Web自动化测试怎么做?Web...
-   UI自动化测试——页面差异检测
-   从软件出发,非功能测试思考总结
-   展望2017,谁是网络技术头牌?
-   C/C++单元测试工具Visual Unit 4 介绍
-   国内外最好用的6款Bug跟踪管理系统
-   性能测试指标评估必读
-   百度软件测试方案模板
-   38张史上最全的IT工程师技能图谱
-   C/C++单元测试工具Visual Unit 4 介绍
-   2019年,你会选哪些安全测试工具?
-   十款Web服务器性能压力测试工具
-   软件测试入门指南:周期、模型和文档化
-   记自动化测试成神学习之路
-   软件测试全景图 -最全的思维导图