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