Skip to content

Commit

Permalink
Fix token string (#18)
Browse files Browse the repository at this point in the history
* fixed the token grep string in the lateral movement scenario

* added $ to print the token value

---------

Co-authored-by: REDMOND\lleizerovich <[email protected]>
  • Loading branch information
lleizerovich and REDMOND\lleizerovich authored Nov 7, 2024
1 parent 3d4273c commit f2bb235
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Images/attacker/src/secrets-and-files.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ echo " "
kube_token_file="/var/run/secrets/kubernetes.io/serviceaccount/token"
if (test -f $kube_token_file); then
kube_token=$(cat $kube_token_file | head -c 30 && echo "...")
echo "Found Kubernetes service account in $kube_token_file: kube_token"
echo "Found Kubernetes service account in $kube_token_file: $kube_token"
else
echo "Kubernetes service account token not found"
fi
Expand Down

0 comments on commit f2bb235

Please sign in to comment.