OZIP Decrypter #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: OZIP Decrypter | |
on: | |
# release: | |
# types: [published] | |
# push: | |
# branches: | |
# - master | |
# paths: | |
# - '.config' | |
# schedule: | |
# - cron: 0 8 * * 5 | |
watch: | |
types: [started] | |
env: | |
FIRMWARE_LINK: https://download.c.realme.com/osupdate/RMX1801EX_11_OTA_2120_all_4q5L63MjpxAp.ozip | |
FIRMWARE_NAME: RMX1801EX_11_OTA_2120_all_4q5L63MjpxAp.ozip | |
FIRMWARE_ZIP_NAME: RMX1801EX_11_OTA_2120_all_4q5L63MjpxAp | |
TZ: Asia/Kolkata | |
jobs: | |
build: | |
runs-on: ubuntu-18.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@master | |
- name: Downloading Ozip Now.. | |
run: | | |
sudo -E apt-get -qq update | |
sudo apt install aria2 expect -y | |
aria2c $FIRMWARE_LINK | |
- name: Decrypting Ozip Now | |
run: | | |
sudo -E apt-get -qq update | |
sudo apt-get install python-pip | |
sudo -H pip install --upgrade pip | |
sudo -H pip install setuptools wheel docopt pycryptodome zip | |
wget https://raw.githubusercontent.com/techyminati/oppo_ozip_decrypt/master/ozipdecrypt.py | |
sudo python ozipdecrypt.py $FIRMWARE_NAME | |
zip -r $FIRMWARE_ZIP_NAME.zip ./out/* | |
- name: Upload Decrypted Zip | |
run: | | |
expect -c " | |
spawn sftp ${{ secrets.SFUSER }}@frs.sourceforge.net | |
expect \"yes/no\" | |
send \"yes\r\" | |
expect \"Password\" | |
send \"${{ secrets.SFPASS }}\r\" | |
expect \"sftp> \" | |
send \"cd ${{ secrets.SFDIR }}\r\" | |
set timeout -1 | |
send \"put $FIRMWARE_ZIP_NAME.zip\r\" | |
expect \"Uploading\" | |
expect \"100%\" | |
expect \"sftp>\" | |
send \"bye\r\" | |
interact" |