mirror of
https://github.com/d3vyce/PenTools.git
synced 2025-07-03 18:38:20 +02:00
Compare commits
21 Commits
v1.1
...
8064512e6a
Author | SHA1 | Date | |
---|---|---|---|
8064512e6a | |||
6f86da5a58 | |||
8a1387b9a0 | |||
3de4bcab1f | |||
901cd51ff4 | |||
c8e587ef48 | |||
f11ffe337f | |||
8ad487d77c | |||
bcb9145d5b | |||
92595c03a5 | |||
82c2f91490 | |||
26480cad16 | |||
5a0b979b28 | |||
1b0fe8fc01 | |||
43a549c1ea | |||
02194a66eb | |||
5a80546285 | |||
306f0b01ca | |||
4a722df494 | |||
ac7e898f8b | |||
4e67ec5a2b |
16
README.md
16
README.md
@ -4,12 +4,6 @@
|
||||
|
||||
# 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.
|
||||
|
91
pentools.sh
91
pentools.sh
@ -79,44 +79,55 @@ 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 >/dev/null 2>&1
|
||||
sudo apt install sshuttle -y >/dev/null 2>&1
|
||||
|
||||
printf ${GREEN}"[+] nuclei\n"
|
||||
sudo apt install nuclei >/dev/null 2>&1
|
||||
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
|
||||
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
|
||||
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 pip &> /dev/null
|
||||
then
|
||||
printf ${RED}"[x] Missing Pip, skipping install of PwnCat...\n"
|
||||
if ! command -v ffuf &> /dev/null; then
|
||||
printf ${GREEN}"[+] ffuf\n"
|
||||
go install github.com/ffuf/ffuf@latest >/dev/null 2>&1
|
||||
else
|
||||
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
|
||||
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
|
||||
|
||||
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"
|
||||
fi
|
||||
}
|
||||
|
||||
@ -169,6 +180,12 @@ 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
|
||||
}
|
||||
@ -182,7 +199,7 @@ printf "${YELLOW}
|
||||
/_/ \___/_/ /_/_/ \____/\____/_/____/
|
||||
|
||||
---------------------------------------------
|
||||
v1.1 - ${ITALIC}https://github.com/d3vyce/pentools \n
|
||||
v1.2 - ${ITALIC}https://github.com/d3vyce/pentools \n
|
||||
"
|
||||
|
||||
printf ${YELLOW}"[*]${BLUE} What do you want to install?\n"
|
||||
@ -200,6 +217,9 @@ 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
|
||||
@ -227,3 +247,10 @@ 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
|
Reference in New Issue
Block a user