├── LICENSE.md ├── README.md └── pdtools.sh /LICENSE.md: -------------------------------------------------------------------------------- 1 | 2 | The MIT License (MIT) 3 | 4 | Copyright (c) 2021 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE. 23 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # 🔥 pdtools 🔥 2 | [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) 3 | ### v1.0 Latest 4 | Downloads and installs project discovery tools. 5 | 6 | ### Usage: 7 | 8 | #### Install Tools Excluding Golang 9 | 10 | ```bash 11 | ./pdtools.sh 12 | ``` 13 | 14 | #### Install Tools Including Golang 15 | 16 | ```bash 17 | ./pdtools.sh go 18 | ``` 19 | 20 | -------------------------------------------------------------------------------- /pdtools.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | 4 | function banner() { 5 | 6 | echo " _ _ _ " 7 | echo " | | | | | " 8 | echo " _ __ __| | |_ ___ ___ | |___ " 9 | echo " | '_ \ / _ | __/ _ \ / _ \| / __| " 10 | echo " | |_) | (_| | || (_) | (_) | \__ \ " 11 | echo " | .__/ \__,_|\__\___/ \___/|_|___/ " 12 | echo " | | " 13 | echo " |_| " 14 | echo " Updater/Installer " 15 | echo "" 16 | echo "" 17 | 18 | } 19 | 20 | # Install golang 21 | function main() { 22 | 23 | # Display the ASCII banner 24 | banner 25 | 26 | if [ "$1" != "go" ]; then 27 | 28 | # Download pd tools 29 | echo "----- [+] Installing pd tools" 30 | echo "" 31 | execute_tools 32 | else 33 | 34 | # Download golang language and install pd tools 35 | echo "----- [+] Installing Golang and pd tools" 36 | echo "" 37 | wget https://dl.google.com/go/go1.16.5.linux-amd64.tar.gz 38 | tar -xvf go1.16.5.linux-amd64.tar.gz 39 | mv go /usr/local 40 | export GOROOT=/usr/local/go 41 | export GOPATH=$HOME/go 42 | export PATH=$GOPATH/bin:$GOROOT/bin:$PATH 43 | echo 'export GOROOT=/usr/local/go' >> ~/.bash_profile 44 | echo 'export GOPATH=$HOME/go' >> ~/.bash_profile 45 | echo 'export PATH=$GOPATH/bin:$GOROOT/bin:$PATH' >> ~/.bash_profile 46 | rm *.gz 47 | execute_tools 48 | fi 49 | } 50 | 51 | # Update/Install the project discovery tools tools 52 | function execute_tools() { 53 | GO111MODULE=on go get -u -v github.com/projectdiscovery/nuclei/v2/cmd/nuclei 54 | GO111MODULE=on go get -u -v github.com/projectdiscovery/subfinder/v2/cmd/subfinder 55 | GO111MODULE=on go get -u -v github.com/projectdiscovery/httpx/cmd/httpx 56 | GO111MODULE=on go get -u -v github.com/projectdiscovery/naabu/v2/cmd/naabu 57 | GO111MODULE=on go get -u -v github.com/projectdiscovery/dnsx/cmd/dnsx 58 | GO111MODULE=on go get -u -v github.com/projectdiscovery/proxify/cmd/proxify 59 | GO111MODULE=on go get -u -v github.com/projectdiscovery/notify/cmd/notify 60 | go install -v github.com/projectdiscovery/chaos-client/cmd/chaos@latest 61 | } 62 | 63 | # Run functions sequentially. 64 | main $1 65 | --------------------------------------------------------------------------------