Skip to content

Commit

Permalink
Workspace: Rename /.secret to /.authtoken
Browse files Browse the repository at this point in the history
  • Loading branch information
ConnorNelson committed Jan 12, 2024
1 parent 7563e35 commit 3c1954a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion challenge/docker-entrypoint.d/39_start_gui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

mkdir -p /tmp/.dojo/vnc /home/hacker/.vnc

container_id="$(cat /.secret)"
container_id="$(cat /.authtoken)"
password_interact="$(printf 'desktop-interact' | openssl dgst -sha256 -hmac "$container_id" | awk '{print $2}' | head -c 8)"
password_view="$(printf 'desktop-view' | openssl dgst -sha256 -hmac "$container_id" | awk '{print $2}' | head -c 8)"
printf '%s\n%s\n' "$password_interact" "$password_view" | tigervncpasswd -f > /tmp/.dojo/vnc/passwd
Expand Down

0 comments on commit 3c1954a

Please sign in to comment.