1.7.9a4 updated url in fix_linwinpeas function (lbalmaceda code submission)

This commit is contained in:
Dewalt 2024-05-06 20:36:35 -05:00
parent ea910f4563
commit 71ac7de8b5
2 changed files with 14 additions and 6 deletions

View File

@ -41,10 +41,16 @@ sudo ./pimpmykali.sh
- TheMadHuman https://github.com/TMH-Sec - TheMadHuman https://github.com/TMH-Sec
- Aashiksamuel https://github.com/aashiksamuel (sublime install fix) - Aashiksamuel https://github.com/aashiksamuel (sublime install fix)
- m4ul3r - m4ul3r
- lbalmaceda https://github.com/lbalmaceda
# Writeups / Honorable Mentions # Writeups / Honorable Mentions
- ip3c4c_n00b https://ip3c4c.com/2202_homelab_vmware/ - ip3c4c_n00b https://ip3c4c.com/2202_homelab_vmware/
# Revision 1.7.9a4 - updated fix_linwinpeas function
- Thanks lbalmaceda! for the updated url and code submission
- corrected url for Lin/WinPeas
- updated function to always pull latest release
# Revision 1.7.9a3 - updated functions # Revision 1.7.9a3 - updated functions
- updated fix_sources function - updated fix_sources function
- includes non-free and non-free-firmware - includes non-free and non-free-firmware

View File

@ -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.7.9a3" revision="1.7.9a4"
# unicorn puke: # unicorn puke:
red=$'\e[1;31m' red=$'\e[1;31m'
@ -510,8 +510,9 @@ fix_cme() {
fix_linwinpeas() { fix_linwinpeas() {
# get all the peas!!! # get all the peas!!!
current_build=$(curl -s https://github.com/carlospolop/PEASS-ng/releases | grep -i "refs/heads/master" -m 1 | awk '{ print $5 }' | cut -d "<" -f1) # Thanks lbalmaceda for the code submission! May 6, 2024 rev 1.7.9a4 carlospolop -> peass-ng updated url
releases_url="https://github.com/carlospolop/PEASS-ng/releases/download/$current_build" current_build=$(curl -s https://github.com/peass-ng/PEASS-ng/releases | grep -i "refs/heads/master" -m 1 | awk '{ print $5 }' | cut -d "<" -f1)
releases_url="https://github.com/peass-ng/PEASS-ng/releases/download/$current_build"
dest_linpeas="/opt/linpeas" dest_linpeas="/opt/linpeas"
dest_winpeas="/opt/winpeas" dest_winpeas="/opt/winpeas"
@ -533,11 +534,12 @@ fix_linwinpeas() {
winpeas_arr=('winPEAS.bat' 'winPEASany.exe' 'winPEASany_ofs.exe' 'winPEASx64_ofs.exe' 'winPEASx86.exe' 'winPEASx86_ofs.exe') winpeas_arr=('winPEAS.bat' 'winPEASany.exe' 'winPEASany_ofs.exe' 'winPEASx64_ofs.exe' 'winPEASx86.exe' 'winPEASx86_ofs.exe')
for winpeas_file in ${winpeas_arr[@]}; do for winpeas_file in ${winpeas_arr[@]}; do
echo -e " $greenplus Downloading $winpeas_file to $dest_winpeas/$winpeas_file" echo -e " $greenplus Downloading $winpeas_file to $dest_winpeas/$winpeas_file"
# revision 1.7.4 static wget of the April 2023 release of Winpeas # revision 1.7.4 static wget of the April 2023 release of Winpeas
# due to github issue https://github.com/carlospolop/PEASS-ng/issues/359 # due to github issue https://github.com/carlospolop/PEASS-ng/issues/359
wget -q https://github.com/carlospolop/PEASS-ng/releases/tag/20230419-b6aac9cb/$winpeas_file -O $dest_winpeas/$winpeas_file # wget -q https://github.com/peass-ng/PEASS-ng/releases/tag/20230419-b6aac9cb/$winpeas_file -O $dest_winpeas/$winpeas_file
# original code to be re-enabled once the winpeas group releases a fixed self-contained version # original code to be re-enabled once the winpeas group releases a fixed self-contained version
# wget -q $releases_url/$winpeas_file -O $dest_winpeas/$winpeas_file # updated in 1.7.9a4 to always get latest release
wget -q $releases_url/$winpeas_file -O $dest_winpeas/$winpeas_file
chmod +x $dest_winpeas/$winpeas_file chmod +x $dest_winpeas/$winpeas_file
done done
} }