avm 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. #------------------------------------------------------------------------------
  2. # $File: avm,v 1.1 2020/08/28 20:37:58 christos Exp $
  3. # avm: file(1) magic for avm files; this is not use
  4. # Summary: FRITZ!Box router configuration backup
  5. # From: Joerg Jenderek
  6. # URL: https://en.wikipedia.org/wiki/Fritz!Box
  7. # Reference: http://www.mengelke.de/Projekte/FritzBoxTools2
  8. # Note: only tested with models 4040 and 6490 Cable (lgi)
  9. 0 string ****\ FRITZ!Box\ FRITZ!Box configuration backup
  10. #!:mime text/plain
  11. !:mime application/x-avm-export
  12. !:ext export
  13. # router model name like "4040" , "6490 Cable (lgi)" followed by " CONFIGURATION EXPORT"
  14. >15 string x of %-.4s
  15. # on 2nd line hashed password
  16. #>41 search/54 Password= \b, password
  17. # on 3rd line firmware version like: 141.06.24 141.06.50 141.07.10 ... 155.06.83
  18. >41 search/172 FirmwareVersion= \b, firmware version
  19. >>&0 string x %s
  20. # on 5th line oem like: avme lgi
  21. >41 search/285 OEM= \b, oem
  22. >>&0 string x %s
  23. # on 7th line language like: de en
  24. >41 search/305 Language= \b, language
  25. >>&0 string x %s
  26. # on 10th line cfg file name like: /var/tmp.cfg
  27. >41 search/349 tmp.cfg
  28. # on 11th line date inside c-comment like: Thu Jun 4 22:25:19 2015
  29. >>&4 string x \b, %s
  30. #