jm33-m0 / emp3r0r

Linux/Windows post-exploitation framework made by linux user
https://infosec.exchange/@jm33
MIT License
1.24k stars 235 forks source link

C2 transport proxy refuses connection #219

Closed jm33-m0 closed 1 year ago

jm33-m0 commented 1 year ago

Describe the bug

When C2 transport proxy is configured for agent, makeTransport complains that proxy server is refusing connections.

To Reproduce

Steps to reproduce the behavior:

  1. gen_agent, and enable Shadowsocks/KCP or other C2 transport proxy
  2. Run the generated agent binary on target machine
  3. Agent throws connection refused error and exits

Expected behavior

Agent should connect via configured proxy to C2 server without error.

Screenshots

Your environment

emp3r0r.json

I suggest that you format your JSON with an online JSON formatter, for example https://codebeautify.org/jsonviewer

emp3r0r.json:
Not relevant

CC

Linux distro name and version, use cat /etc/*release* to view, paste the result below

# cat /etc/*release*

Not relevant

C2 Transport

Agent

OS

CPU architecture

Additional context