https://github.com/rajkumar-justcoder/pentdocks
Web application pentesting tool for Docker
https://github.com/rajkumar-justcoder/pentdocks
Last synced: about 1 year ago
JSON representation
Web application pentesting tool for Docker
- Host: GitHub
- URL: https://github.com/rajkumar-justcoder/pentdocks
- Owner: Rajkumar-justcoder
- Created: 2021-09-29T05:57:26.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-09-29T05:33:56.000Z (over 4 years ago)
- Last Synced: 2025-01-25T18:43:18.707Z (over 1 year ago)
- Size: 1000 Bytes
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
pentdocks
web application pentesting tools for docker
# why should you use it
Usually, people who have one laptop face problems when multitasking. While pentesting, I used to install and run `VMware` in ubuntu to run other tools to finish my work faster. So i found a way to solve this using docker and I fell in love with it. The most amazing thing that i'm fascinated about is that the docker is just like an `OS`, internally running. You can keep backups using `sudo docker save os:latest > os.tar` and many more. just try it, you will love it.
| things which makes it better | docker |vmware|
|------------------------------------------------------------|---|---|
| fast | ✔ | ❌ |
| powerful | ✔ | ✔ |
| easy to use | ✔ | ❌ |
| stable | ✔ | ✔ |
| light weight | ✔ | ❌ |
| multitasking | ✔ | ❌ |
| flexible | ✔ | ❌ |
[download and install docker from here](https://docs.docker.com/engine/install/ubuntu/#install-using-the-convenience-script).
> install-using-the-convenience-script to make the installation process simple.
# installation
install ubuntu image in docker
```
sudo docker pull ubuntu
```
run the image
```
sudo docker run -it --name pentest ubuntu:latest /bin/bash
```
To run the script in docker, you need some requirements
```
apt-get -y update && apt-get -y dist-upgrade && apt-get -y autoremove && apt-get -y autoclean
```
```
apt-get install -y git
```
```
apt-get install -y golang
```
Now open `.bashrc` for exporting the following environment variables
type this in terminal(use any editors)
```
vim ~/.bashrc
```
```
export GOPATH=/home/$USER/go
```
```
export PATH=${PATH}:$GOROOT/bin:/home/$USER/go/bin
```
These changes will take effect after a reboot. Instead of restarting, run
```
source ~/.bashrc
```
If you are not sure which shell you have, then run the command
```
echo $SHELL
```
If it displays: `/bin/bash` – means you have Bash
now clone my repo `https://github.com/diwusec/pentdocks.git` and `cd pentdocks` directory to run `bash docker.sh` for installing the tools
after the installation exit from the docker
> to start the docker again run the container not the image
```
sudo docker exec -it pentest /bin/bash
```
# happy hacking!