mirror of
https://github.com/d3vyce/PenTools.git
synced 2025-07-03 10:28:20 +02:00
Compare commits
7 Commits
8064512e6a
...
main
Author | SHA1 | Date | |
---|---|---|---|
4af1be995d | |||
e640177faa | |||
d61d3c9deb | |||
0faa27c1d8 | |||
ffe54d460b | |||
14272c8452 | |||
8008001995 |
14
.gitea/workflows/shellcheck.yml
Normal file
14
.gitea/workflows/shellcheck.yml
Normal 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
|
@ -1,6 +1,6 @@
|
||||
# PenTools
|
||||
|
||||

|
||||

|
||||
|
||||
# Quick Start
|
||||
|
||||
|
39
pentools.sh
39
pentools.sh
@ -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,35 +54,35 @@ 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
|
||||
sudo echo '{
|
||||
echo '{
|
||||
"external_update_url": "https://clients2.google.com/service/update2/crx"
|
||||
}' > /opt/google/chrome/extensions/nngceckbapebfimnlniiiahkandclblb.json
|
||||
|
||||
@ -101,7 +101,7 @@ software() {
|
||||
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
|
||||
source $HOME/.profile
|
||||
fi
|
||||
|
||||
if ! command -v ffuf &> /dev/null; then
|
||||
@ -109,6 +109,7 @@ software() {
|
||||
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
|
||||
@ -171,6 +172,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
|
||||
|
||||
@ -181,13 +189,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 sublime='sudo openvpn '" >> ~/.bash_aliases
|
||||
echo "alias vpn='sudo openvpn '" >> ~/.bash_aliases
|
||||
|
||||
echo "# https://github.com/d3vyce/pentools" >> ~/.bash_aliases
|
||||
source ~/.bash_aliases
|
||||
source $HOME/.bash_aliases
|
||||
}
|
||||
|
||||
printf "${YELLOW}
|
||||
@ -248,7 +256,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}"
|
||||
|
Reference in New Issue
Block a user