前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >SharpSpray:一款功能强大的活动目录密码喷射安全工具

SharpSpray:一款功能强大的活动目录密码喷射安全工具

作者头像
FB客服
发布2021-11-16 10:53:39
6050
发布2021-11-16 10:53:39
举报
文章被收录于专栏:FreeBuf

关于SharpSpray

SharpSpray是一款功能强大的活动目录密码喷射安全工具,该工具基于.NET C#开发,可以帮助广大研究人员对活动目录的安全性进行分析。

SharpSpray是DomainPasswordSpray工具的C#实现,并且还引入了很多增强功能以及额外功能。除此之外,该工具还使用了LDAP协议来跟域活动目录服务进行通信。

功能介绍

可以从域上下文的内部和外部进行操作。

从列表中排除禁用域的帐户。

自动从活动目录中收集域用户信息。

通过在一次锁定尝试中排除帐户,避免潜在的帐户锁定。

通过自动收集域锁定账户来观察窗口设置,避免潜在的帐户锁定。

与域细粒度密码策略兼容。

用户自定义LDAP筛选器,例如(description=admin)。

支持设置每次身份验证尝试之间的延迟(秒)。

支持设置每次身份验证尝试之间的抖动。

支持单个密码或密码列表。

单文件控制台终端应用程序。

工具下载

广大研究人员可以使用下列命令将该项目源码克隆至本地:

代码语言:javascript
复制
git clone https://github.com/iomoath/SharpSpray.git

工具使用

命令行参数

代码语言:javascript
复制
> SharpSpray.exe --help

 

  -v, --Verbose       Show verbose messages.

  -u                  (Optional) Username list file path. This will be

                      automatically fetched from the active directory if not specified.

  -p                  A single password that will be used to perform the password spray.

  -k, --pl            (Optional) Password List file path.

  -d                  (Optional) Specify a domain name.

  -m                  Use this option if spraying from a host located outside the Domain context.

  -q, --dc-ip         Required when the option 'm' OutsideDomain is checked

  -x                  Attempts to exclude disabled accounts

                      from the user list (Not supported with the option -m)

  -z                  Exclude accounts within 1 attempt of

                      locking out (Not supported with the option -m)

  -f                  Custom LDAP filter for users, e.g. "(description=*admin*)"

  -o                  A file to output the results to.

  -w                  Do not relay on domain lockout observation window settings and use this specific value. (Default 32 minute)

  -s                  (Optional) Delay in seconds between each authentication attempt.

  -j                  (Optional) Jitter in seconds.

  --Force             Force start without asking for confirmation.

  --get-users-list    Get the domain users list from the active directory.

  --show-examples     Get domain users list from the active directory.

  --show-args         Show command line args

  --help              Display this help screen.

参数介绍

代码语言:javascript
复制
-v, --Verbose       显示Verbose信息

  -u                (可选)用户名列表文件路径,如果不指定,则自动从活动目录获取

  -p                用于执行密码喷射的单个密码

  -k, --pl            (可选)密码列表文件路径

  -d               (可选)指定目标域名

  -m              如果目标主机位于域上下文之外的位置,则可以使用该选项

  -q, --dc-ip         检测’m’参数时要求使用该选项

  -x                尝试从用户列表中排除已禁用的账号

  -z                 通过在一次锁定尝试中排除帐户,避免潜在的帐户锁定

  -f                 自定义LDAP过滤器,例如"(description=*admin*)"

  -o                 存储处理结果的文件

  -s                  (可选)每次身份验证尝试之间的延迟(秒)

  -j                  (可选)以秒为单位的抖动

  --Force              强制执行任务,无需进行确认

  --get-users-list        从活动目录获取域用户列表

  --show-examples      从活动目录获取域用户列表

  --show-args          显示命令行参数

  --help              显示帮助信息

工具使用样例

样例1

代码语言:javascript
复制
SharpSpray.exe -v -x -z --pl password.txt

SharpSpray.exe -x -z -u users.txt --pl psswd.txt

SharpSpray.exe -x -z -u users.txt -p Passw0rd!

SharpSpray.exe -x -z -s 3 -j 1 -u users.txt -k psswd.txt -o sprayed.txt

样例2

代码语言:javascript
复制
SharpSpray.exe -w 32 -m -d DC-1.local --dc-ip 10.10.20.20 -u users.txt --pl psswd.txt

SharpSpray.exe -w 32 -s 3 -j 1 -m -d DC-1.local --dc-ip 10.10.20.20 -u users.txt --pl psswd.txt
代码语言:javascript
复制
样例3
代码语言:javascript
复制
SharpSpray.exe --get-users-list

SharpSpray.exe --get-users-list > users.txt

PS> .\SharpSpray.exe --get-users-list | Out-File -Encoding ascii users.txt
代码语言:javascript
复制
如何从活动目录中仅获取用户列表

下列命令可以从目标活动目录中获取域用户信息,并打印在终端窗口中:

代码语言:javascript
复制
SharpSpray.exe -x -z --get-users-list


-x: Exclude disabled accounts from the user list.

-z: Exclude accounts within 1 attempt of locking out.
参数介绍
代码语言:javascript
复制
 -x: 从用户列表中排除已禁用的账号

 -z: 一次尝试锁定后排除目标账号

项目地址

https://github.com/iomoath/SharpSpray

参考资料

https://c99.sh/sharpspray-active-directory-password-spraying-tool/

本文参与 腾讯云自媒体同步曝光计划,分享自微信公众号。
原始发表:2021-11-14,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 FreeBuf 微信公众号,前往查看

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

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

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 关于SharpSpray
  • 功能介绍
  • 工具下载
  • 工具使用
    • 命令行参数
      • 参数介绍
      • 工具使用样例
        • 样例1
          • 样例2
          • 项目地址
          • 参考资料
          相关产品与服务
          多因子身份认证
          多因子身份认证(Multi-factor Authentication Service,MFAS)的目的是建立一个多层次的防御体系,通过结合两种或三种认证因子(基于记忆的/基于持有物的/基于生物特征的认证因子)验证访问者的身份,使系统或资源更加安全。攻击者即使破解单一因子(如口令、人脸),应用的安全依然可以得到保障。
          领券
          问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档