Skip to content
KitploitKITPLOIT
工具博客
提交
工具博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

··订阅源·联系·隐私·© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
SharpExchange — 基于 MS 文档与 MS Exchange 交互的 C# 工具 | Kitploit
工具/GitHubGitHub/ceramicskate0/sharpexchange
钓鱼工具数据泄露信息收集后渗透利用渗透测试学习与教育红队
GitHubceramicskate0/sharpexchange

SharpExchange

基于 MS 文档与 MS Exchange 交互的 C# 工具

查看仓库
102103年前Kitploit 审核通过

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

SharpExchange

这个命令行 POC 展示了如何使用 C# 与 Microsoft Exchange (EWS) 交互,表明除了 Powershell 之外,还可以用其他工具实现。 是的,这是一个简单的 POC,用来展示如何做到这一点。它并非 100% 完善。如果你想展示你高超的 l33t C# 编码或红队技能,欢迎提交 pull request :) 本工具仅供教育目的。请勿用于邪恶或非法用途。

MS 文档:

  • https://learn.microsoft.com/en-us/dotnet/api/microsoft.exchange.webservices.data.exchangeservice?view=exchange-ews-api
  • https://learn.microsoft.com/en-us/exchange/client-developer/exchange-web-services/get-started-with-ews-managed-api-client-applications
  • https://learn.microsoft.com/en-us/dotnet/api/microsoft.exchange.webservices.data.mailbox?view=exchange-ews-api
  • 用 Google 搜索 "Microsoft.Exchange.WebServices" ;)

如果喜欢这个项目,别忘了点 Star 按钮

root@kitploit:~
            
            Required Inputs (Must be in order shown):

            ReadEmailExchange.exe WEBDomain DomainName Password InternalDomainName DUMPItem
                Example WEBDomain: webmail.domain.com
                Example DomainName: User1
                Example Password: SecretPassword
                Example InternalDomainName: domain
                
                Options for DUMPItem:
                    Inbox
                    Sent
                    Drafts
                    Deleted
                    Skype
                    Attachments (Will Download Atatchments from the Inbox, DeletedItems, and Sent Items folders)
                    SendEmail ToEmailAddress~Subject~Body(Body can be file path)~AttachmentLocalFilePath(optional)
                    All (All == will try to dump all the items above)(I would default to this if unsure)

            Optional Inputs:

            ReadEmailExchange.exe WEBDomain DomainName Password InternalDomainName DUMPItem NumberOfSearchResultsToReturn
                            Example NumberOfSearchResultsToReturn (will return a maximum of the number,default 10): 10
                            Note: NumberOfSearchResultsToReturn must be a int/whole number

            Optional Inputs:

            ReadEmailExchange.exe WEBDomain DomainName Password InternalDomainName DUMPItem NumberOfSearchResultsToReturn OutputFileNameOrPath
                Example OutputFileNameOrPath: C:\file.csv
                Note: Program needs permission to write to location
                

请勿用于邪恶目的,或未经授权使用。本工具仅供教育目的,并非漏洞利用程序。

第三方依赖:

  • https://github.com/zzzprojects/html-agility-pack

  • Microsoft.Exchange.WebServices

如果有人决定使用此工具(它在磁盘上已被某些杀毒软件标记),这里有一些 IOC 思路:

  • 它是 C# 写的,因此在启用了 AMSI 的现代系统上,AMSI 很可能发挥作用

  • 可以向磁盘写入文本文件

  • 使用默认的 .NET 用户代理字符串(例如:... .NET CLR ...)

  • 运行时,该 .NET 可执行文件可能会在用户账户的文件夹结构中创建以它命名的临时文件

  • 应用的 GUID

  • 如果审查代码,还会发现更多机会

致谢:

  • Stackover flow
  • MS Docs
下载工具