-
Notifications
You must be signed in to change notification settings - Fork 348
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
通信协议API可以上线但命令没有回显 #89
Comments
代码中的start和end搜索字符串不必定义那么长,保证唯一性即可:
查看问题是profile中配置的编码算法与rebind库代码无法匹配:
根据文档可以看到定义
|
这里有一个mask编码的算法,它的算法为
|
o.o 现在我还在尝试进行修改,但是mask这里遇到了些问题。这里我用wireshark对cobaltstrike传递的数据包进行了抓取,然后使用payload[0,3]的值作为key进行解密,但是没有解密成功。cobaltstrike的这个mask算法我只在官网上找到了一段简单的描述为xor使用random key。
|
我在cobaltstrike源码中已经找到mask编码的实现情况了 |
看了大佬的分析文章 |
对的,这个mask算法就是使用payload的前4位作为key,然后进行xor,具体算法可见我贴出的以及cobaltstrike中实现 |
并不用到那一步,这个数据前后传递就是加密后的,只需要按照profile中的编码方式,将隐藏在HTTP包中的加密payload提取出来即可,beacon以及teamserver内部会进行自解密 |
我已经编写好了,但是目前还存在一个问题,当执行的命令输出的结果比较大同时目标机器又内存比较小,这样情况下程序会奔。 我这里执行了 大佬有什么解决思路吗? |
能正常上线,但是执行命令没有回显,同时执行命令也没有效果。
这里github只能上传txt,我吧profile和通讯用的demo都改成txt了。
jquery-c2.4.0.profile.txt
c2profile.c.txt
命令好像并没有执行,在
/tmp/
目录下没有看到生成文件大佬能帮忙看一下吗?
The text was updated successfully, but these errors were encountered: