Skip to content

Commit

Permalink
Update LAPS Decode Password Script
Browse files Browse the repository at this point in the history
  • Loading branch information
PezzaD84 authored Jun 29, 2023
1 parent 9d4d155 commit b6d5388
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion LAPS Decode Password Script
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ fi

encryptedcreds="$5"

token=$(curl -s -H "Content-Type: application/json" -H "Authorization: Basic ${encryptedcreds}" -X POST "$4/api/v1/auth/token" | grep 'token' | tr -d '"',',' | sed -e 's#token :##' | xargs)
token=$(curl -s -H "Content-Type: application/json" -H "Authorization: Basic ${encryptedcreds}" -X POST "$4/api/v1/auth/token" | plutil -extract token raw -)

############################################################################
# Pop up for Device name
Expand Down

0 comments on commit b6d5388

Please sign in to comment.