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
- Aashiksamuel https://github.com/aashiksamuel (sublime install fix)
- m4ul3r
- lbalmaceda https://github.com/lbalmaceda
# Writeups / Honorable Mentions
- 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
- updated fix_sources function
- includes non-free and non-free-firmware

View File

@ -9,7 +9,7 @@
# Standard Disclaimer: Author assumes no liability for any damage
# revision var
revision="1.7.9a3"
revision="1.7.9a4"
# unicorn puke:
red=$'\e[1;31m'
@ -510,8 +510,9 @@ fix_cme() {
fix_linwinpeas() {
# 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)
releases_url="https://github.com/carlospolop/PEASS-ng/releases/download/$current_build"
# Thanks lbalmaceda for the code submission! May 6, 2024 rev 1.7.9a4 carlospolop -> peass-ng updated url
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_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')
for winpeas_file in ${winpeas_arr[@]}; do
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
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
# 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
done
}