mirror of
https://github.com/vitalygashkov/crextractor.git
synced 2026-07-16 01:44:24 +02:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8275aff35e | ||
|
|
1d8596b8c9 | ||
|
|
8658934ebe | ||
|
|
96e77102e3 | ||
|
|
673c276c9a | ||
|
|
ed80f46a45 | ||
|
|
e8468cafe9 | ||
|
|
50d84b208c | ||
|
|
3ed2207eaa | ||
|
|
980278acb9 | ||
|
|
485d330af2 | ||
|
|
50f77e0e7a | ||
|
|
00ba683170 | ||
|
|
d979333e13 | ||
|
|
1908ba60f5 | ||
|
|
45ab0a6085 | ||
|
|
17e9adf3b2 | ||
|
|
99d07dc063 | ||
|
|
c7a72f06a2 | ||
|
|
2ac5d94eb8 | ||
|
|
f2db789e75 | ||
|
|
a00b53007f | ||
|
|
38ac098adb | ||
|
|
5240fe25d5 | ||
|
|
50267e58a6 | ||
|
|
06e004b173 |
@@ -3,56 +3,38 @@ name: Extract
|
|||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 4 * * 1' # Runs every Monday at 04:00 UTC
|
- cron: '0 6 * * 6' # Runs every Saturday at 06:00 UTC
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
extract:
|
extract:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
# Give the default GITHUB_TOKEN write permission to commit and push the
|
|
||||||
# added or changed files to the repository.
|
|
||||||
contents: write
|
contents: write
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- uses: actions/checkout@v4
|
||||||
uses: actions/checkout@v4
|
- uses: actions/setup-node@v4
|
||||||
|
|
||||||
# JADX requires Java 11 or higher to run
|
|
||||||
- name: Set up JDK 17
|
|
||||||
uses: actions/setup-java@v4
|
|
||||||
with:
|
with:
|
||||||
java-version: '17'
|
node-version: 22
|
||||||
|
- uses: actions/setup-java@v4
|
||||||
|
with:
|
||||||
|
java-version: '21'
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
|
|
||||||
# Download and install the latest version of JADX
|
|
||||||
- name: Install JADX
|
- name: Install JADX
|
||||||
run: |
|
run: |
|
||||||
# Fetch the latest version tag from the JADX GitHub repository
|
|
||||||
JADX_VERSION=$(curl -s "https://api.github.com/repos/skylot/jadx/releases/latest" | grep -Po '"tag_name": "v\K[0-9.]+')
|
JADX_VERSION=$(curl -s "https://api.github.com/repos/skylot/jadx/releases/latest" | grep -Po '"tag_name": "v\K[0-9.]+')
|
||||||
echo "Installing JADX version ${JADX_VERSION}..."
|
echo "Installing JADX version ${JADX_VERSION}..."
|
||||||
|
|
||||||
# Download the release zip file
|
|
||||||
curl -Lo jadx.zip "https://github.com/skylot/jadx/releases/download/v${JADX_VERSION}/jadx-${JADX_VERSION}.zip"
|
curl -Lo jadx.zip "https://github.com/skylot/jadx/releases/download/v${JADX_VERSION}/jadx-${JADX_VERSION}.zip"
|
||||||
|
|
||||||
# Unzip the archive
|
|
||||||
unzip -q jadx.zip -d jadx-dist
|
unzip -q jadx.zip -d jadx-dist
|
||||||
|
echo "$(pwd)/jadx-dist/bin" >> $GITHUB_PATH
|
||||||
# Add the JADX bin directory to the GitHub Actions path
|
|
||||||
# This makes the 'jadx' command available in subsequent steps
|
|
||||||
echo "$(pwd)/jadx-dist/jadx-${JADX_VERSION}/bin" >> $GITHUB_PATH
|
|
||||||
|
|
||||||
# Clean up the downloaded zip file
|
|
||||||
rm jadx.zip
|
rm jadx.zip
|
||||||
shell: bash
|
|
||||||
|
|
||||||
# Verify that JADX was installed correctly
|
- name: Install dependencies
|
||||||
- name: Verify JADX installation
|
run: npm install
|
||||||
run: jadx --version
|
|
||||||
|
|
||||||
# Verify that JADX was installed correctly
|
|
||||||
- name: Extract app credentials
|
- name: Extract app credentials
|
||||||
run: node . --target mobile --output ./credentials.mobile.json && node . --target tv --output ./credentials.tv.json
|
run: npm run extract:mobile && npm run extract:tv
|
||||||
|
|
||||||
# Commit all changed files back to the repository
|
|
||||||
- uses: stefanzweifel/git-auto-commit-action@v5
|
- uses: stefanzweifel/git-auto-commit-action@v5
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
/node_modules
|
/node_modules
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
/jadx-dist
|
||||||
|
/jadx.zip
|
||||||
/crunchyroll
|
/crunchyroll
|
||||||
crunchyroll.apk
|
crunchyroll.apk
|
||||||
crunchyroll.xapk
|
crunchyroll.xapk
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"version": "3.89.2 (952)",
|
"version": "3.92.3 (977)",
|
||||||
"id": "n0q2nxl37zig0dqn0aio",
|
"id": "dvoxpszj59depczpxvwj",
|
||||||
"secret": "P0j3he4N8UG8W2w0-PvDadjGuv62fN2d",
|
"secret": "_VQmMQlJw65tMCIT-SvM2r6OvBTs85Gf",
|
||||||
"encoded": "bjBxMm54bDM3emlnMGRxbjBhaW86UDBqM2hlNE44VUc4VzJ3MC1QdkRhZGpHdXY2MmZOMmQ=",
|
"encoded": "ZHZveHBzemo1OWRlcGN6cHh2d2o6X1ZRbU1RbEp3NjV0TUNJVC1Tdk0ycjZPdkJUczg1R2Y=",
|
||||||
"authorization": "Basic bjBxMm54bDM3emlnMGRxbjBhaW86UDBqM2hlNE44VUc4VzJ3MC1QdkRhZGpHdXY2MmZOMmQ="
|
"authorization": "Basic ZHZveHBzemo1OWRlcGN6cHh2d2o6X1ZRbU1RbEp3NjV0TUNJVC1Tdk0ycjZPdkJUczg1R2Y="
|
||||||
}
|
}
|
||||||
+5
-5
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"version": "3.42.1 (22267)",
|
"version": "3.45.2 (22274)",
|
||||||
"id": "bmbrkxyx3d7u6jsfyla4",
|
"id": "cb9nzrmht32vgtexygko",
|
||||||
"secret": "AIN4D5VE_cp0wVzfNoP0YqHUrYFp9hSg",
|
"secret": "KUwmMjJXxxursHITd1zvl2C2yQaQo8N4",
|
||||||
"encoded": "Ym1icmt4eXgzZDd1NmpzZnlsYTQ6QUlONEQ1VkVfY3Awd1Z6Zk5vUDBZcUhVcllGcDloU2c=",
|
"encoded": "Y2I5bnpybWh0MzJ2Z3RleHlna286S1V3bU1qSlh4eHVyc0hJVGQxenZsMkMyeVFhUW84TjQ=",
|
||||||
"authorization": "Basic Ym1icmt4eXgzZDd1NmpzZnlsYTQ6QUlONEQ1VkVfY3Awd1Z6Zk5vUDBZcUhVcllGcDloU2c="
|
"authorization": "Basic Y2I5bnpybWh0MzJ2Z3RleHlna286S1V3bU1qSlh4eHVyc0hJVGQxenZsMkMyeVFhUW84TjQ="
|
||||||
}
|
}
|
||||||
+6
-1
@@ -17,7 +17,7 @@ const downloadMobileApk = async () => {
|
|||||||
const downloadTvApk = async () => {
|
const downloadTvApk = async () => {
|
||||||
const source = 'https://webservices.aptoide.com/webservices/3/getApkInfo';
|
const source = 'https://webservices.aptoide.com/webservices/3/getApkInfo';
|
||||||
const formData = new FormData();
|
const formData = new FormData();
|
||||||
formData.append('identif', 'id:71305225');
|
formData.append('identif', 'id:71666229');
|
||||||
formData.append('mode', 'json');
|
formData.append('mode', 'json');
|
||||||
const response = await fetch(source, {
|
const response = await fetch(source, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
@@ -100,6 +100,11 @@ const extract = async ({ target = 'mobile', output, cleanup = false } = {}) => {
|
|||||||
console.log('Downloading APK...');
|
console.log('Downloading APK...');
|
||||||
const apkPath = target === 'tv' ? await downloadTvApk() : await downloadMobileApk();
|
const apkPath = target === 'tv' ? await downloadTvApk() : await downloadMobileApk();
|
||||||
|
|
||||||
|
if (existsSync(apkPath)) {
|
||||||
|
console.error('Unable to find APK (possibly a download error)');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
console.log('Decompiling APK...');
|
console.log('Decompiling APK...');
|
||||||
const decompiledDir = decompileApk(apkPath);
|
const decompiledDir = decompileApk(apkPath);
|
||||||
|
|
||||||
|
|||||||
Generated
+6
-6
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "crextractor",
|
"name": "crextractor",
|
||||||
"version": "1.3.0",
|
"version": "1.3.2",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "crextractor",
|
"name": "crextractor",
|
||||||
"version": "1.3.0",
|
"version": "1.3.2",
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
"type": "individual",
|
"type": "individual",
|
||||||
@@ -15,7 +15,7 @@
|
|||||||
],
|
],
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"molnia": "^0.1.5"
|
"molnia": "^0.1.7"
|
||||||
},
|
},
|
||||||
"bin": {
|
"bin": {
|
||||||
"crextractor": "bin/cli.js"
|
"crextractor": "bin/cli.js"
|
||||||
@@ -37,9 +37,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/molnia": {
|
"node_modules/molnia": {
|
||||||
"version": "0.1.5",
|
"version": "0.1.7",
|
||||||
"resolved": "https://registry.npmjs.org/molnia/-/molnia-0.1.5.tgz",
|
"resolved": "https://registry.npmjs.org/molnia/-/molnia-0.1.7.tgz",
|
||||||
"integrity": "sha512-Kb3bhlvNVWJ9Z8tGZGkhmChpXQY8OLFPkxXFvLJb+foLwfH7JyyJl+DbKuUKAIK1vnxs5sBFuQb3wxOIwWBpiA==",
|
"integrity": "sha512-wCezzcu2sRybrJb9ltrBEWwzO9NU2DRgxZw5Gr1g2QrnwrNo+olE3cAiD3Q1Y76rCde1qXBUmEuZ13aKXew+AQ==",
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
"type": "individual",
|
"type": "individual",
|
||||||
|
|||||||
+2
-2
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "crextractor",
|
"name": "crextractor",
|
||||||
"version": "1.3.0",
|
"version": "1.3.2",
|
||||||
"description": "Utility for extracting credentials from the Crunchyroll Android app",
|
"description": "Utility for extracting credentials from the Crunchyroll Android app",
|
||||||
"main": "crextractor.js",
|
"main": "crextractor.js",
|
||||||
"bin": {
|
"bin": {
|
||||||
@@ -35,7 +35,7 @@
|
|||||||
"node": ">=20"
|
"node": ">=20"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"molnia": "^0.1.5"
|
"molnia": "^0.1.7"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"typescript": "^5.9.2"
|
"typescript": "^5.9.2"
|
||||||
|
|||||||
Reference in New Issue
Block a user