GitHub - robbins/tp-link-decrypt: Decrypt TP-Link Firmware · GitHub
Skip to content

robbins/tp-link-decrypt

 
 

Repository files navigation

Info

This is a fork of @watchfulip's tp-link-decrypt repo that I have (with permission) taken over maintenance of and have added support for TPLink/Omada network switch firmware. I extracted the unencrypted firmware from an Omada switch SPI flash chip and discovered the keys. It turns out the same binaries are included in public TP-Link GPL releases and can be easily downloaded. The below README has been edited from watchfulip/tp-link-decrypt and the original can be seen there.

Credit

Instructions

  1. (optional) Run ./preinstall.sh or nix develop to satisfy dependencies

  2. Run ./extract_keys.sh to extract RSA/DES keys from TP-Link Firmware we download from vendor

  3. Run make or nix build (if you're using nix build you need to git add include first so the files are visible. TODO #5 to add the include files to the Nix store directly).

Decrypt with bin/tp-link-decrypt

If you found this tool useful, feel free to let me or WatchfulIP watchfulip@protonmail.com know :)

NOTE:

This program uses libsecurity GPL code downloaded from https://static.tp-link.com/upload/gpl-code/2022/202211/20221130/c310v2_GPL.tar.bz2

TP-Link firmware links used:


Great care has been taken not to infringe TP-Link's rights.

RSA & DES keys used for verification and decryption are taken from the firmware and other binary files TP-Link themselves publish.

This tool does not allow signed firmware to be created. Thus, there is no danger of unauthorized hostile firmware being placed on devices facilitated by this software.

It is hoped this tool may be useful in itself permitting security researches to assist TP-Link with any vulnerabilties.


About

Decrypt TP-Link Firmware

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

Languages

  • C 94.1%
  • Shell 4.8%
  • Other 1.1%