Salamek / huawei-lte-api

API For huawei LAN/WAN LTE Modems
GNU Lesser General Public License v3.0
376 stars 92 forks source link

Is it possible to modify the /etc/hosts file? #84

Closed NullSense closed 4 years ago

NullSense commented 4 years ago

I am using the HUAWEI B528S-23A

Salamek commented 4 years ago

@NullSense like /etc/hosts inside the router? No... not from this Library. This Library uses same calls as a Huawei router Admin interface... so what you cant do from admin interface, you cant do from this Library...

To edit a /etc/hosts inside your router you need to gain a root access to it...

NullSense commented 4 years ago

RIP, do you know if there's a way to do so?

Salamek commented 4 years ago

@NullSense well i was able to gain a root access to one of my huawei devices using telnet or UART So nmap your device IP and check if telnet or ssh is running there and try to exploit that... (sometimes admin login & password works) If no telent or SSH port is open, you need to disassemble your device and find a UART header and use USB->RS232->UART conveter to connect to it... but still it can be user/password protected