Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working with DrayTek Vigor2920 #8

Open
minhjirachi opened this issue Jan 10, 2018 · 3 comments
Open

Not working with DrayTek Vigor2920 #8

minhjirachi opened this issue Jan 10, 2018 · 3 comments
Assignees

Comments

@minhjirachi
Copy link

Hello,

I have the DrayTek Vigor2920 configuration file but it can't extract the password from the backup configuration file. Here is the log:

'Traceback (most recent call last):
File "D:\Downloads\Compressed\rext\rext.py", line 12, in
interpreter.cmdloop()
File "C:\Program Files\Python36\lib\cmd.py", line 138, in cmdloop
stop = self.onecmd(line)
File "C:\Program Files\Python36\lib\cmd.py", line 217, in onecmd
return func(arg)
File "D:\Downloads\Compressed\rext\interface\cmdui.py", line 100, in do_load
loader.load_module(self.active_module_import_name) # Module is loaded and executed
File "D:\Downloads\Compressed\rext\core\loader.py", line 18, in load_module
importlib.import_module(modname)
File "C:\Program Files\Python36\lib\importlib_init_.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 994, in _gcd_import
File "", line 971, in _find_and_load
File "", line 955, in _find_and_load_unlocked
File "", line 665, in _load_unlocked
File "", line 678, in exec_module
File "", line 219, in _call_with_frames_removed
File "D:\Downloads\Compressed\rext\modules\decryptors\draytek\vigor_config_old.py", line 173, in
Decryptor()
File "D:\Downloads\Compressed\rext\modules\decryptors\draytek\vigor_config_old.py", line 43, in init
core.Decryptor.RextDecryptor.init(self)
File "D:\Downloads\Compressed\rext\core\Decryptor.py", line 19, in init
self.cmdloop()
File "C:\Program Files\Python36\lib\cmd.py", line 138, in cmdloop
stop = self.onecmd(line)
File "C:\Program Files\Python36\lib\cmd.py", line 217, in onecmd
return func(arg)
File "D:\Downloads\Compressed\rext\modules\decryptors\draytek\vigor_config_old.py", line 49, in do_run
g, outdata = self.de_cfg(data)
File "D:\Downloads\Compressed\rext\modules\decryptors\draytek\vigor_config_old.py", line 69, in de_cfg
return g, self.decompress_cfg(self.decrypt_cfg(data))
File "D:\Downloads\Compressed\rext\modules\decryptors\draytek\vigor_config_old.py", line 110, in decompress_cfg
core.compression.lzo.pydelzo.decompress(b'\xF0' + pack(">L", rawcfgsize) + data[0x100:0x100 + lzocfgsize])
File "D:\Downloads\Compressed\rext\core\compression\lzo.py", line 90, in decompress
dst, dst_off, dst_len)
File "D:\Downloads\Compressed\rext\core\compression\lzo.py", line 124, in int_decompress
while src[ip] == 0:
IndexError: bytearray index out of range'

I have check that the def de_cfg(self, data) method does not work. I have print the array after processing and it all the \x00.

@minhjirachi
Copy link
Author

@j91321 j91321 self-assigned this Jan 10, 2018
@GunterO
Copy link

GunterO commented Nov 16, 2021

I'm encountering the same problem. Did you found a solution? Thanks!

@j91321
Copy link
Owner

j91321 commented Nov 16, 2021

Unfortunately not, the compression for Vigor2920 may be different, but I don't remember exactly what was the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants