Compare commits

5 Commits

Author SHA1 Message Date
1d5d72375e clean code 2023-02-04 06:54:18 -05:00
b01e95c3a9 add support for alias update 2023-02-04 06:52:29 -05:00
a5a246805a add tools 2023-01-29 18:04:16 -05:00
bc7dffcc9d add project 2023-01-29 11:01:30 -05:00
bb8bbd1703 add .gitignore 2023-01-29 06:20:31 -05:00
2 changed files with 20 additions and 38 deletions

View File

@ -1,18 +1,15 @@
# PenTools
![terminal](https://github.com/d3vyce/PenTools/blob/main/images/terminal.png)
Presentation of the tools...
# Quick Start
Before running the script make sure you have `go` and `pip` installed.
```bash
sudo apt install gccgo-go
sudo apt install python-pip
```
To run the script use the following command:
```Bash
bash <(curl -s https://github.com/d3vyce/PenTools/releases/latest/download/pentools.sh)
curl -L https://github.com/d3vyce/pentools/releases/latest/download/pentools.sh | sh
```
This script has been tested on debian distribution, but it should also work with Ubuntu.
I'm working on a compatibility with CentOS and other distribution.
@ -39,8 +36,5 @@ I'm working on a compatibility with CentOS and other distribution.
- nmap
## Alias
- Python server file in pentools folder (command: `filesrv`)
- Open Sublime-Text (command : `sublime`) -> To open Sublime-Text in current folder : `sublime .`
# Contribute to the project
To participate in the project, you can propose new implementations of tools/binary/software/... via issues or merge request.
- Python server file
- Sublime-Text

View File

@ -28,12 +28,11 @@ 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 -y install sublime-text >/dev/null 2>&1
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
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo apt -y install ./google-chrome-stable_current_amd64.deb
rm google-chrome-stable_current_amd64.deb
sudo mkdir /opt/google/chrome/extensions >/dev/null 2>&1
@ -67,28 +66,18 @@ software() {
if ! command -v go &> /dev/null
then
printf ${RED}"[x] Missing Go, skipping install of Fuff...\n"
printf ${RED}"[x] Missing Go, skiping install of Fuff...\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
go install github.com/ffuf/ffuf@latest
fi
if ! command -v pip &> /dev/null
then
printf ${RED}"[x] Missing Pip, skipping install of PwnCat...\n"
printf ${RED}"[x] Missing Pip, skiping 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
pip install pwncat-cs
fi
}
@ -127,19 +116,18 @@ binary() {
aliascmd() {
printf "\n${YELLOW}[*]${BLUE} Alias ------------------------------------\n"
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' ~/.bashrc
echo "
# Alias created by PenTools" >> ~/.bash_aliases
# Alias created by PenTools" >> ~/.bashrc
printf ${GREEN}"[+] sudo filesrv\n"
echo "alias filesrv='sudo python3 -m http.server 80 --directory ${TARGET}'" >> ~/.bash_aliases
echo "alias filesrv='sudo python3 -m http.server 80 --directory ${TARGET}'" >> ~/.bashrc
printf ${GREEN}"[+] sublime\n"
echo "alias sublime='/opt/sublime_text/sublime_text'" >> ~/.bash_aliases
echo "alias sublime='/opt/sublime_text/sublime_text'" >> ~/.bashrc
echo "# https://github.com/d3vyce/pentools" >> ~/.bash_aliases
source ~/.bash_aliases
echo "# https://github.com/d3vyce/pentools" >> ~/.bashrc
}
printf "${YELLOW}