mirror of
https://github.com/d3vyce/PenTools.git
synced 2025-07-03 10:28:20 +02:00
Compare commits
2 Commits
8064512e6a
...
v1.2
Author | SHA1 | Date | |
---|---|---|---|
14272c8452 | |||
8008001995 |
23
pentools.sh
23
pentools.sh
@ -109,6 +109,7 @@ software() {
|
|||||||
go install github.com/ffuf/ffuf@latest >/dev/null 2>&1
|
go install github.com/ffuf/ffuf@latest >/dev/null 2>&1
|
||||||
else
|
else
|
||||||
printf ${ITALIC_LIGHT_CYAN}"[~] ffuf is already installed, skipping...\n"
|
printf ${ITALIC_LIGHT_CYAN}"[~] ffuf is already installed, skipping...\n"
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! command -v chisel &> /dev/null; then
|
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
|
sed -i '/# Alias created by PenTools/,/# https:\/\/github.com\/d3vyce\/pentools/d' ~/.bash_aliases
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if ! grep -q ".bash_aliases" ~/.zshrc >/dev/null 2>&1; then
|
||||||
|
echo '{
|
||||||
|
if [ -f ~/.bash_aliases ]; then
|
||||||
|
. ~/.bash_aliases
|
||||||
|
fi}' >> ~/.zshrc
|
||||||
|
fi
|
||||||
|
|
||||||
echo "
|
echo "
|
||||||
# Alias created by PenTools" >> ~/.bash_aliases
|
# Alias created by PenTools" >> ~/.bash_aliases
|
||||||
|
|
||||||
@ -181,10 +189,10 @@ aliascmd() {
|
|||||||
echo "alias sublime='/opt/sublime_text/sublime_text'" >> ~/.bash_aliases
|
echo "alias sublime='/opt/sublime_text/sublime_text'" >> ~/.bash_aliases
|
||||||
|
|
||||||
printf ${GREEN}"[+] pwncat [port]\n"
|
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"
|
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
|
echo "# https://github.com/d3vyce/pentools" >> ~/.bash_aliases
|
||||||
source ~/.bash_aliases
|
source ~/.bash_aliases
|
||||||
@ -248,7 +256,16 @@ case $CHOICE in
|
|||||||
;;
|
;;
|
||||||
esac
|
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"
|
printf ${GREEN}"[+] Creation of your ssh key pair...\n"
|
||||||
ssh-keygen -q -t rsa -N '' -f ~/.ssh/id_rsa >/dev/null 2>&1
|
ssh-keygen -q -t rsa -N '' -f ~/.ssh/id_rsa >/dev/null 2>&1
|
||||||
printf "${ITALIC_LIGHT_CYAN}"
|
printf "${ITALIC_LIGHT_CYAN}"
|
||||||
|
Reference in New Issue
Block a user