diff --git a/.github/workflows/update-payloads.yml b/.github/workflows/update-payloads.yml new file mode 100644 index 0000000..f8d2735 --- /dev/null +++ b/.github/workflows/update-payloads.yml @@ -0,0 +1,83 @@ +name: Update payloads +on: + workflow_dispatch: + schedule: + - cron: "0 3 * * 5" # 3:00 am on fridays +jobs: + Update-Payloads: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Install jq + run: sudo apt install -y jq + + - name: Determine actual and latest versions of all payloads + run: | + # To-do: Maybe improve this process? + + # Actual versions + echo "AMS_VERSION=$(sed -n 5p payloads/payloads.json | cut -d '"' -f4)" >> $GITHUB_ENV + echo "HKT_VERSION=$(sed -n 10p payloads/payloads.json | cut -d '"' -f4)" >> $GITHUB_ENV + echo "TEX_VERSION=$(sed -n 15p payloads/payloads.json | cut -d '"' -f4)" >> $GITHUB_ENV + + # Latest versions + echo "AMS_LATEST=$(curl -s https://api.github.com/repos/Atmosphere-NX/Atmosphere/releases/latest | grep tag_name | cut -d '"' -f4)" >> $GITHUB_ENV + echo "HKT_LATEST=$(curl -s https://api.github.com/repos/CTCaer/hekate/releases/latest | grep tag_name | cut -d '"' -f4)" >> $GITHUB_ENV + echo "TEX_LATEST=$(curl -s https://api.github.com/repos/suchmememanyskill/TegraExplorer/releases/latest | grep tag_name | cut -d '"' -f4)" >> $GITHUB_ENV + - name: Update required payloads + run: | + mkdir payloads/temp && cd payloads/temp + UPDATE=false + + if [[ "$AMS_VERSION" -ne "AMS_LATEST" ]] + then + UPDATE=true + rm ../ams-*.bin + wget $(curl -s https://api.github.com/repos/Atmosphere-NX/Atmosphere/releases/latest | grep browser_download_url | grep fusee.bin | cut -d '"' -f4) + mv fusee.bin ../ams-$AMS_LATEST.bin + + jq --arg version "$AMS_LATEST" '.payloads[0].version |= $version' ../payloads.json | jq --arg path "payloads/ams-$AMS_LATEST.bin" '.payloads[0].path |= $path' > ../payloads_temp.json + mv ../payloads_temp.json ../payloads.json + fi + + if [[ "$HKT_VERSION" -ne "HKT_LATEST" ]] + then + UPDATE=true + rm ../hekate-*.bin + wget $(curl -s https://api.github.com/repos/CTCaer/hekate/releases/latest | grep browser_download_url | grep "hekate_ctcaer_.*\.zip" | cut -d '"' -f4) + unzip hekate_ctcaer_*.zip + mv hekate_ctcaer_*.bin ../hekate-$HKT_LATEST.bin + + jq --arg version "$HKT_LATEST" '.payloads[1].version |= $version' ../payloads.json | jq --arg path "payloads/hekate-$HKT_LATEST.bin" '.payloads[1].path |= $path' > ../payloads_temp.json + mv ../payloads_temp.json ../payloads.json + fi + + if [[ "$TEX_VERSION" -ne "$TEX_LATEST" ]] + then + UPDATE=true + rm ../tegraexplorer-*.bin + wget $(curl -s https://api.github.com/repos/suchmememanyskill/TegraExplorer/releases/latest | grep browser_download_url | grep TegraExplorer.bin | cut -d '"' -f4) + mv TegraExplorer.bin ../tegraexplorer-$TEX_LATEST.bin + + jq --arg version "$TEX_LATEST" '.payloads[2].version |= $version' ../payloads.json | jq --arg path "payloads/hekate-$TEX_LATEST.bin" '.payloads[2].path |= $path' > ../payloads_temp.json + mv ../payloads_temp.json ../payloads.json + fi + + echo "UPDATE=$UPDATE" >> $GITHUB_ENV + cd ../.. && rm -r payloads/temp + + - name: Commit changes if necessary + run: | + if [[ "$UPDATE" -eq true ]] + then + git config --global user.name 'GitHub Actions' + git config --global user.email 'github-actions@users.noreply.github.com' + git add --all + git commit -am ":robot: Payloads updated automatically" + git push + fi + + + diff --git a/i18n/de-DE.js b/i18n/de-DE.js index f5dc84c..6ca5f2b 100644 --- a/i18n/de-DE.js +++ b/i18n/de-DE.js @@ -14,13 +14,7 @@ let deDE = { "liLaunch" :"Falls alles richtig läuft, sollte der Payload gesendet werden!", "labelContribute" :'Möchtest du helfen eine Übersetzung hinzuzufügen, zu verbessern oder einen Payload hinzuzufügen besuche diese Seite.', "h1SetupDelivery" :"Payload-Einstellungen", - "h4SelectPayload" :"Wähle einen Payload:", - "optionAtmosphere" :"Atmosphère 1.3.2", - "optionSXOS" :"SX OS", - "optionReiNX" :"ReiNX 2.0", - "optionCTCaerHekate" :"Hekate v5.8.0", - "optionFusee" :"(Re)Switched Test Payload (fusee)", - "optionUpload" :"Eigenen Payload hochladen", + "h4SelectPayload" :"Wähle einen Payload:" "h3Log" :"Protokoll:", "h4GetByteArray" :"Erhalte den Payload Byte-Array (nicht senden)", "goButton" :"Payload senden!", diff --git a/i18n/du-NL.js b/i18n/du-NL.js index e15d98c..36622e3 100644 --- a/i18n/du-NL.js +++ b/i18n/du-NL.js @@ -15,12 +15,6 @@ let duNL = { "labelContribute" :'Als je wilt helpen met vertalen of het bijwerken/toevoegen van een payload, kijk dan naar dit.', "h1SetupDelivery" :"Setup Payload Versturing", "h4SelectPayload" :"Selecteer Payload:", - "optionAtmosphere" :"Atmosphère 1.3.2", - "optionSXOS" :"SX OS (All Versions)", - "optionReiNX" :"ReiNX 2.0", - "optionCTCaerHekate" :"Hekate v5.8.0", - "optionFusee" :"(Re)Switched test payload (fusee)", - "optionUpload" :"Upload Payload", "h3Log" :"Log:", "h4GetByteArray" :"Krijg payload byte reeks (Niet sploiten)", "goButton" :"Verstuur Payload!", diff --git a/i18n/en-US.js b/i18n/en-US.js index 1aedeb8..92d32fd 100644 --- a/i18n/en-US.js +++ b/i18n/en-US.js @@ -14,10 +14,6 @@ let enUS = { "labelContribute" :'If you would like to help adding another translation or updating/adding a payload, check this.', "h1SetupDelivery" :"Setup Payload Delivery", "h4SelectPayload" :"Select Payload:", - "optionAtmosphere" :"Atmosphère 1.3.2", - "optionCTCaerHekate" :"Hekate v5.8.0", - "optionFusee" :"(Re)Switched test payload (fusee)", - "optionUpload" :"Upload Payload", "h3Log" :"Log:", "h4GetByteArray" :"Get payload byte array (don't sploit)", "goButton" :"Deliver Payload!", diff --git a/i18n/es-MX.js b/i18n/es-MX.js index dc3a423..54ed783 100644 --- a/i18n/es-MX.js +++ b/i18n/es-MX.js @@ -15,10 +15,6 @@ let esMX = { "labelContribute" :'Si te gustaría ayudar añadiendo otra traducción o actualizando/añadiendo un payload, revisa esto.', "h1SetupDelivery" :"Configurar Payload a Enviar", "h4SelectPayload" :"Seleccionar Payload:", - "optionAtmosphere" :"Atmosphère 1.3.2", - "optionCTCaerHekate" :"Hekate v5.8.0", - "optionFusee" :"Payload de prueba de (Re)Switched (fusee)", - "optionUpload" :"Subir Payload", "h3Log" :"Registro:", "h4GetByteArray" :"Obtener matriz de bytes del payload (sin exploit)", "goButton" :"Enviar Payload!", diff --git a/i18n/fr-FR.js b/i18n/fr-FR.js index bc04ab8..897ab93 100644 --- a/i18n/fr-FR.js +++ b/i18n/fr-FR.js @@ -14,12 +14,6 @@ let frFR = { "liLaunch" :"Si tout est bon le Payload va démarrer!", "h1SetupDelivery" :"Configuration de l’envoi des Payloads", "h4SelectPayload" :"Sélectionnez le Payload:", - "optionCTCaerHekate" :"Hekate v5.8.0", - "optionFusee" :"(Re)Switched test payload (fusee)", - "optionAtmosphere":"Atmosphère 1.3.2", - "optionSXOS" :"SX OS (All Firmwares)", - "optionReiNX" :"ReiNX (With SigPatches)", - "optionUpload" :"Upload du Payload", "h3Log" :"Log:", "h4GetByteArray" :"Get payload byte array (don't sploit)", "goButton" :"Chargez le Payload!", diff --git a/i18n/it-IT.js b/i18n/it-IT.js index b1f7951..1219cea 100644 --- a/i18n/it-IT.js +++ b/i18n/it-IT.js @@ -15,12 +15,6 @@ let itIT = { "labelContribute" :'If you would like to help adding another translation or updating/adding a payload, check this.', "h1SetupDelivery" :"Setup Payload Delivery", "h4SelectPayload" :"Select Payload:", - "optionAtmosphere" :"Atmosphère 1.3.2", - "optionSXOS" :"SX OS", - "optionReiNX" :"ReiNX 2.0", - "optionCTCaerHekate" :"Hekate v5.8.0", - "optionFusee" :"(Re)Switched payload di test (fusee)", - "optionUpload" :"Carica payload", "h3Log" :"Log:", "h4GetByteArray" :"Ottieni byte array del payload (no exploit)", "goButton" :"Avvia Payload!", diff --git a/i18n/pl-PL.js b/i18n/pl-PL.js index 852f15f..20ab8d7 100644 --- a/i18n/pl-PL.js +++ b/i18n/pl-PL.js @@ -16,12 +16,6 @@ let plPL = { "labelContribute" :'If you would like to help adding another translation or updating/adding a payload, check this.', "h1SetupDelivery" :"Wybierz konfigurację payloadu", "h4SelectPayload" :"Wybierz Payload", - "optionAtmosphere" :"Atmosphère 1.3.2", - "optionSXOS" :"SX OS", - "optionReiNX" :"ReiNX 2.0", - "optionCTCaerHekate" :"Hekate v5.8.0", - "optionFusee" :"(Re)Switched testowy payload (fusee)", - "optionUpload" :"Załaduj payload", "h3Log" :"Log:", "h4GetByteArray" :"Uzyskaj ciąg bajtów payloadu (nie uruchamiaj)", "goButton" :"Dostarcz payload", diff --git a/i18n/pt-BR.js b/i18n/pt-BR.js index 00ca707..9e26321 100644 --- a/i18n/pt-BR.js +++ b/i18n/pt-BR.js @@ -15,12 +15,6 @@ let ptBR = { "labelContribute" :'If you would like to help adding another translation or updating/adding a payload, check this.', "h1SetupDelivery" :"Configurar Entrega de Payload", "h4SelectPayload" :"Payload:", - "optionAtmosphere" :"Atmosphère 1.3.2", - "optionSXOS" :"SX OS", - "optionReiNX" :"ReiNX 2.0", - "optionCTCaerHekate" :"Hekate v5.8.0", - "optionFusee" :"Payload de teste (Re)Switched (fusee)", - "optionUpload" :"Carregar Payload", "h3Log" :"Log:", "h4GetByteArray" :"Recuperar array de bytes do payload (favor não exploitar)", "goButton" :"Enviar Payload!", diff --git a/i18n/ru-RU.js b/i18n/ru-RU.js index 8ab8f47..7650089 100644 --- a/i18n/ru-RU.js +++ b/i18n/ru-RU.js @@ -15,12 +15,6 @@ let ruRU = { "labelContribute" :'If you would like to help adding another translation or updating/adding a payload, check this.', "h1SetupDelivery" :"Настройки отправки пейлоада", "h4SelectPayload" :"Выберите пейлоад:", - "optionAtmosphere" :"Atmosphère 1.3.2", - "optionSXOS" :"SX OS", - "optionReiNX" :"ReiNX 2.0", - "optionCTCaerHekate" :"Hekate v5.8.0", - "optionFusee" :"Тестовый пейлоад от (Re)Switched", - "optionUpload" :"Загрузить свой пейлоад", "h3Log" :"Log:", "h4GetByteArray" :"Получить побайтовый вывод листинга пейлоада в лог (без отправки на консоль)", "goButton" :"Отправить пейлоад!", diff --git a/i18n/zh-CN.js b/i18n/zh-CN.js index 4c72918..9e2985f 100644 --- a/i18n/zh-CN.js +++ b/i18n/zh-CN.js @@ -15,12 +15,6 @@ let zhCN = { "labelContribute" :'If you would like to help adding another translation or updating/adding a payload, check this.', "h1SetupDelivery" :"部署 Payload", "h4SelectPayload" :"选择 Payload:", - "optionAtmosphere" :"Atmosphère 1.3.2", - "optionSXOS" :"SX OS", - "optionReiNX" :"ReiNX 2.0", - "optionCTCaerHekate" :"Hekate v5.8.0", - "optionFusee" :"(Re)Switched test payload (fusee)", - "optionUpload" :"上传 Payload", "h4GetByteArray" :"获取Payload byte array (无Sploit)", "goButton" :"传递 Payload!", "clearlogsbutton" :"清除日志", diff --git a/i18n/zh-TW.js b/i18n/zh-TW.js index 205042a..2458794 100644 --- a/i18n/zh-TW.js +++ b/i18n/zh-TW.js @@ -15,12 +15,6 @@ let zhTW = { "labelContribute" :'If you would like to help adding another translation or updating/adding a payload, check this.', "h1SetupDelivery" :"部署 Payload", "h4SelectPayload" :"選擇 Payload:", - "optionAtmosphere" :"Atmosphère 1.3.2", - "optionSXOS" :"SX OS", - "optionReiNX" :"ReiNX 2.0", - "optionCTCaerHekate" :"Hekate v5.8.0", - "optionFusee" :"(Re)Switched test payload (fusee)", - "optionUpload" :"上傳Payload", "h4GetByteArray" :"獲取Payload byte array (無Sploit)", "goButton" :"傳遞Payload!", "clearlogsbutton" :"清除日誌", diff --git a/index.html b/index.html index 40791a3..f7dfbf3 100644 --- a/index.html +++ b/index.html @@ -118,9 +118,6 @@