Update Fri Dec 25 04:35:27 AM CST 2020
This commit is contained in:
parent
f9b9fae66a
commit
74f86dfaa6
15
README.md
15
README.md
|
@ -13,11 +13,20 @@
|
||||||
- cd pimpmykali
|
- cd pimpmykali
|
||||||
- sudo ./pimpmykali.sh
|
- sudo ./pimpmykali.sh
|
||||||
- For a new kali vm, run menu option 0, then run D, then 9
|
- For a new kali vm, run menu option 0, then run D, then 9
|
||||||
(youll need to run pimpmykali 3 times)
|
(youll need to run pimpmykali.sh 3 times)
|
||||||
- if your having problems with theHarvester run menu option H
|
- currently working on a function to script 0, D and 9 together!
|
||||||
|
|
||||||
|
# Revision 1.0.7 - GO Lang - Enviornment Variables added to .zshrc and .bashrc
|
||||||
|
- function will check for GOPATH in .zshrc and .bashrc
|
||||||
|
- Checks added for root and regular users
|
||||||
|
- if "GOPATH" is not found in either .zshrc or .bashrc, variables will be added:
|
||||||
|
- export GOPATH=$HOME/go
|
||||||
|
- export PATH=$PATH:$GOPATH/bin
|
||||||
|
- if "GOPATH" is found, no changes will be made to either .zshrc or .bashrc
|
||||||
|
- Menu Options 0 (Fix All), 1 (Fix Missing) or 3 (Fix GoLang) will activate this function
|
||||||
|
|
||||||
# Revision 1.0.6 - theHarvester fix removed
|
# Revision 1.0.6 - theHarvester fix removed
|
||||||
- Python3.9.1 has arrived! No longer in Release Candidate status!
|
- Python3.9.1 has arrived! No longer in Release Candidate status!
|
||||||
- theHarvester fix is no longer necessary and has been commented as of this Revision
|
- theHarvester fix is no longer necessary and has been commented as of this Revision
|
||||||
- if no further complications, code will be removed completely
|
- if no further complications, code will be removed completely
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
# Standard Disclaimer: Author assumes no liability for any damage
|
# Standard Disclaimer: Author assumes no liability for any damage
|
||||||
|
|
||||||
# revision var
|
# revision var
|
||||||
revision="1.0.6"
|
revision="1.0.7"
|
||||||
|
|
||||||
# unicorn puke:
|
# unicorn puke:
|
||||||
red=$'\e[1;31m'
|
red=$'\e[1;31m'
|
||||||
|
@ -202,6 +202,51 @@ fix_golang () {
|
||||||
section="golang"
|
section="golang"
|
||||||
check=$(whereis go | grep -i -c "/usr/bin/go")
|
check=$(whereis go | grep -i -c "/usr/bin/go")
|
||||||
fix_section $section $check $force
|
fix_section $section $check $force
|
||||||
|
fix_go_path
|
||||||
|
}
|
||||||
|
|
||||||
|
fix_go_path() {
|
||||||
|
findrealuser=$(who | awk '{print $1}')
|
||||||
|
if [ $findrealuser == "root" ]
|
||||||
|
then
|
||||||
|
check_zshrc=$(cat /root/.zshrc | grep -c GOPATH)
|
||||||
|
if [ $check_zshrc -ne 0 ]
|
||||||
|
then
|
||||||
|
echo -e "\n $redminus GOPATH Variables for $findrealuser already exist in /root/.zshrc - Not changing"
|
||||||
|
else
|
||||||
|
echo -e "\n $greenplus Adding GOPATH Variables to /root/.zshrc"
|
||||||
|
eval echo -e 'export GOPATH=\$HOME/go' >> /root/.zshrc
|
||||||
|
eval echo -e 'export PATH=\$PATH:\$GOPATH/bin' >> /root/.zshrc
|
||||||
|
fi
|
||||||
|
check_root_bashrc=$(cat /root/.bashrc | grep -c GOPATH)
|
||||||
|
if [ $check_root_bashrc -ne 0 ]
|
||||||
|
then
|
||||||
|
echo -e "\n $redminus GOPATH Variables for $findrealuser already exist in /root/.bashrc - Not changing"
|
||||||
|
else
|
||||||
|
echo -e "\n $greenplus Adding GOPATH Variables to /root/.bashrc"
|
||||||
|
eval echo -e 'export GOPATH=\$HOME/go' >> /root/.bashrc
|
||||||
|
eval echo -e 'export PATH=\$PATH:\$GOPATH/bin' >> /root/.bashrc
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
check_user_zshrc=$(cat /home/$findrealuser/.zshrc | grep -c GOPATH)
|
||||||
|
if [ $check_user_zshrc -ne 0 ]
|
||||||
|
then
|
||||||
|
echo -e "\n $redminus GOPATH Variables for user $findrealuser already exist in /home/$findrealuser/.zshrc - Not Changing"
|
||||||
|
else
|
||||||
|
echo -e "\n $greenplus Adding GOPATH Variables to /home/$findrealuser/.zshrc"
|
||||||
|
eval echo -e 'export GOPATH=\$HOME/go' >> /home/$findrealuser/.zshrc
|
||||||
|
eval echo -e 'export PATH=\$PATH:\$GOPATH/bin' >> /home/$findrealuser/.zshrc
|
||||||
|
fi
|
||||||
|
check_user_bashrc=$(cat /home/$findrealuser/.bashrc | grep -c GOPATH)
|
||||||
|
if [ $check_user_bashrc -ne 0 ]
|
||||||
|
then
|
||||||
|
echo -e "\n $redminus GOPATH Variables for user $findrealuser already exist in /home/$findrealuser/.bashrc - Not Changing"
|
||||||
|
else
|
||||||
|
echo -e "\n $greenplus Adding GOPATH Variables to /home/$findrealuser/.bashrc"
|
||||||
|
eval echo -e 'export GOPATH=\$HOME/go' >> /home/$findrealuser/.bashrc
|
||||||
|
eval echo -e 'export PATH=\$PATH:\$GOPATH/bin' >> /home/$findrealuser/.bashrc
|
||||||
|
fi
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
fix_smbconf () {
|
fix_smbconf () {
|
||||||
|
|
Loading…
Reference in New Issue