mirror of
https://github.com/d3vyce/PenTools.git
synced 2025-07-03 18:38:20 +02:00
Compare commits
21 Commits
v1.2
...
8064512e6a
Author | SHA1 | Date | |
---|---|---|---|
8064512e6a | |||
6f86da5a58 | |||
8a1387b9a0 | |||
3de4bcab1f | |||
901cd51ff4 | |||
c8e587ef48 | |||
f11ffe337f | |||
8ad487d77c | |||
bcb9145d5b | |||
92595c03a5 | |||
82c2f91490 | |||
26480cad16 | |||
5a0b979b28 | |||
1b0fe8fc01 | |||
43a549c1ea | |||
02194a66eb | |||
5a80546285 | |||
306f0b01ca | |||
4a722df494 | |||
ac7e898f8b | |||
4e67ec5a2b |
23
pentools.sh
23
pentools.sh
@ -109,7 +109,6 @@ 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
|
||||
@ -172,13 +171,6 @@ 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
|
||||
|
||||
@ -189,10 +181,10 @@ fi}' >> ~/.zshrc
|
||||
echo "alias sublime='/opt/sublime_text/sublime_text'" >> ~/.bash_aliases
|
||||
|
||||
printf ${GREEN}"[+] pwncat [port]\n"
|
||||
echo "alias pwncat='sudo pwncat-cs --listen --port '" >> ~/.bash_aliases
|
||||
echo "alias sublime='sudo pwncat-cs --listen --port '" >> ~/.bash_aliases
|
||||
|
||||
printf ${GREEN}"[+] openvpn [file.ovpn]\n"
|
||||
echo "alias vpn='sudo openvpn '" >> ~/.bash_aliases
|
||||
echo "alias sublime='sudo openvpn '" >> ~/.bash_aliases
|
||||
|
||||
echo "# https://github.com/d3vyce/pentools" >> ~/.bash_aliases
|
||||
source ~/.bash_aliases
|
||||
@ -256,16 +248,7 @@ case $CHOICE in
|
||||
;;
|
||||
esac
|
||||
|
||||
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
|
||||
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}"
|
||||
|
Reference in New Issue
Block a user