Lernstick / glados

The exam server webinterface
https://glados-doc.readthedocs.io/en/latest/
Other
8 stars 4 forks source link

Discover exam server and authenticate to exam trough qrcode on exam sheet #33

Open chaoos opened 6 years ago

chaoos commented 6 years ago

Scan of qrcode via webcam and zbarcam.

chaoos commented 6 years ago

Format of the text string in the qrcode:

<desc>;<ip>;<host>;<port>;<token>;'<downloadURL>';'<finishURL>';'<notifyURL>';'<sshURL>';'<md5URL>';'<configURL>'

Example:

qrtest;localhost;debian.local;80;711898099b;'glados/index.php/ticket/download/{token}?step=2';'glados/index.php/ticket/finish/{token}';'glados/index.php/ticket/notify/{token}?state={state}';'glados/index.php/ticket/ssh-key';'glados/index.php/ticket/md5/{token}';'glados/index.php/ticket/config/{token}'
chaoos commented 6 years ago

The text string for the qrcode should be compressed:

echo "string" | gzip | base64

Uncompress:

base64 -d <<<"string" | gunzip