Hi
Here are my first attempts to get(and then to modify) all the files from my:
" Devolo MicroLink ADSL Modem Router "
I used Windows' "ftp"-program and some of my batch-file knowledges/skills to get all the files:
content of "
router.bat":
c:
cd
md c:router
md c:routerRFA
cd c:routerRFA
md DOC
md DOC2
md HIDDEN
md USER
md IMAGES
cd DOC
md EN
md DE
md TMP
cd c:router
ftp -s:router.txt
content of "
router.txt":
prompt
open 192.168.0.253
admin
password
lcd c:routerRFA
binary
mget .
cd DOC
lcd c:routerRFADOC
mget .
cd DE
lcd c:routerRFADOCDE
mget .
cd ..
cd EN
lcd c:routerRFADOCEN
mget .
cd ..
cd ..
cd IMAGES
lcd c:routerRFAIMAGES
mget .
bye
Well the mentioned method is to difficult if you have another router with its own FTP-Server for the router's own program files.
Furthermore the router "crashes" or get in troubles while downloading all the files and sends : "
426 Data connection error" to the ftp-console after a certain number of files were downloaded.
So I/you have to split the "
router.txt" to multiple files or you have to break and wait a short time until the router's cache is empty again.
In this way here are the raw-listing Data to support the output format of the VXWorks FTP Server from my router.:
size date time name
-------- ------ ------ --------
6 Jan-01-1980 00:00:00 REVISION.TXT
1103404 Jan-01-1980 00:00:00 VXWORKS.Z
41163 Jan-01-1980 00:00:06 CONFIG.REG
42848 Jan-01-1980 00:00:00 FACTORY.REG
23 Jan-01-1980 00:05:58 PPPOE.00
522 Jan-01-1980 00:00:00 LOGCFG.HTM
522 Jan-01-1980 00:00:00 LOGERR.HTM
51908 Jan-01-1980 00:00:00 APIMAGE.DLZ
2048 Jan-01-1980 00:14:20 DOC <DIR>
512 Jan-01-1980 00:00:00 NVRAM.TXT
13414 Jan-01-1980 00:00:00 WASHER.DLZ
30147 Jan-01-1980 00:00:00 PRISM.DLZ
77 Jan-01-1980 00:00:00 DLL.REG
2048 Jan-01-1980 00:27:38 IMAGES <DIR>
2048 Jan-01-1980 00:00:04 USER <DIR>
2048 Jan-01-1980 00:00:04 DOC2 <DIR>
2048 Jan-01-1980 00:00:04 HIDDEN <DIR>
33 Jan-01-1980 00:00:06 washer.txt
4902 Jan-01-1980 00:20:00 config.bkp
4850 Jan-01-1980 00:20:00 config.dbm
2543 Jan-01-1980 00:25:12 factory.dbm
327927 Jan-01-1980 00:00:06 Shtm.dlz
49021 Jan-01-1980 00:00:06 Console.dlz
raw_listing
Well, now it will be easier to enable professional filetransfer with VXWorks FTP-Server & to modify hardware-router.
"Directory Detection" should be realized, maybe in following way:
DIR-name + (18 - [minus] lenght of DIR-name)=position of (possible) '<DIR>'-String;
If next string = '<DIR>' /* "Is there/ follows a "<DIR>-String"? */
Yes=>It is a DIR
No=>It is not a DIR
Maybe the headerline:
size date time name
-------- ------ ------ --------
And its number of: / distances between: "-" [minus] & " " [space] can be used to detect maximum length of filename, max. file size etc...