DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2011-01-17 07:42:51

puterboy
Member
Registered: 2008-09-18
Posts: 306

FYI - CfgBackup format is gziped tar... and allows for new hacking...

Maybe this is obvious, but just an FYI that whereas the old CfBackup format was simply a long text file consisting of both variable names and the text portion of various config files, the new format is simply gzipped tar that can be read using "tar xvzf CfBackupXXXXXX"
This format is a true improvement and obviously allows for *easier* editing and *hacking* of the interface s ince you can now presumably edit these files directly simply by untarring & retarring the file. (Note I did this with only drive 'a' in place so it may be missing stuff from the 'b' drive)

IN PARTICULAR, the backupc/rc.init.sh should allow for new fun-plugging type activity since presumably it will execute anything in it upon startup. In particular, this would allow you to run alternative fun_plug type scripts right from rc.init.sh

Interestingly, the file backup/sib.conf contains various parameter settings including wireless parameters which are not supported by the hardware but who knows may be in some future version.

Also, one can of course use this to manipulate the password/group files if one doesn't want to mess with writing to flash directly. Similarly for accessing the samba conf.
Of course, I do not know how much if any error checking is done so one could presumably also brick or almost-brick ones machine if you are not careful.
BE CAREFUL TO RETAR USING THE FIRMWARE BUSYBOX TAR BECAUSE AS POINTED OUT IN http://dns323.kood.org/forum/viewtopic.php?id=6262, THE FIRMWARE TAR SEEMS TO ONLY BE ABLE TO READ ITS OWN FORMAT

Here is what tar tvzf shows:
drwxr-xr-x root/root         0 2011-01-16 21:51 backup/
drwxr-xr-x root/root         0 2011-01-16 21:51 backup/quota/
-rw-r--r-- root/root       778 2011-01-16 21:51 backup/quota/backup_quota_tab.a
-rwxr-xr-x root/root        15 2011-01-16 21:51 backup/mtdversion
-rw-r--r-- root/root      1144 2011-01-16 21:51 backup/smb.default
-rw------- root/root       737 2011-01-16 21:51 backup/smbpasswd
-rwxr-xr-x root/root       530 2011-01-16 21:51 backup/shadow
-rwxr-xr-x root/root       586 2011-01-16 21:51 backup/passwd
-rwxr-xr-x root/root        71 2011-01-16 21:51 backup/hosts
-rwxr-xr-x root/root       303 2011-01-16 21:51 backup/group
-rwxr-xr-x root/root       208 2011-01-16 21:51 backup/email.conf
-rw-r--r-- root/root        17 2011-01-16 21:51 backup/upnpav.conf
-rwxr-xr-x root/root       189 2011-01-16 21:51 backup/pure-ftpd.conf
-rw-r--r-- root/root        56 2011-01-16 21:51 backup/ftp_tbl
-rw-r--r-- root/root        21 2011-01-16 21:51 backup/ftpgroup
-rwxr-xr-x root/root       234 2011-01-16 21:51 backup/mt-daapd.conf
-rwxr--r-- root/root        23 2011-01-16 21:51 backup/resolv.conf
-rwxr-xr-x root/root       143 2011-01-16 21:51 backup/upnpscript
-rwxr-xr-x root/root       239 2011-01-16 21:51 backup/rc.init.sh
-rw-r--r-- root/root       897 2011-01-16 21:51 backup/config.xml
-rwxr-xr-x root/root       133 2011-01-16 21:51 backup/ddns.conf
-rwxr-xr-x root/root      1294 2011-01-16 21:51 backup/sib.conf
-rwxr-xr-x root/root        25 2011-01-16 21:51 backup/log.conf
-rw-r--r-- root/root        17 2011-01-16 21:51 backup/upnp_serialnum.conf
drwxr-xr-x root/root         0 2011-01-16 21:51 backup/a/
-rw-r--r-- root/root      1578 2011-01-16 21:51 backup/a/.smb.ses
drwxr-xr-x root/root         0 2011-01-16 21:51 backup/b/

Offline

 

#2 2011-01-17 08:24:33

puterboy
Member
Registered: 2008-09-18
Posts: 306

Re: FYI - CfgBackup format is gziped tar... and allows for new hacking...

I did test untarring, editing a file, retarring using busybox tar (/bin/tar cvzf) and it worked like a charm

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB