Kitz ADSL Broadband Information
adsl spacer  
Support this site
Home Broadband ISPs Tech Routers Wiki Forum
 
     
   Compare ISP   Rate your ISP
   Glossary   Glossary
 
Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: 1 [2]

Author Topic: Decrypting the configuration file on a Huawei HG635  (Read 21268 times)

kitzuser87430

  • Reg Member
  • ***
  • Posts: 432
Re: Decrypting the configuration file on a Huawei HG635
« Reply #15 on: December 03, 2015, 08:19:16 PM »

mrben100....welcome to the forum....have you any experience of linux......it seems you can run python scripts under windows.

Do a google for "run python script windows" and see if you can instal the python package and then run a script on your PC.

I ran this decrypt script on my raspberry pi, i renamed the script to hg635.py then ran the command ......

python hg635.py decrypt downloaded_config_file my_decrypted_config_file

Where downloaded_config_file is the config downloaded from the router...and my_decrypted_config_file is the new readable and editable config

Hope this helps

Ian

edit ...typos
Logged

mrben100

  • Just arrived
  • *
  • Posts: 3
Re: Decrypting the configuration file on a Huawei HG635
« Reply #16 on: December 06, 2015, 09:37:07 AM »

mrben100....welcome to the forum....have you any experience of linux......it seems you can run python scripts under windows.

Do a google for "run python script windows" and see if you can instal the python package and then run a script on your PC.

I ran this decrypt script on my raspberry pi, i renamed the script to hg635.py then ran the command ......

python hg635.py decrypt downloaded_config_file my_decrypted_config_file

Where downloaded_config_file is the config downloaded from the router...and my_decrypted_config_file is the new readable and editable config

Hope this helps

Ian

edit ...typos

thanks for your answer i have installed python and i could run the script but i get this msg
(config file not found…exiting).
thanks again
Logged

mrben100

  • Just arrived
  • *
  • Posts: 3
Re: Decrypting the configuration file on a Huawei HG635
« Reply #17 on: December 06, 2015, 10:10:52 AM »

mrben100....welcome to the forum....have you any experience of linux......it seems you can run python scripts under windows.

Do a google for "run python script windows" and see if you can instal the python package and then run a script on your PC.

I ran this decrypt script on my raspberry pi, i renamed the script to hg635.py then ran the command ......

python hg635.py decrypt downloaded_config_file my_decrypted_config_file

Where downloaded_config_file is the config downloaded from the router...and my_decrypted_config_file is the new readable and editable config

Hope this helps

Ian

edit ...typos

thanks again now it works fine
but i need key/value pairs for HG532s
« Last Edit: December 06, 2015, 10:23:40 AM by mrben100 »
Logged

cliver

  • Reg Member
  • ***
  • Posts: 169
Re: Decrypting the configuration file on a Huawei HG635
« Reply #18 on: September 03, 2016, 01:48:47 PM »

Hi just trying to use this script on my HG635 from TT.
I am getting the attached error from the script.
Am I doing something daft?
Running python script from windows prompt in windows 10.
Regards
Clive

Edit: I'm running python 3.5.2

Edit: Cracked it, I needed pycrypto installed :-)
« Last Edit: September 03, 2016, 06:03:50 PM by cliver »
Logged

alanj87

  • Just arrived
  • *
  • Posts: 1
Re: Decrypting the configuration file on a Huawei HG635
« Reply #19 on: November 09, 2016, 04:07:02 PM »

hello all, i have a hg633 and when i do the decrypt i get Bad config file...exiting every time even after a clean reset on the router can someone please help me with this thanks again alan
Logged

npr

  • Reg Member
  • ***
  • Posts: 265
Re: Decrypting the configuration file on a Huawei HG635
« Reply #20 on: August 28, 2018, 03:24:04 PM »

