6

I have modem Echolife HG8245H (V3R016C10S150). I'm using telnet to connect it. I need to read some files from this modem. There's a shell mode I can enter, but it is nerfed badly:

SU_WAP>shell

BusyBox v1.18.4 (2016-10-11 19:35:35 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

profile close core dump  
WAP(Dopra Linux) # ?  
exit  
getcustominfo.sh  
restorehwmode.sh  

These are all commands I can do in this mode. There is another way to look at the directories:

SU_WAP>wap list path /    
bin  
boot  
dev  
etc  
html  
lib  
libexec  
linuxrc  
mnt  
proc  
root  
sbin  
share  
sys  
tmp  
uer   
usr  
var  

It works like 'ls'. But I can not read any file:

SU_WAP>wap list path /var/wifi.txt  
/var/wifi.txt  
success!  

Commands like 'cat' aren't working. Does anybody know is there any way to read these files if you're connecting modem through telnet? Maybe this is not possible with this firmware?
Thank you:)

12
  • 1
    Why is cat not working? The command doesn't exist or doesn't work? Are there other commands that can open files? Maybe you could just dump the storage device that holds the firmware and analyze it from somewhere else. Dec 31, 2020 at 15:32
  • Command is just not allowed. 'Exit', 'getcustominfo.sh', 'restorehwmode.sh' - that's all I can do in shell mode. Probably it's because of firmware. Analyzing the firmware is a good idea, maybe I can find some answers I'm looking for. I'll try it, thank you.
    – HE9CbITb
    Dec 31, 2020 at 17:17
  • Btw thank you for editing my post, it looks much better now:)
    – HE9CbITb
    Dec 31, 2020 at 17:22
  • Just for a sanity check, does ? return the same output as help, from busybox? Dec 31, 2020 at 17:37
  • 1
    Well if you had any shell commands like dd, you could read the raw device. Or, use hardware hacking to dump e.g. flash chip or gain a full shell that way. Jan 2, 2021 at 18:33

1 Answer 1

0

try

SU_WAP>display file /var/wifi.txt

Echolife HG8245W5-6T shell block

4
  • 1
    Hi and welcome to RE.SE. Could you provide some context and perhaps a source for the information?
    – 0xC0000022L
    Jan 5, 2021 at 12:36
  • Unfortunately it's not working. System returns an error: "The directory or file is wrong!" I tried to open different files - all the same. But thanks for reporting:)
    – HE9CbITb
    Jan 5, 2021 at 13:43
  • I also have HG8245H and busybox does not work for me, nor the display file
    – Vido
    Jan 8, 2021 at 13:44
  • @Vido seems like busybox is nerfed by the firmware:(
    – HE9CbITb
    Jan 11, 2021 at 22:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.