【红队】一款横向移动的无文件命令执行工具

admin 2023年12月13日23:22:24评论19 views字数 1717阅读5分43秒阅读模式
免责声明
【红队】一款横向移动的无文件命令执行工具
本公众号所提供的文字和信息仅供学习和研究使用,请读者自觉遵守法律法规,不得利用本公众号所提供的信息从事任何违法活动。本公众号不对读者的任何违法行为承担任何责任。工具来自网络,安全性自测,如有侵权请联系删除。【红队】一款横向移动的无文件命令执行工具
工具介绍
【红队】一款横向移动的无文件命令执行工具

SharpNoPSExec 是用于横向移动的无文件命令执行。它将查询所有服务并随机选择一个启动类型为禁用或手动、当前状态为停止且具有 LocalSystem 权限的服务来重用它们。

一旦选择服务,它将保存其当前状态,用您选择的有效负载替换二进制路径并执行它。

等待 5 秒后,它将恢复服务配置,您很可能会获得 shell 【红队】一款横向移动的无文件命令执行工具

该工具的灵感来自 #OSEP 对横向移动的 PSExec 解释,在阅读练习时,我意识到我可以在不接触磁盘的情况下执行横向移动,也无需创建新服务来避免检测。

 

【红队】一款横向移动的无文件命令执行工具
工具使用
【红队】一款横向移动的无文件命令执行工具
███████╗██╗  ██╗ █████╗ ██████╗ ██████╗ ███╗   ██╗ ██████╗ ██████╗ ███████╗███████╗██╗  ██╗███████╗ ██████╗██╔════╝██║  ██║██╔══██╗██╔══██╗██╔══██╗████╗  ██║██╔═══██╗██╔══██╗██╔════╝██╔════╝╚██╗██╔╝██╔════╝██╔════╝███████╗███████║███████║██████╔╝██████╔╝██╔██╗ ██║██║   ██║██████╔╝███████╗█████╗   ╚███╔╝ █████╗  ██║     ╚════██║██╔══██║██╔══██║██╔══██╗██╔═══╝ ██║╚██╗██║██║   ██║██╔═══╝ ╚════██║██╔══╝   ██╔██╗ ██╔══╝  ██║     ███████║██║  ██║██║  ██║██║  ██║██║     ██║ ╚████║╚██████╔╝██║     ███████║███████╗██╔╝ ██╗███████╗╚██████╗╚══════╝╚═╝  ╚═╝╚═╝  ╚═╝╚═╝  ╚═╝╚═╝     ╚═╝  ╚═══╝ ╚═════╝ ╚═╝     ╚══════╝╚══════╝╚═╝  ╚═╝╚══════╝ ╚═════╝
Version: 0.0.3Author: Julio Ureña (PlainText)Twitter: @juliourena
SharpNoPSExec.exe --target=192.168.56.128 --payload=""c:windowssystem32cmd.exe /c powershell -exec bypass -nop -e ZQBjAGgAbwAgAEcAbwBkACAAQgBsAGUAcwBzACAAWQBvAHUAIQA=""
Required Arguments:--target=       - IP or machine name to attack.--payload=      - Payload to execute in the target machine.
Optional Arguments:--username=     - Username to authenticate to the remote computer.--password=     - Username's password.--domain=       - Domain Name, if no set a dot (.) will be used instead.
--service=      - Service to modify to execute the payload, after the payload is completed the service will be restored.Note: If not service is specified the program will look for a random service to execute.Note: If the selected service has a non-system account this will be ignored.
--help          - Print help information.

【红队】一款横向移动的无文件命令执行工具

【红队】一款横向移动的无文件命令执行工具

 

下载链接
【红队】一款横向移动的无文件命令执行工具

https://github.com/juliourena/SharpNoPSExec

 

原文始发于微信公众号(贝雷帽SEC):【红队】一款横向移动的无文件命令执行工具

  • 左青龙
  • 微信扫一扫
  • weinxin
  • 右白虎
  • 微信扫一扫
  • weinxin
admin
  • 本文由 发表于 2023年12月13日23:22:24
  • 转载请保留本文链接(CN-SEC中文网:感谢原作者辛苦付出):
                   【红队】一款横向移动的无文件命令执行工具http://cn-sec.com/archives/2295841.html

发表评论

匿名网友 填写信息