A python script to decrypt and encrypt the config file from a talktalk HG633 router can be found at the following link.
https://pastebin.com/uhSuWunY
Credit to:
https://hg658c.wordpress.com/2017/12/04/decrypting-configuration-files-from-other-huawei-home-gateway-routers/

Use the script the same way as in the first post of this thread.
To enable telnet modify the 7th line of the decrypted config file, preferably using Notepad++ to edit the file, windows notepad may cause errors in the file.
Old line:
<X_ServiceManage CircleTestDevice="" CircleTestResult=""/>
New line:
<X_ServiceManage TelnetEnable="1" TelnetPort="23" KeyEquipMode="0" ConsoleEnable="" CircleTestDevice="" CircleTestResult=""/>

The router uses a cut down version of the broadcom "xdslcmd" commands
ie
$ xdslcmd
Usage: xdslcmd start [--up] [--mod <a|d|l|t|2|p|e|m|v>]
           [--trellis <on|off>] [--bitswap <on|off>] [--sesdrop <on|off>]
           [--sra <on|off>] [--phyReXmt <0|1>] [--i24k <on|off>]
           [--profile <0x01 - 0xFF>|<"8a |8b |8c |8d |12a |12b |17a |30a">]
           [--SOS <on|off>]
       xdslcmd stop
       xdslcmd connection [--up] [--down] [--loopback]
           [--diagmode] [--normal] [--L0]
       xdslcmd configure [--mod <a|d|l|t|2|p|e|m|v>]
           [--trellis <on|off>] [--bitswap <on|off>] [--sesdrop <on|off>]
           [--sra <on|off>] [--phyReXmt <0|1>] [--i24k <on|off>]
           [--profile <0x01 - 0xFF>|<"8a |8b |8c |8d |12a |12b |17a |30a">]
           [--SOS <on|off>]
       xdslcmd info [--state] [--show] [--stats] [--SNR] [--QLN] [--Hlog] [--Hlin] [--Bits]
           [--linediag] [--linediag1] [--pbParams][--vdsllinediag] [--adsllinediag] [--total] [--testparam]
           [--vendor]
       xdslcmd profile [--show]
       xdslcmd --version
       xdslcmd --help

Note: some of these xdslcmd commands are a bit flaky, the --Bits command only show results for download frequencies all upload frequencies give "0".

CPU info for the HG633:
$ cat /proc/cpuinfo
Processor       : ARMv7 Processor rev 1 (v7l)
processor       : 0
BogoMIPS        : 1497.49

processor       : 1
BogoMIPS        : 1497.49

Features        : swp half thumb fastmult edsp
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x4
CPU part        : 0xc09
CPU revision    : 1

Hardware        : sd56xx
Revision        : 0000
Serial          : 0000000000000000

The file worked on my HG633 but please use as your own risk.
« Last Edit: August 29, 2018, 05:53:38 PM by npr »
Logged

coolirc

  • Just arrived
  • *
  • Posts: 5
Re: Decrypting the configuration file on a Huawei HG635
« Reply #21 on: March 03, 2021, 08:00:32 AM »

Hello anyone can reupload the python script to decrypt and encrypt hg635 config file it seems i could not find it anywhere
thanks for the help
hg635_configtool.py
Logged

broadstairs

  • Kitizen
  • ****
  • Posts: 3697
Re: Decrypting the configuration file on a Huawei HG635
« Reply #22 on: March 03, 2021, 09:59:25 AM »

This link https://pastebin.com/uhSuWunY works.

Stuart

Logged
ISP:Vodafone Router:Vodafone Wi-Fi hub FTTP

coolirc

  • Just arrived
  • *
  • Posts: 5
Re: Decrypting the configuration file on a Huawei HG635
« Reply #23 on: March 03, 2021, 10:29:35 AM »

yes that script is for hg633 already tried on my hg635 config file it does not work
Logged

npr

  • Reg Member
  • ***
  • Posts: 265
Logged
Pages: 1 [2]
 

anything