mirror of
https://github.com/d3vyce/PenTools.git
synced 2025-07-03 10:28:20 +02:00
Compare commits
1 Commits
8064512e6a
...
v1.1
Author | SHA1 | Date | |
---|---|---|---|
8008001995 |
14
README.md
14
README.md
@ -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
|
||||
@ -44,11 +49,6 @@ 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
|
||||
|
||||
# Contribute to the project
|
||||
To participate in the project, you can propose new implementations of tools/binary/software/... via issues or merge request.
|
||||
|
63
pentools.sh
63
pentools.sh
@ -79,56 +79,45 @@ 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
|
||||
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
|
||||
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
|
||||
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
|
||||
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() {
|
||||
@ -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
|
Reference in New Issue
Block a user