Skip to content

How to add a key to the door system

Hans-Petter Fjeld edited this page Jul 27, 2024 · 4 revisions
  1. ssh [email protected] (password in hackerpass)
  2. sudo su
  3. journalctl -ef

Now scan the new card, the system will not recognize it, and will enter the id hash of the unknown card in the log.

  1. copy the id of the card
  2. (this part needs a user with staff access) log into https://hackeriet.no/hula/admin/auth/user/
  3. select correct user from the list
  4. enter the id in the RFID access card number. (new): field (and maybe the RFID access card secret code (old): one too, just to be sure)

App not working? Workaround; Rawdogging the database

  1. $ ssh blade
  2. $ sudo -iu postgres
  3. $ psql -d hackerhula
  4. $ hackerhula=# SELECT card_number FROM member_member where handle = 'xorgic';
  5. hackerhula=# UPDATE member_member SET card_number = '0x279b6eac016e9b' WHERE handle = 'xorgic';

Doord updates list of cards every 15 min

Clone this wiki locally