File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
linPEAS/builder/linpeas_parts/functions Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 8
8
# Functions Used:
9
9
# Global Variables:
10
10
# Initial Functions:
11
- # Generated Global Variables: $is_az_vm
11
+ # Generated Global Variables: $is_az_vm, $meta_response
12
12
# Fat linpeas: 0
13
13
# Small linpeas: 1
14
14
@@ -27,15 +27,15 @@ check_az_vm(){
27
27
else
28
28
# 3. Try querying the Azure Metadata Service for more wide support (e.g. Azure Container Registry tasks need this)
29
29
if command -v curl & > /dev/null; then
30
- response =$( curl -s --max-time 2 \
30
+ meta_response =$( curl -s --max-time 2 \
31
31
" http://169.254.169.254/metadata/identity/oauth2/token" )
32
- if echo " $response " | grep -q " Missing" ; then
32
+ if echo " $meta_response " | grep -q " Missing" ; then
33
33
is_az_vm=" Yes"
34
34
fi
35
35
elif command -v wget & > /dev/null; then
36
- response =$( wget -qO- --timeout=2 \
36
+ meta_response =$( wget -qO- --timeout=2 \
37
37
" http://169.254.169.254/metadata/identity/oauth2/token" )
38
- if echo " $response " | grep -q " Missing" ; then
38
+ if echo " $meta_response " | grep -q " Missing" ; then
39
39
is_az_vm=" Yes"
40
40
fi
41
41
fi
You can’t perform that action at this time.
0 commit comments