Update ESXI netplan, de-hardcode Velociraptor URL
This commit is contained in:
@@ -404,9 +404,7 @@
|
|||||||
LATEST_VELOCIRAPTOR_LINUX_URL=$(curl -sL https://github.com/Velocidex/velociraptor/releases/latest | grep 'linux-amd64' | grep -Eo "/(?[^\"]+)" | grep amd | sed 's#^#https://github.com#g')
|
LATEST_VELOCIRAPTOR_LINUX_URL=$(curl -sL https://github.com/Velocidex/velociraptor/releases/latest | grep 'linux-amd64' | grep -Eo "/(?[^\"]+)" | grep amd | sed 's#^#https://github.com#g')
|
||||||
echo "[$(date +%H:%M:%S)]: The URL for the latest release was extracted as $LATEST_VELOCIRAPTOR_LINUX_URL"
|
echo "[$(date +%H:%M:%S)]: The URL for the latest release was extracted as $LATEST_VELOCIRAPTOR_LINUX_URL"
|
||||||
echo "[$(date +%H:%M:%S)]: Attempting to download..."
|
echo "[$(date +%H:%M:%S)]: Attempting to download..."
|
||||||
#wget -P /opt/velociraptor --progress=bar:force "$LATEST_VELOCIRAPTOR_LINUX_URL"
|
wget -P /opt/velociraptor --progress=bar:force "$LATEST_VELOCIRAPTOR_LINUX_URL"
|
||||||
# Harcoding until the release after v0.4.7
|
|
||||||
wget -P /opt/velociraptor --progress=bar:force "https://github.com/Velocidex/velociraptor/releases/download/v0.4.7/velociraptor-v0.4.7-1-linux-amd64"
|
|
||||||
if [ "$(file /opt/velociraptor/velociraptor*linux-amd64 | grep -c 'ELF 64-bit LSB executable')" -eq 1 ]; then
|
if [ "$(file /opt/velociraptor/velociraptor*linux-amd64 | grep -c 'ELF 64-bit LSB executable')" -eq 1 ]; then
|
||||||
echo "[$(date +%H:%M:%S)]: Velociraptor successfully downloaded!"
|
echo "[$(date +%H:%M:%S)]: Velociraptor successfully downloaded!"
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -3,14 +3,7 @@ network:
|
|||||||
ethernets:
|
ethernets:
|
||||||
eth0:
|
eth0:
|
||||||
dhcp4: true
|
dhcp4: true
|
||||||
routes:
|
|
||||||
- to: 192.168.1.0/24
|
|
||||||
via: 192.168.3.1
|
|
||||||
eth1:
|
eth1:
|
||||||
dhcp4: true
|
|
||||||
gateway4: 192.168.76.1
|
|
||||||
nameservers:
|
|
||||||
addresses: [8.8.8.8,8.8.4.4]
|
|
||||||
eth2:
|
|
||||||
dhcp4: false
|
dhcp4: false
|
||||||
addresses: [192.168.38.105/24]
|
addresses: [192.168.38.105/24]
|
||||||
|
|
||||||
|
|||||||
@@ -402,9 +402,7 @@ install_velociraptor() {
|
|||||||
LATEST_VELOCIRAPTOR_LINUX_URL=$(curl -sL https://github.com/Velocidex/velociraptor/releases/latest | grep 'linux-amd64' | grep -Eo "/(?[^\"]+)" | grep amd | sed 's#^#https://github.com#g')
|
LATEST_VELOCIRAPTOR_LINUX_URL=$(curl -sL https://github.com/Velocidex/velociraptor/releases/latest | grep 'linux-amd64' | grep -Eo "/(?[^\"]+)" | grep amd | sed 's#^#https://github.com#g')
|
||||||
echo "[$(date +%H:%M:%S)]: The URL for the latest release was extracted as $LATEST_VELOCIRAPTOR_LINUX_URL"
|
echo "[$(date +%H:%M:%S)]: The URL for the latest release was extracted as $LATEST_VELOCIRAPTOR_LINUX_URL"
|
||||||
echo "[$(date +%H:%M:%S)]: Attempting to download..."
|
echo "[$(date +%H:%M:%S)]: Attempting to download..."
|
||||||
#wget -P /opt/velociraptor --progress=bar:force "$LATEST_VELOCIRAPTOR_LINUX_URL"
|
wget -P /opt/velociraptor --progress=bar:force "$LATEST_VELOCIRAPTOR_LINUX_URL"
|
||||||
# Harcoding until the release after v0.4.7
|
|
||||||
wget -P /opt/velociraptor --progress=bar:force "https://github.com/Velocidex/velociraptor/releases/download/v0.4.7/velociraptor-v0.4.7-1-linux-amd64"
|
|
||||||
if [ "$(file /opt/velociraptor/velociraptor*linux-amd64 | grep -c 'ELF 64-bit LSB executable')" -eq 1 ]; then
|
if [ "$(file /opt/velociraptor/velociraptor*linux-amd64 | grep -c 'ELF 64-bit LSB executable')" -eq 1 ]; then
|
||||||
echo "[$(date +%H:%M:%S)]: Velociraptor successfully downloaded!"
|
echo "[$(date +%H:%M:%S)]: Velociraptor successfully downloaded!"
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user