Compare commits

16 Commits

Author SHA1 Message Date
c8e587ef48 Add pwncat alias 2023-02-15 15:57:15 -05:00
f11ffe337f Simplify if statement 2023-02-15 15:50:51 -05:00
8ad487d77c Fix apt install 2023-02-15 15:48:47 -05:00
bcb9145d5b Add terminator 2023-02-15 15:48:30 -05:00
92595c03a5 Add ssh key generation options 2023-02-15 15:46:52 -05:00
82c2f91490 Update nuclei install 2023-02-11 06:35:55 -05:00
26480cad16 Update version 2023-02-11 06:06:20 -05:00
5a0b979b28 Update content lsit 2023-02-11 06:04:56 -05:00
1b0fe8fc01 update Readme 2023-02-11 06:01:16 -05:00
43a549c1ea Fix bug & add bash_aliases file check 2023-02-11 06:01:05 -05:00
02194a66eb Add rush install 2023-02-11 05:42:32 -05:00
5a80546285 Add sshuttle 2023-02-11 05:38:08 -05:00
306f0b01ca Update printf 2023-02-11 05:37:31 -05:00
4a722df494 Add new go software 2023-02-11 05:36:17 -05:00
ac7e898f8b Add obsidian 2023-02-11 05:33:38 -05:00
4e67ec5a2b Add wordlist 2023-02-11 05:33:17 -05:00
3 changed files with 38 additions and 95 deletions

View File

@ -1,14 +0,0 @@
name: Shellcheck
on: [push]
jobs:
shellcheck:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Set up shellcheck
run: |
apt update
apt install -y shellcheck
- name: Analysing the code with shellcheck
run: find . -type f -name "*.sh" | xargs shellcheck -S warning

View File

@ -1,9 +1,15 @@
# PenTools # PenTools
![terminal](images/terminal.png) ![terminal](https://github.com/d3vyce/PenTools/blob/main/images/terminal.png)
# Quick Start # 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: To run the script use the following command:
```Bash ```Bash
bash <(curl -L https://github.com/d3vyce/PenTools/releases/latest/download/pentools.sh) 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 ## Software
- Sublime Text - Sublime Text
- Obsidian - Obsidian
- Chrome (+Extension: Dark Reader, FoxyProxy, WappAnalyser, Hack-Tools, Bitwarden) - Chrome (+Extension: Dark Reader, FoxyProxy, WappAnalyser, Hack-Tools)
- Terminator
- FFUF - FFUF
- PWNcat - PWNcat
- Chisel - Chisel
@ -44,11 +49,6 @@ I'm working on a compatibility with CentOS and other distribution.
## Alias ## Alias
- Python server file in pentools folder (command: `filesrv`) - Python server file in pentools folder (command: `filesrv`)
- Open Sublime-Text (command : `sublime`) -> To open Sublime-Text in current folder : `sublime .` - 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
# Contribute to the project # Contribute to the project
To participate in the project, you can propose new implementations of tools/binary/software/... via issues or merge request. To participate in the project, you can propose new implementations of tools/binary/software/... via issues or merge request.

View File

@ -13,7 +13,7 @@ wordlist() {
mkdir $TARGET/wordlist >/dev/null 2>&1 mkdir $TARGET/wordlist >/dev/null 2>&1
printf ${GREEN}"[+] rockyou.txt\n" printf ${GREEN}"[+] rockyou.txt\n"
wget -q -O - https://github.com/brannondorsey/naive-hashcat/releases/download/data/rockyou.txt > $TARGET/wordlist/rockyou.txt 2>&1 curl https://github.com/brannondorsey/naive-hashcat/releases/download/data/rockyou.txt > $TARGET/wordlist/rockyou.txt 2>&1
printf ${GREEN}"[+] common.txt\n" printf ${GREEN}"[+] common.txt\n"
curl http://ffuf.me/wordlist/common.txt > $TARGET/wordlist/common.txt 2>&1 curl http://ffuf.me/wordlist/common.txt > $TARGET/wordlist/common.txt 2>&1
@ -54,38 +54,31 @@ software() {
printf ${GREEN}"[+] Chrome Extension: FoxyProxy\n" printf ${GREEN}"[+] Chrome Extension: FoxyProxy\n"
sudo touch /opt/google/chrome/extensions/gcknhkkoolaabfmlnjonogaaifnjlfnp.json sudo touch /opt/google/chrome/extensions/gcknhkkoolaabfmlnjonogaaifnjlfnp.json
sudo chmod 646 /opt/google/chrome/extensions/gcknhkkoolaabfmlnjonogaaifnjlfnp.json sudo chmod 646 /opt/google/chrome/extensions/gcknhkkoolaabfmlnjonogaaifnjlfnp.json
echo '{ sudo echo '{
"external_update_url": "https://clients2.google.com/service/update2/crx" "external_update_url": "https://clients2.google.com/service/update2/crx"
}' > /opt/google/chrome/extensions/gcknhkkoolaabfmlnjonogaaifnjlfnp.json }' > /opt/google/chrome/extensions/gcknhkkoolaabfmlnjonogaaifnjlfnp.json
printf ${GREEN}"[+] Chrome Extension: Dark Reader\n" printf ${GREEN}"[+] Chrome Extension: Dark Reader\n"
sudo touch /opt/google/chrome/extensions/eimadpbcbfnmbkopoojfekhnkhdbieeh.json sudo touch /opt/google/chrome/extensions/eimadpbcbfnmbkopoojfekhnkhdbieeh.json
sudo chmod 646 /opt/google/chrome/extensions/eimadpbcbfnmbkopoojfekhnkhdbieeh.json sudo chmod 646 /opt/google/chrome/extensions/eimadpbcbfnmbkopoojfekhnkhdbieeh.json
echo '{ sudo echo '{
"external_update_url": "https://clients2.google.com/service/update2/crx" "external_update_url": "https://clients2.google.com/service/update2/crx"
}' > /opt/google/chrome/extensions/eimadpbcbfnmbkopoojfekhnkhdbieeh.json }' > /opt/google/chrome/extensions/eimadpbcbfnmbkopoojfekhnkhdbieeh.json
printf ${GREEN}"[+] Chrome Extension: WappAnalyser\n" printf ${GREEN}"[+] Chrome Extension: WappAnalyser\n"
sudo touch /opt/google/chrome/extensions/gppongmhjkpfnbhagpmjfkannfbllamg.json sudo touch /opt/google/chrome/extensions/gppongmhjkpfnbhagpmjfkannfbllamg.json
sudo chmod 646 /opt/google/chrome/extensions/gppongmhjkpfnbhagpmjfkannfbllamg.json sudo chmod 646 /opt/google/chrome/extensions/gppongmhjkpfnbhagpmjfkannfbllamg.json
echo '{ sudo echo '{
"external_update_url": "https://clients2.google.com/service/update2/crx" "external_update_url": "https://clients2.google.com/service/update2/crx"
}' > /opt/google/chrome/extensions/gppongmhjkpfnbhagpmjfkannfbllamg.json }' > /opt/google/chrome/extensions/gppongmhjkpfnbhagpmjfkannfbllamg.json
printf ${GREEN}"[+] Chrome Extension: Hack-Tools\n" printf ${GREEN}"[+] Chrome Extension: Hack-Tools\n"
sudo touch /opt/google/chrome/extensions/cmbndhnoonmghfofefkcccljbkdpamhi.json sudo touch /opt/google/chrome/extensions/cmbndhnoonmghfofefkcccljbkdpamhi.json
sudo chmod 646 /opt/google/chrome/extensions/cmbndhnoonmghfofefkcccljbkdpamhi.json sudo chmod 646 /opt/google/chrome/extensions/cmbndhnoonmghfofefkcccljbkdpamhi.json
echo '{ sudo echo '{
"external_update_url": "https://clients2.google.com/service/update2/crx" "external_update_url": "https://clients2.google.com/service/update2/crx"
}' > /opt/google/chrome/extensions/cmbndhnoonmghfofefkcccljbkdpamhi.json }' > /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
echo '{
"external_update_url": "https://clients2.google.com/service/update2/crx"
}' > /opt/google/chrome/extensions/nngceckbapebfimnlniiiahkandclblb.json
printf ${GREEN}"[+] terminator\n" printf ${GREEN}"[+] terminator\n"
sudo apt install terminator -y >/dev/null 2>&1 sudo apt install terminator -y >/dev/null 2>&1
@ -96,20 +89,13 @@ software() {
sudo apt install nuclei -y >/dev/null 2>&1 sudo apt install nuclei -y >/dev/null 2>&1
if ! command -v go &> /dev/null; then if ! command -v go &> /dev/null; then
printf ${GREEN}"[+] go\n" printf ${RED}"[x] Missing Go, skipping install of Fuff, Chisel and Nuclei...\n"
wget https://go.dev/dl/go1.20.1.linux-amd64.tar.gz >/dev/null 2>&1 else
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 $HOME/.profile
fi
if ! command -v ffuf &> /dev/null; then if ! command -v ffuf &> /dev/null; then
printf ${GREEN}"[+] ffuf\n" printf ${GREEN}"[+] ffuf\n"
go install github.com/ffuf/ffuf@latest >/dev/null 2>&1 go install github.com/ffuf/ffuf@latest >/dev/null 2>&1
else else
printf ${ITALIC_LIGHT_CYAN}"[~] ffuf is already installed, skipping...\n" printf ${ITALIC_LIGHT_CYAN}"[~] ffuf is already installed, skipping...\n"
fi fi
if ! command -v chisel &> /dev/null; then if ! command -v chisel &> /dev/null; then
@ -118,18 +104,18 @@ software() {
else else
printf ${ITALIC_LIGHT_CYAN}"[~] chisel is already installed, skipping...\n" printf ${ITALIC_LIGHT_CYAN}"[~] chisel is already installed, skipping...\n"
fi fi
if ! command -v pip &> /dev/null; then
printf ${GREEN}"[+] pip\n"
sudo apt install python-pip -y
fi fi
if ! command -v pip &> /dev/null; then
printf ${RED}"[x] Missing Pip, skipping install of PwnCat...\n"
else
if ! command -v pwncat-cs &> /dev/null; then if ! command -v pwncat-cs &> /dev/null; then
printf ${GREEN}"[+] pwncat-cs\n" printf ${GREEN}"[+] pwncat-cs\n"
sudo pip install pwncat-cs >/dev/null 2>&1 sudo pip install pwncat-cs >/dev/null 2>&1
else else
printf ${ITALIC_LIGHT_CYAN}"[~] pwncat-cs is already installed, skipping...\n" printf ${ITALIC_LIGHT_CYAN}"[~] pwncat-cs is already installed, skipping...\n"
fi fi
fi
} }
tools() { tools() {
@ -153,12 +139,6 @@ tools() {
printf ${GREEN}"[+] mimikatz.exe\n" printf ${GREEN}"[+] mimikatz.exe\n"
wget -q -O - https://github.com/ParrotSec/mimikatz/blob/master/Win32/mimikatz.exe > $TARGET/tools/mimikatz.exe 2>&1 wget -q -O - https://github.com/ParrotSec/mimikatz/blob/master/Win32/mimikatz.exe > $TARGET/tools/mimikatz.exe 2>&1
printf ${GREEN}"[+] Sherlock.ps1\n"
curl https://raw.githubusercontent.com/rasta-mouse/Sherlock/master/Sherlock.ps1 > $TARGET/tools/Sherlock.ps1 2>&1
printf ${GREEN}"[+] laps.py\n"
curl https://raw.githubusercontent.com/n00py/LAPSDumper/main/laps.py > $TARGET/tools/laps.py 2>&1
} }
binary() { binary() {
@ -168,10 +148,6 @@ binary() {
printf ${GREEN}"[+] nmap\n" printf ${GREEN}"[+] nmap\n"
wget -q -O - https://github.com/andrew-d/static-binaries/raw/master/binaries/linux/x86_64/nmap > $TARGET/binary/nmap wget -q -O - https://github.com/andrew-d/static-binaries/raw/master/binaries/linux/x86_64/nmap > $TARGET/binary/nmap
chmod +x $TARGET/binary/nmap chmod +x $TARGET/binary/nmap
printf ${GREEN}"[+] pspy64\n"
wget -q -O - https://github.com/DominicBreuker/pspy/releases/download/v1.2.1/pspy64 > $TARGET/binary/pspy64
chmod +x $TARGET/binary/pspy64
} }
aliascmd() { aliascmd() {
@ -182,13 +158,6 @@ aliascmd() {
sed -i '/# Alias created by PenTools/,/# https:\/\/github.com\/d3vyce\/pentools/d' ~/.bash_aliases sed -i '/# Alias created by PenTools/,/# https:\/\/github.com\/d3vyce\/pentools/d' ~/.bash_aliases
fi fi
if ! grep -q ".bash_aliases" ~/.zshrc >/dev/null 2>&1; then
echo '{
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi}' >> ~/.zshrc
fi
echo " echo "
# Alias created by PenTools" >> ~/.bash_aliases # Alias created by PenTools" >> ~/.bash_aliases
@ -199,13 +168,10 @@ fi}' >> ~/.zshrc
echo "alias sublime='/opt/sublime_text/sublime_text'" >> ~/.bash_aliases echo "alias sublime='/opt/sublime_text/sublime_text'" >> ~/.bash_aliases
printf ${GREEN}"[+] pwncat [port]\n" printf ${GREEN}"[+] pwncat [port]\n"
echo "alias pwncat='sudo pwncat-cs --listen --port '" >> ~/.bash_aliases echo "alias sublime='sudo pwncat-cs --listen --port '" >> ~/.bash_aliases
printf ${GREEN}"[+] openvpn [file.ovpn]\n"
echo "alias vpn='sudo openvpn '" >> ~/.bash_aliases
echo "# https://github.com/d3vyce/pentools" >> ~/.bash_aliases echo "# https://github.com/d3vyce/pentools" >> ~/.bash_aliases
source $HOME/.zshrc source ~/.bash_aliases
} }
printf "${YELLOW} printf "${YELLOW}
@ -217,7 +183,7 @@ printf "${YELLOW}
/_/ \___/_/ /_/_/ \____/\____/_/____/ /_/ \___/_/ /_/_/ \____/\____/_/____/
--------------------------------------------- ---------------------------------------------
v1.3 - ${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" printf ${YELLOW}"[*]${BLUE} What do you want to install?\n"
@ -266,16 +232,7 @@ case $CHOICE in
;; ;;
esac esac
if [ $SSH_GEN == 'y' ]; then if [ SSH_GEN -eq 'y' ]; then
FILE=~/.ssh/id_rsa
if [ -f "$FILE" ]; then
read -p "${BLUE}SSH keys are already present, do you want to saved them up before generating new ones? (y/n) [${YELLOW}y${BLUE}]: ${YELLOW}" SSH_SAVE
SSH_SAVE=${SSH_SAVE:-y}
if [ $SSH_SAVE == 'y' ]; then
mv ~/.ssh/id_rsa ~/.ssh/id_rsa.save
mv ~/.ssh/id_rsa.pub ~/.ssh/id_rsa.pub.save
fi
fi
printf ${GREEN}"[+] Creation of your ssh key pair...\n" printf ${GREEN}"[+] Creation of your ssh key pair...\n"
ssh-keygen -q -t rsa -N '' -f ~/.ssh/id_rsa >/dev/null 2>&1 ssh-keygen -q -t rsa -N '' -f ~/.ssh/id_rsa >/dev/null 2>&1
printf "${ITALIC_LIGHT_CYAN}" printf "${ITALIC_LIGHT_CYAN}"