Compare commits

12 Commits

Author SHA1 Message Date
1a26e91d41 Add laps.py tool 2023-03-28 22:00:53 +02:00
8284e9d121 Add Sherlock.ps1 tool 2023-03-28 21:59:48 +02:00
ed3e358fc1 Add pspy64 tool 2023-03-28 21:58:33 +02:00
0270d670f5 Update version 2023-03-28 21:56:39 +02:00
5cd03e028c Add zshrc relead 2023-03-28 21:55:55 +02:00
4af1be995d Fix rockyou download
Some checks failed
shellcheck
2023-03-28 21:52:24 +02:00
e640177faa Fix shellcheck warning 2023-03-28 21:50:32 +02:00
d61d3c9deb Update shellcheck.yml
Some checks failed
shellcheck
2023-03-28 20:35:48 +02:00
0faa27c1d8 Add CI to the project (#4)
Some checks failed
shellcheck
* Create shellcheck.yml

* Update shellcheck.yml
2023-03-20 23:39:10 +01:00
ffe54d460b Update image to relative path 2023-02-26 17:45:35 +01:00
14272c8452 V1.2.0 (#3)
* 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

* Add ssh key generation options

* Add terminator

* Fix apt install

* Simplify if statement

* Add pwncat alias

* Add openvpn alias

* Add Bitwarden

* Add go/pip install if missing

* Update README

* Update version

* Fix alias name

* Fix+Update SSH generation

* Add bash_alais in .zshrc (for kali)

---------

Co-authored-by: d3vyce <contact@d3vyce.fr>
2023-02-25 04:18:59 -05:00
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
3 changed files with 96 additions and 39 deletions

View File

@ -0,0 +1,14 @@
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,15 +1,9 @@
# PenTools
![terminal](https://github.com/d3vyce/PenTools/blob/main/images/terminal.png)
![terminal](images/terminal.png)
# 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)
@ -29,7 +23,8 @@ I'm working on a compatibility with CentOS and other distribution.
## Software
- Sublime Text
- Obsidian
- Chrome (+Extension: Dark Reader, FoxyProxy, WappAnalyser, Hack-Tools)
- Chrome (+Extension: Dark Reader, FoxyProxy, WappAnalyser, Hack-Tools, Bitwarden)
- Terminator
- FFUF
- PWNcat
- Chisel
@ -48,7 +43,12 @@ 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 .`
- 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
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
printf ${GREEN}"[+] rockyou.txt\n"
curl https://github.com/brannondorsey/naive-hashcat/releases/download/data/rockyou.txt > $TARGET/wordlist/rockyou.txt 2>&1
wget -q -O - https://github.com/brannondorsey/naive-hashcat/releases/download/data/rockyou.txt > $TARGET/wordlist/rockyou.txt 2>&1
printf ${GREEN}"[+] common.txt\n"
curl http://ffuf.me/wordlist/common.txt > $TARGET/wordlist/common.txt 2>&1
@ -54,31 +54,38 @@ software() {
printf ${GREEN}"[+] Chrome Extension: FoxyProxy\n"
sudo touch /opt/google/chrome/extensions/gcknhkkoolaabfmlnjonogaaifnjlfnp.json
sudo chmod 646 /opt/google/chrome/extensions/gcknhkkoolaabfmlnjonogaaifnjlfnp.json
sudo echo '{
echo '{
"external_update_url": "https://clients2.google.com/service/update2/crx"
}' > /opt/google/chrome/extensions/gcknhkkoolaabfmlnjonogaaifnjlfnp.json
printf ${GREEN}"[+] Chrome Extension: Dark Reader\n"
sudo touch /opt/google/chrome/extensions/eimadpbcbfnmbkopoojfekhnkhdbieeh.json
sudo chmod 646 /opt/google/chrome/extensions/eimadpbcbfnmbkopoojfekhnkhdbieeh.json
sudo echo '{
echo '{
"external_update_url": "https://clients2.google.com/service/update2/crx"
}' > /opt/google/chrome/extensions/eimadpbcbfnmbkopoojfekhnkhdbieeh.json
printf ${GREEN}"[+] Chrome Extension: WappAnalyser\n"
sudo touch /opt/google/chrome/extensions/gppongmhjkpfnbhagpmjfkannfbllamg.json
sudo chmod 646 /opt/google/chrome/extensions/gppongmhjkpfnbhagpmjfkannfbllamg.json
sudo echo '{
echo '{
"external_update_url": "https://clients2.google.com/service/update2/crx"
}' > /opt/google/chrome/extensions/gppongmhjkpfnbhagpmjfkannfbllamg.json
printf ${GREEN}"[+] Chrome Extension: Hack-Tools\n"
sudo touch /opt/google/chrome/extensions/cmbndhnoonmghfofefkcccljbkdpamhi.json
sudo chmod 646 /opt/google/chrome/extensions/cmbndhnoonmghfofefkcccljbkdpamhi.json
sudo echo '{
echo '{
"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
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
@ -89,13 +96,20 @@ software() {
sudo apt install nuclei -y >/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 ${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 $HOME/.profile
fi
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
@ -104,18 +118,18 @@ software() {
else
printf ${ITALIC_LIGHT_CYAN}"[~] chisel is already installed, skipping...\n"
fi
fi
if ! command -v pip &> /dev/null; then
printf ${RED}"[x] Missing Pip, skipping install of PwnCat...\n"
else
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"
fi
fi
}
tools() {
@ -139,6 +153,12 @@ tools() {
printf ${GREEN}"[+] mimikatz.exe\n"
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() {
@ -148,6 +168,10 @@ binary() {
printf ${GREEN}"[+] nmap\n"
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
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() {
@ -158,6 +182,13 @@ aliascmd() {
sed -i '/# Alias created by PenTools/,/# https:\/\/github.com\/d3vyce\/pentools/d' ~/.bash_aliases
fi
if ! grep -q ".bash_aliases" ~/.zshrc >/dev/null 2>&1; then
echo '{
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi}' >> ~/.zshrc
fi
echo "
# Alias created by PenTools" >> ~/.bash_aliases
@ -168,10 +199,13 @@ aliascmd() {
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
echo "alias pwncat='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
source ~/.bash_aliases
source $HOME/.zshrc
}
printf "${YELLOW}
@ -183,7 +217,7 @@ printf "${YELLOW}
/_/ \___/_/ /_/_/ \____/\____/_/____/
---------------------------------------------
v1.1 - ${ITALIC}https://github.com/d3vyce/pentools \n
v1.3 - ${ITALIC}https://github.com/d3vyce/pentools \n
"
printf ${YELLOW}"[*]${BLUE} What do you want to install?\n"
@ -232,7 +266,16 @@ case $CHOICE in
;;
esac
if [ SSH_GEN -eq 'y' ]; then
if [ $SSH_GEN == '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"
ssh-keygen -q -t rsa -N '' -f ~/.ssh/id_rsa >/dev/null 2>&1
printf "${ITALIC_LIGHT_CYAN}"