Loading Dockerfile +7 −16 Original line number Diff line number Diff line FROM kalilinux/kali-rolling FROM kalilinux/kali-rolling:latest RUN apt-get update && \ apt-get install -y git python3-pip figlet sudo; #Install packages dependencies RUN true && \ apt-get install -y boxes php curl xdotool wget; apt-get install -y git python3-pip figlet sudo && \ apt-get install -y boxes php curl xdotool wget WORKDIR /root/hackingtool COPY requirements.txt ./ RUN pip3 install --no-cache-dir boxes flask lolcat requests -r requirements.txt COPY . . RUN true && \ pip3 install boxes flask lolcat requests -r requirements.txt; RUN true && \ echo "/root/hackingtool/" > /home/hackingtoolpath.txt; RUN true && echo "/root/hackingtool/" > /home/hackingtoolpath.txt; EXPOSE 1-65535 ENTRYPOINT ["python3", "/root/hackingtool/hackingtool.py"] No newline at end of file README.md +28 −7 Original line number Diff line number Diff line Loading @@ -240,13 +240,34 @@ ## Use image with Docker ### Run in one click `docker run -it vgpastor/hackingtool` ### Build locally `docker-compose build` `docker-compose run hackingtool` ### Create Docker Image - Create the docker image ```bash docker buitl -t vgpastor/hackingtool . ``` ### Run as container ```bash docker-compose up -d ``` ### Interact with terminal - Get into the container ```bash docker exec -it hackingtool bash ``` **OUTPUT:** ```bash Select Best Option : [1] Kali Linux / Parrot-Os (apt) [2] Arch Linux (pacman) [0] Exit ``` Enter the options and continue. - If need open other ports you can edit the docker-compose.yml file - Volumes are mounted in the container to persist data and can share files between the host and the container Loading docker-compose.yml +4 −3 Original line number Diff line number Diff line version: "3.9" services: hackingtool: build: . stdin_open: true # docker run -i tty: true # docker run -t image: vgpastor/hackingtool container_name: hackingtool stdin_open: true tty: true volumes: - .:/root/hackingtool ports: Loading Loading
Dockerfile +7 −16 Original line number Diff line number Diff line FROM kalilinux/kali-rolling FROM kalilinux/kali-rolling:latest RUN apt-get update && \ apt-get install -y git python3-pip figlet sudo; #Install packages dependencies RUN true && \ apt-get install -y boxes php curl xdotool wget; apt-get install -y git python3-pip figlet sudo && \ apt-get install -y boxes php curl xdotool wget WORKDIR /root/hackingtool COPY requirements.txt ./ RUN pip3 install --no-cache-dir boxes flask lolcat requests -r requirements.txt COPY . . RUN true && \ pip3 install boxes flask lolcat requests -r requirements.txt; RUN true && \ echo "/root/hackingtool/" > /home/hackingtoolpath.txt; RUN true && echo "/root/hackingtool/" > /home/hackingtoolpath.txt; EXPOSE 1-65535 ENTRYPOINT ["python3", "/root/hackingtool/hackingtool.py"] No newline at end of file
README.md +28 −7 Original line number Diff line number Diff line Loading @@ -240,13 +240,34 @@ ## Use image with Docker ### Run in one click `docker run -it vgpastor/hackingtool` ### Build locally `docker-compose build` `docker-compose run hackingtool` ### Create Docker Image - Create the docker image ```bash docker buitl -t vgpastor/hackingtool . ``` ### Run as container ```bash docker-compose up -d ``` ### Interact with terminal - Get into the container ```bash docker exec -it hackingtool bash ``` **OUTPUT:** ```bash Select Best Option : [1] Kali Linux / Parrot-Os (apt) [2] Arch Linux (pacman) [0] Exit ``` Enter the options and continue. - If need open other ports you can edit the docker-compose.yml file - Volumes are mounted in the container to persist data and can share files between the host and the container Loading
docker-compose.yml +4 −3 Original line number Diff line number Diff line version: "3.9" services: hackingtool: build: . stdin_open: true # docker run -i tty: true # docker run -t image: vgpastor/hackingtool container_name: hackingtool stdin_open: true tty: true volumes: - .:/root/hackingtool ports: Loading