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 2007-01-05 04:54:04

magore
Member
Registered: 2007-01-05
Posts: 25

DNS-323 fun_plug script to save root file system

I created the following script to dump some informtion along wth the entire root file system
of the DNS-323 - enjoy

Note:  Volume_1 is the name of the disk we put the script on with version 1.02 firmware


On my debian system (I have the smbfs package installed) I mounted using:
     smbmount //disk/Volume_1 /mnt -o username=admin


Save the  file below as fun_plug on the root of Volume_1 and then chmod fun_plug 755

#!/bin/sh
#

DIR=/mnt/HD_a2
mkdir $DIR/root
LOG=$DIR/log.txt
echo ===================== >$LOG
date >>$LOG
echo ===================== >>$LOG
mount >>$LOG
echo ===================== >>$LOG
dmesg >>$LOG
echo ===================== >>$LOG
echo ===================== >>$LOG
find . >>$LOG
echo ===================== >>$LOG
echo ===================== >>$LOG
find . -type d >>$LOG
echo ===================== >>$LOG
tar cf $DIR/root/root.tar lost+found bin dev etc home lib root sbin sys usr var web default >>$LOG
# Note we skip ./mnt ./proc and ./tmp - for really obvious reasons

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB