You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Bjoern Kerler 9356b9be7d
Merge pull request #58 from italorecife/master
2 months ago
.github Create FUNDING.yml 2 years ago
README.md Merge pull request #57 from MlgmXyysd/patch-1 7 months ago
backdoor.py Year corrections, duplicate file 7 months ago
ofp_mtk_decrypt.py Year corrections, duplicate file 7 months ago
ofp_qc_decrypt.py Update ofp_qc_decrypt.py 6 months ago
ops_decrypt_frida.py Year corrections, duplicate file 7 months ago
opscrypto.py Year corrections, duplicate file 7 months ago
requirements.txt Add docopt requirement for opscrypt 1 year ago

README.md

oppo_decrypt

Oppo .ofp and Oneplus .ops Firmware decrypter

  • ofp_qc_decrypt.py : Decrypts oppo qc chipset based firmware with .ofp extension (oppo)
  • ofp_mtk_decrypt.py : Decrypts oppo mtk chipset based firmware with .ofp extension (oppo)
  • opscrypto.py : Decrypts and re-encrypts based firmware with .ops extension (oneplus)
  • backdoor.py : Enables hidden "readback" functionality

Installation:

  • Install >= python 3.8 and pip3

In the console, run

pip3 install -r requirements.txt

Both Linux and Windows now supported, folks !

Usage:

  • Extract oppo ofp file:
python3 ofp_qc_decrypt.py [myops.ofp] [directory to extract]
python3 ofp_mtk_decrypt.py [myops.ofp] [directory to extract]
  • Extract oneplus ops file:
python3 opscrypto.py decrypt [myops.ops]

File will be in the extract subdirectory

  • Repack oneplus ops file:
python3 opscrypto.py encrypt [path to extracted firmware]
  • Enable readback mode (use admin command prompt under windoze):
python3 backdoor.py "MsmDownloadTool V4.0.exe"'
  • Merge super images:

The .ofp may contain super firmware from multiple carriers, check the super_map.csv.txt outside .ofp first.

sudo apt install simg2img # If you have already installed, skip this step.
simg2img [super.0.xxxxxxxx.img] [super.1.xxxxxxxx.img] [super.1.xxxxxxxx.img] [filename to merge] # All split super imgs must be the same carrier

License:

Share, modify and use as you like, but refer the original author ! And if you like my work, please donate :)