leexiaolan / tplink-vxworks-based-firmware Goto Github PK
View Code? Open in Web Editor NEWTools for working with TP-LINK VxWorks-based router firmware
License: GNU General Public License v2.0
Tools for working with TP-LINK VxWorks-based router firmware
License: GNU General Public License v2.0
i'm trying to deconstruct a firmware update file for TP-LINK WE932RE and i found your code, but it does not work with the current files.
Can you tell me how to add new models to the files ?
I will do all the work i just need a direction.
https://www.lfd.uci.edu/~gohlke/pythonlibs/#pylzma 这个不行
在python3.6 下成功 解压
----> 1 decompressor.decompress(data[4:]) #后面重新new一个
EOFError: Already at end of stream
In [47]: type data
-------> type(data)
-------> type(data)
Out[47]: bytes
In [48]: decompressor= lzma.LZMADecompressor(format=lzma.FORMAT_ALONE)
In [49]: len(decompressor.decompress(data[9:]) ) # 4002357 ok
rhel6.5
[root@repos tplink-vxworks-based-firmware]# git log
commit fe16910
Author: Xiaolan.Lee [email protected]
Date: Tue Jun 17 18:10:36 2014 +0800
Update dependency for decrypting/encrypting config file.
commit a789601
Author: Xiaolan.Lee [email protected]
Date: Tue Jun 17 17:49:49 2014 +0800
Fix padding issue when decrypt/encrypt config file.
[root@repos tplink-vxworks-based-firmware]# python --version
Python 2.7.5
[root@repos tplink-vxworks-based-firmware]# ll
total 1384
-rwxr-xr-x 1 root root 1771 Jun 24 00:24 decompress-web-res.py
-rw-r--r-- 1 root root 92 Jun 24 00:24 dependencies
-rwxr-xr-x 1 root root 7538 Jun 24 00:24 fw
-rw-r--r-- 1 root root 1340903 Jun 5 04:45 get-pip.py
-rw-r--r-- 1 root root 18026 Jun 24 00:24 LICENSE
-rw-r--r-- 1 root root 14055 Apr 29 2010 pyDes-2.0.1.zip
-rw-r--r-- 1 root root 1240 Jun 24 00:24 README.md
drwxr-xr-x 2 root root 4096 Jun 24 01:04 tmp
-rwxr-xr-x 1 root root 1901 Jun 24 00:24 uncompress-os-image.py
-rwxr-xr-x 1 root root 2851 Jun 24 00:24 unow2fs.py
-rwxr-xr-x 1 root root 972 Jun 24 00:24 unpack.py
[root@repos tplink-vxworks-based-firmware]# ll tmp/
total 1688
-rw-r--r-- 1 root root 848964 Jun 24 01:18 mw305rv3.bin
-rw-r--r-- 1 root root 873140 Jan 20 15:28 wr842nv4-cn-up.bin
[root@repos tplink-vxworks-based-firmware]# ./fw unpack tmp/
mw305rv3.bin wr842nv4-cn-up.bin
[root@repos tplink-vxworks-based-firmware]# ./fw unpack tmp/wr842nv4-cn-up.bin
[root@repos tplink-vxworks-based-firmware]# ll
total 1384
-rwxr-xr-x 1 root root 1771 Jun 24 00:24 decompress-web-res.py
-rw-r--r-- 1 root root 92 Jun 24 00:24 dependencies
-rwxr-xr-x 1 root root 7538 Jun 24 00:24 fw
-rw-r--r-- 1 root root 1340903 Jun 5 04:45 get-pip.py
-rw-r--r-- 1 root root 18026 Jun 24 00:24 LICENSE
-rw-r--r-- 1 root root 14055 Apr 29 2010 pyDes-2.0.1.zip
-rw-r--r-- 1 root root 1240 Jun 24 00:24 README.md
drwxr-xr-x 2 root root 4096 Jun 24 01:04 tmp
-rwxr-xr-x 1 root root 1901 Jun 24 00:24 uncompress-os-image.py
-rwxr-xr-x 1 root root 2851 Jun 24 00:24 unow2fs.py
-rwxr-xr-x 1 root root 972 Jun 24 00:24 unpack.py
[root@repos tplink-vxworks-based-firmware]# ll tmp/
total 1688
-rw-r--r-- 1 root root 848964 Jun 24 01:18 mw305rv3.bin
-rw-r--r-- 1 root root 873140 Jan 20 15:28 wr842nv4-cn-up.bin
[root@repos tplink-vxworks-based-firmware]#
As in title
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.