alxchk / pupy

OpenSource cross-platform python security toolkit (remote shell)
Other
45 stars 13 forks source link

Docker compose support and install script #11

Closed Strazzom closed 6 years ago

Strazzom commented 6 years ago

I have implemented docker compose support. Pupy now has a single script that will install docker and docker compose on a Debian 9 system (Kali is not tested). It pulls the compiled payload templates from releases. It will also build a "base" docker image that includes only the dependencies of pupy, but not the installation itself. This is to avoid redundancy, as the pupy directory is mounted directly in the image anyway, rather than copied over during the build.

No existing files have been modified in any way, and it is possible to use both methods (compose and the regular image) for deploying pupy if the user should wish to.

To completely configure the environment, simply run ./install.sh as a regular user (it will prompt for sudo password). After that, starting pupy via compose is as simple as ./pupy_start_compose.sh in the pupy subdirectory.

@alxchk: You may want to include the base image in the automated docker build process. If you do, remember to edit the last line of install.sh to pull from the repo rather than build. I have reduced the base version to 863MB.