Skip to content

Commit 516aaff

Browse files
committedFeb 16, 2025·
fix wget
1 parent 2b64ffc commit 516aaff

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed
 

‎linPEAS/builder/linpeas_parts/3_cloud/10_Azure_automation_account.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ if [ "$is_az_automation_acc" = "Yes" ]; then
2424
if [ "$(command -v curl || echo -n '')" ]; then
2525
az_req="curl -s -f -L -H '$HEADER'"
2626
elif [ "$(command -v wget || echo -n '')" ]; then
27-
az_req="wget -q -O - -H '$HEADER'"
27+
az_req="wget -q -O - --header '$HEADER'"
2828
else
2929
echo "Neither curl nor wget were found, I can't enumerate the metadata service :("
3030
fi

‎linPEAS/builder/linpeas_parts/3_cloud/14_IBM_Cloud.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ if [ "$is_ibm_vm" = "Yes" ]; then
2828
if [ "$(command -v curl || echo -n '')" ]; then
2929
ibm_req="curl -s -f -L -H '$TOKEN_HEADER' -H '$ACCEPT_HEADER'"
3030
elif [ "$(command -v wget || echo -n '')" ]; then
31-
ibm_req="wget -q -O - -H '$TOKEN_HEADER' -H '$ACCEPT_HEADER'"
31+
ibm_req="wget -q -O - --header '$TOKEN_HEADER' -H '$ACCEPT_HEADER'"
3232
else
3333
echo "Neither curl nor wget were found, I can't enumerate the metadata service :("
3434
fi

‎linPEAS/builder/linpeas_parts/3_cloud/2_AWS_EC2.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ if [ "$is_aws_ec2" = "Yes" ]; then
2323
if [ "$(command -v curl || echo -n '')" ]; then
2424
aws_req="curl -s -f -L -H '$HEADER'"
2525
elif [ "$(command -v wget || echo -n '')" ]; then
26-
aws_req="wget -q -O - -H '$HEADER'"
26+
aws_req="wget -q -O - --header '$HEADER'"
2727
else
2828
echo "Neither curl nor wget were found, I can't enumerate the metadata service :("
2929
fi

‎linPEAS/builder/linpeas_parts/3_cloud/8_Azure_VM.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ if [ "$is_az_vm" = "Yes" ]; then
2424
if [ "$(command -v curl || echo -n '')" ]; then
2525
az_req="curl -s -f -L -H '$HEADER'"
2626
elif [ "$(command -v wget || echo -n '')" ]; then
27-
az_req="wget -q -O - -H '$HEADER'"
27+
az_req="wget -q -O - --header '$HEADER'"
2828
else
2929
echo "Neither curl nor wget were found, I can't enumerate the metadata service :("
3030
fi

‎linPEAS/builder/linpeas_parts/3_cloud/9_Azure_app_service.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ if [ "$is_az_app" = "Yes" ]; then
2424
if [ "$(command -v curl || echo -n '')" ]; then
2525
az_req="curl -s -f -L -H '$HEADER'"
2626
elif [ "$(command -v wget || echo -n '')" ]; then
27-
az_req="wget -q -O - -H '$HEADER'"
27+
az_req="wget -q -O - --header '$HEADER'"
2828
else
2929
echo "Neither curl nor wget were found, I can't enumerate the metadata service :("
3030
fi

0 commit comments

Comments
 (0)
Please sign in to comment.