the-useless-one / pywerview

A (partial) Python rewriting of PowerSploit's PowerView
GNU General Public License v3.0
908 stars 113 forks source link

Added a Dockerfile for easy build from source #54

Closed sdcampbell closed 1 year ago

sdcampbell commented 1 year ago

I had some trial and error when building from source so I created this Dockerfile to make it easy. All it takes to build the Docker image is docker build -t pywerview .

To run it: docker run --rm -it -v /data:$(pwd) pywerview. Any output saved to /data will land in the current working directory.

Additionally, it would greatly simplify instructions to build from source if you updated the wiki with the RUN line, not including the word RUN.

ThePirateWhoSmellsOfSunflowers commented 1 year ago

Hello,

I pushed a Dockerfile on the develop branch. Can you test it please ?

:sunflower:

sdcampbell commented 1 year ago

ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt'

sdcampbell commented 1 year ago

I'll work with that later today and see if I can fix it.

ThePirateWhoSmellsOfSunflowers commented 1 year ago

You need to run

git pull
git checkout develop
docker build -t pywerview .
sdcampbell commented 1 year ago

Yes, that error was my fault. Your Dockerfile worked perfectly.

ThePirateWhoSmellsOfSunflowers commented 1 year ago

No problem! Closing the PR now.

:sunflower: