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
2 changed files with 65 additions and 15 deletions

View File

@ -4,10 +4,11 @@
# Quick Start
Before running the script make sure you have `go` and `pip` installed.
Before running the script make sure you have `go`, `pip` and `rust` installed.
```bash
sudo apt install gccgo-go
sudo apt install python-pip
# 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
@ -21,12 +22,19 @@ I'm working on a compatibility with CentOS and other distribution.
- rockyou.txt
- common.txt
- subdomains.txt
- directory-list-2.3-medium.txt
- password.lst
- nmap.lst
## Software
- Sublime Text
- Obsidian
- Chrome (+Extension: Dark Reader, FoxyProxy, WappAnalyser, Hack-Tools)
- FFUF
- PWNcat
- Chisel
- Nuclei
- sshuttle
## Tools
- linPeas

View File

@ -20,6 +20,15 @@ wordlist() {
printf ${GREEN}"[+] subdomains.txt\n"
curl http://ffuf.me/wordlist/subdomains.txt > $TARGET/wordlist/subdomains.txt 2>&1
printf ${GREEN}"[+] directory-list-2.3-medium.txt\n"
curl https://raw.githubusercontent.com/daviddias/node-dirbuster/master/lists/directory-list-2.3-medium.txt > $TARGET/wordlist/directory-list-2.3-medium.txt 2>&1
printf ${GREEN}"[+] password.lst\n"
curl https://raw.githubusercontent.com/piyushcse29/john-the-ripper/master/run/password.lst > $TARGET/wordlist/password.lst 2>&1
printf ${GREEN}"[+] nmap.lst\n"
curl https://raw.githubusercontent.com/drtychai/wordlists/master/nmap.lst > $TARGET/wordlist/nmap.lst 2>&1
}
software() {
@ -28,9 +37,14 @@ software() {
printf ${GREEN}"[+] Sublime-text\n"
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add - >/dev/null 2>&1
echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list >/dev/null 2>&1
sudo apt update
sudo apt update >/dev/null 2>&1
sudo apt -y install sublime-text >/dev/null 2>&1
printf ${GREEN}"[+] Obsidian\n"
wget https://github.com/obsidianmd/obsidian-releases/releases/download/v1.1.9/obsidian_1.1.9_amd64.deb >/dev/null 2>&1
sudo apt install ./obsidian_1.1.9_amd64.deb >/dev/null 2>&1
rm obsidian_1.1.9_amd64.deb
printf ${GREEN}"[+] Chrome\n"
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb >/dev/null 2>&1
sudo apt -y install ./google-chrome-stable_current_amd64.deb >/dev/null 2>&1
@ -65,25 +79,37 @@ software() {
"external_update_url": "https://clients2.google.com/service/update2/crx"
}' > /opt/google/chrome/extensions/cmbndhnoonmghfofefkcccljbkdpamhi.json
if ! command -v go &> /dev/null
then
printf ${RED}"[x] Missing Go, skipping install of Fuff...\n"
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
printf ${GREEN}"[+] nuclei\n"
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
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 pip &> /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
if ! command -v pwncat-cs &> /dev/null; then
printf ${GREEN}"[+] pwncat-cs\n"
sudo pip install pwncat-cs >/dev/null 2>&1
else
@ -127,7 +153,10 @@ binary() {
aliascmd() {
printf "\n${YELLOW}[*]${BLUE} Alias ------------------------------------\n"
sed -i '/# Alias created by PenTools/,/# https:\/\/github.com\/d3vyce\/pentools/d' ~/.bash_aliases
FILE=~/.bash_aliases
if [ -f "$FILE" ]; then
sed -i '/# Alias created by PenTools/,/# https:\/\/github.com\/d3vyce\/pentools/d' ~/.bash_aliases
fi
echo "
# Alias created by PenTools" >> ~/.bash_aliases
@ -138,6 +167,9 @@ 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
echo "# https://github.com/d3vyce/pentools" >> ~/.bash_aliases
source ~/.bash_aliases
}
@ -151,7 +183,7 @@ printf "${YELLOW}
/_/ \___/_/ /_/_/ \____/\____/_/____/
---------------------------------------------
v1.0 - ${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"
@ -169,6 +201,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
@ -196,3 +231,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