diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..0e807f1 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +FROM python:3.11-slim + +WORKDIR /app + +RUN apt-get update + +COPY . . + +RUN python3 -m pip install --upgrade pip \ + && python3 -m pip install --upgrade -r requirements.txt --root-user-action=ignore + +ENTRYPOINT ["python", "-m", "ghauri.scripts.ghauri"] +CMD ["--help"] diff --git a/README.md b/README.md index b3159a1..fe26904 100644 --- a/README.md +++ b/README.md @@ -21,13 +21,19 @@ ## ***Installation*** +#### Install to your environment - cd to **ghauri** directory. - install requirements: `python3 -m pip install --upgrade -r requirements.txt` - run: `python3 setup.py install` or `python3 -m pip install -e .` - you will be able to access and run the ghauri with simple `ghauri --help` command. - ***OR*** - +#### Run with Docker + - cd to **ghauri** directory. + - install requirements: `docker` + - run: `sudo docker build -t ghauri .` + - after that, you will be able to run ghauri with `sudo docker run --rm ghauri` + +#### If you have any trouble - Follow this [installation guideline](https://github.com/r0oth3x49/ghauri/issues/119#issuecomment-1873049386) if facing an installation issue. ## ***Download Ghauri*** @@ -207,4 +213,4 @@ Ghauri operates both in a browser-like manner and with its own unique methods, a Since developing this tool, I seldom use SQLMap, except in a few cases where Ghauri is still being improved. I encourage you to try it for yourself. -Thank you. \ No newline at end of file +Thank you.