refactor: update kali to use web_pipe()

This commit is contained in:
Martin Wimpress 2024-04-19 22:04:07 +01:00 committed by Martin Wimpress
parent 297fa080f3
commit 30dd6a9cd0
1 changed files with 2 additions and 2 deletions

View File

@ -2275,8 +2275,8 @@ function get_kali() {
local HASH="" local HASH=""
local ISO="" local ISO=""
local URL="https://cdimage.kali.org/${RELEASE}" local URL="https://cdimage.kali.org/${RELEASE}"
ISO=$(wget -q -O- "${URL}/?C=M;O=D" | grep -o ">kali-linux-.*-installer-amd64.iso" | head -n 1 | cut -c 2-) ISO=$(web_pipe "${URL}/?C=M;O=D" | grep -o ">kali-linux-.*-installer-amd64.iso" | head -n 1 | cut -c 2-)
HASH=$(wget -q -O- "${URL}/SHA256SUMS" | grep -v torrent | grep "${ISO}" | cut_1) HASH=$(web_pipe "${URL}/SHA256SUMS" | grep -v torrent | grep "${ISO}" | cut_1)
echo "${URL}/${ISO} ${HASH}" echo "${URL}/${ISO} ${HASH}"
} }