Compare commits

1 Commits

Author SHA1 Message Date
8008001995 V1.1.0 (#2)
* Add wordlist

* Add obsidian

* Add new go software

* Update printf

* Add sshuttle

* Add rush install

* Fix bug & add bash_aliases file check

* update Readme

* Update content lsit

* Update version

* Update nuclei install

---------

Co-authored-by: d3vyce <contact@d3vyce.fr>
2023-02-11 12:39:03 +01:00
2 changed files with 39 additions and 66 deletions

View File

@ -4,6 +4,12 @@
# Quick Start
Before running the script make sure you have `go`, `pip` and `rust` installed.
```bash
# https://phoenixnap.com/kb/debian-install-go
sudo apt install python-pip # pip
curl https://sh.rustup.rs -sSf | sh # rust
```
To run the script use the following command:
```Bash
bash <(curl -L https://github.com/d3vyce/PenTools/releases/latest/download/pentools.sh)
@ -23,8 +29,7 @@ I'm working on a compatibility with CentOS and other distribution.
## Software
- Sublime Text
- Obsidian
- Chrome (+Extension: Dark Reader, FoxyProxy, WappAnalyser, Hack-Tools, Bitwarden)
- Terminator
- Chrome (+Extension: Dark Reader, FoxyProxy, WappAnalyser, Hack-Tools)
- FFUF
- PWNcat
- Chisel
@ -43,12 +48,7 @@ I'm working on a compatibility with CentOS and other distribution.
## Alias
- Python server file in pentools folder (command: `filesrv`)
- Open Sublime-Text (command: `sublime`) -> To open Sublime-Text in current folder : `sublime .`
- OpenVPN (command: `vpn [file.ovpn]`)
- Pwncat (command: `pwncat [port]`)
## Automation
- SSH keygen
- Open Sublime-Text (command : `sublime`) -> To open Sublime-Text in current folder : `sublime .`
# Contribute to the project
To participate in the project, you can propose new implementations of tools/binary/software/... via issues or merge request.

View File

@ -79,55 +79,44 @@ software() {
"external_update_url": "https://clients2.google.com/service/update2/crx"
}' > /opt/google/chrome/extensions/cmbndhnoonmghfofefkcccljbkdpamhi.json
printf ${GREEN}"[+] Chrome Extension: Bitwarden\n"
sudo touch /opt/google/chrome/extensions/nngceckbapebfimnlniiiahkandclblb.json
sudo chmod 646 /opt/google/chrome/extensions/nngceckbapebfimnlniiiahkandclblb.json
sudo echo '{
"external_update_url": "https://clients2.google.com/service/update2/crx"
}' > /opt/google/chrome/extensions/nngceckbapebfimnlniiiahkandclblb.json
printf ${GREEN}"[+] terminator\n"
sudo apt install terminator -y >/dev/null 2>&1
printf ${GREEN}"[+] sshuttle\n"
sudo apt install sshuttle -y >/dev/null 2>&1
sudo apt install sshuttle >/dev/null 2>&1
printf ${GREEN}"[+] nuclei\n"
sudo apt install nuclei -y >/dev/null 2>&1
sudo apt install nuclei >/dev/null 2>&1
if ! command -v go &> /dev/null; then
printf ${GREEN}"[+] go\n"
wget https://go.dev/dl/go1.20.1.linux-amd64.tar.gz >/dev/null 2>&1
sudo tar -C /usr/local -xzf go1.20.1.linux-amd64.tar.gz >/dev/null 2>&1
rm go1.20.1.linux-amd64.tar.gz
echo 'export PATH=$PATH:/usr/local/go/bin' >> ~/.profile
source ~/.profile
fi
if ! command -v ffuf &> /dev/null; then
printf ${GREEN}"[+] ffuf\n"
go install github.com/ffuf/ffuf@latest >/dev/null 2>&1
if ! command -v go &> /dev/null
then
printf ${RED}"[x] Missing Go, skipping install of Fuff, Chisel and Nuclei...\n"
else
printf ${ITALIC_LIGHT_CYAN}"[~] ffuf is already installed, skipping...\n"
if ! command -v ffuf &> /dev/null
then
printf ${GREEN}"[+] ffuf\n"
go install github.com/ffuf/ffuf@latest >/dev/null 2>&1
else
printf ${ITALIC_LIGHT_CYAN}"[~] ffuf is already installed, skipping...\n"
fi
if ! command -v chisel &> /dev/null
then
printf ${GREEN}"[+] chisel\n"
go install github.com/jpillora/chisel@latest >/dev/null 2>&1
else
printf ${ITALIC_LIGHT_CYAN}"[~] chisel is already installed, skipping...\n"
fi
fi
if ! command -v chisel &> /dev/null; then
printf ${GREEN}"[+] chisel\n"
go install github.com/jpillora/chisel@latest >/dev/null 2>&1
if ! command -v pip &> /dev/null
then
printf ${RED}"[x] Missing Pip, skipping install of PwnCat...\n"
else
printf ${ITALIC_LIGHT_CYAN}"[~] chisel is already installed, skipping...\n"
fi
if ! command -v pip &> /dev/null; then
printf ${GREEN}"[+] pip\n"
sudo apt install python-pip -y
fi
if ! command -v pwncat-cs &> /dev/null; then
printf ${GREEN}"[+] pwncat-cs\n"
sudo pip install pwncat-cs >/dev/null 2>&1
else
printf ${ITALIC_LIGHT_CYAN}"[~] pwncat-cs is already installed, skipping...\n"
if ! command -v pwncat-cs &> /dev/null
then
printf ${GREEN}"[+] pwncat-cs\n"
sudo pip install pwncat-cs >/dev/null 2>&1
else
printf ${ITALIC_LIGHT_CYAN}"[~] pwncat-cs is already installed, skipping...\n"
fi
fi
}
@ -180,12 +169,6 @@ aliascmd() {
printf ${GREEN}"[+] sublime\n"
echo "alias sublime='/opt/sublime_text/sublime_text'" >> ~/.bash_aliases
printf ${GREEN}"[+] pwncat [port]\n"
echo "alias sublime='sudo pwncat-cs --listen --port '" >> ~/.bash_aliases
printf ${GREEN}"[+] openvpn [file.ovpn]\n"
echo "alias sublime='sudo openvpn '" >> ~/.bash_aliases
echo "# https://github.com/d3vyce/pentools" >> ~/.bash_aliases
source ~/.bash_aliases
}
@ -199,7 +182,7 @@ printf "${YELLOW}
/_/ \___/_/ /_/_/ \____/\____/_/____/
---------------------------------------------
v1.2 - ${ITALIC}https://github.com/d3vyce/pentools \n
v1.1 - ${ITALIC}https://github.com/d3vyce/pentools \n
"
printf ${YELLOW}"[*]${BLUE} What do you want to install?\n"
@ -217,9 +200,6 @@ PWD=$(pwd)
read -p "${BLUE}Target [${YELLOW}$PWD${BLUE}]: ${YELLOW}" TARGET
TARGET=${TARGET:-$PWD}
read -p "${BLUE}Do you want to generate SSH key? (y/n) [${YELLOW}y${BLUE}]: ${YELLOW}" SSH_GEN
SSH_GEN=${SSH_GEN:-y}
case $CHOICE in
1)
wordlist
@ -247,10 +227,3 @@ case $CHOICE in
printf "${RED}[x] Select an option between 1 and 6"
;;
esac
if [ SSH_GEN -eq 'y' ]; then
printf ${GREEN}"[+] Creation of your ssh key pair...\n"
ssh-keygen -q -t rsa -N '' -f ~/.ssh/id_rsa >/dev/null 2>&1
printf "${ITALIC_LIGHT_CYAN}"
cat ~/.ssh/id_rsa.pub
fi