mirror of
https://github.com/d3vyce/PenTools.git
synced 2025-04-11 08:59:42 +02:00
Compare commits
No commits in common. "4d7d5376255d4fbb2047a1acf93d0c99f8aefe09" and "8064512e6ac368ba016e8aebf8e462c02bd0912e" have entirely different histories.
4d7d537625
...
8064512e6a
22
pentools.sh
22
pentools.sh
@ -171,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
|
||||
|
||||
@ -188,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
|
||||
@ -255,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}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user