折腾:
【已解决】尝试破解小花生app安卓apk希望看到api返回的json中的J的解密算法得到明文
期间,之前已经去解压过小花生的v3.6.9的apk,得到一堆项目相关文件了:
现在继续去研究其他版本。
➜ v3.4.8 apktool d /Users/crifan/dev/dev_root/company/xxx/projects/crawl_data/小花生app/apk/xiaohuasheng-v3.4.8.apk I: Using Apktool 2.4.0 on xiaohuasheng-v3.4.8.apk I: Loading resource table... I: Decoding AndroidManifest.xml with resources... S: WARNING: Could not write to (/Users/crifan/Library/apktool/framework), using /var/folders/46/2hjxz38n22n3ypp_5f6_p__00000gn/T/ instead... S: Please be aware this is a volatile directory and frameworks could go missing, please utilize --frame-path if the default storage directory is unavailable I: Loading resource table from file: /var/folders/46/2hjxz38n22n3ypp_5f6_p__00000gn/T/1.apk I: Regular manifest package... I: Decoding file-resources... I: Decoding values */* XMLs... I: Baksmaling classes.dex... I: Copying assets and libs... I: Copying unknown files... I: Copying original files... ➜ v3.4.8 ll total 0 drwxr-xr-x 10 crifan staff 320B 3 22 10:49 xiaohuasheng-v3.4.8 ➜ v3.4.8 ll xiaohuasheng-v3.4.8 total 128 -rw-r--r-- 1 crifan staff 56K 3 22 10:49 AndroidManifest.xml -rw-r--r-- 1 crifan staff 2.6K 3 22 10:49 apktool.yml drwxr-xr-x 12 crifan staff 384B 3 22 10:49 assets drwxr-xr-x 6 crifan staff 192B 3 22 10:49 lib drwxr-xr-x 4 crifan staff 128B 3 22 10:49 original drwxr-xr-x 28 crifan staff 896B 3 22 10:49 res drwxr-xr-x 3 crifan staff 96B 3 22 10:49 smali drwxr-xr-x 4 crifan staff 128B 3 22 10:49 unknown ➜ v3.4.8
然后用VSCode去打开看看效果
其中:
apktool.yml
AndroidManifest.xml
此处可以获取到:
app内部的目录结构和文件名=类名
比如:
<activity android:name=".activity.LoginActivity" android:screenOrientation="portrait"/> <activity android:name=".activity.LoginBindPhoneActivity" android:screenOrientation="portrait"/> <activity android:name=".activity.RegisterActivity" android:screenOrientation="portrait"/> <activity android:name=".activity.VerificationCodeLoginActivity" android:screenOrientation="portrait"/> <activity android:name=".activity.GuidePageActivity" android:screenOrientation="portrait"/> <activity android:name=".activity.base.WebViewActivity" android:screenOrientation="portrait"/> <activity android:name=".activity.base.ChoosePictureActivity" android:screenOrientation="portrait"/> <activity android:name=".activity.base.LookPhotoActivity" android:screenOrientation="portrait"/> <activity android:name=".activity.booklist.ViewActivityBooklistActivity" android:screenOrientation="portrait"/> <activity android:name=".activity.booklist.AddBookWithChildrenBooklistActivity" android:screenOrientation="portrait"/> <activity android:name=".activity.booklist.AgeRankingActivity" android:screenOrientation="portrait"/> <activity android:name=".activity.booklist.ActivityBooklistActivity" android:screenOrientation="portrait"/> <activity android:name=".activity.booklist.CreateActivityBooklistActivity" android:screenOrientation="portrait" android:windowSoftInputMode="adjustResize"/> <activity android:name=".activity.booklist.UserAndRecommendBooklistsActivity" android:screenOrientation="portrait"/> <activity android:name=".activity.bookcase.SearchMyBookWithSelectedBookActivity" android:screenOrientation="portrait"/> <activity android:name=".activity.book.BookXunxiListActivity" android:screenOrientation="portrait"/> <activity android:name=".activity.book.ShareBookCardActivity" android:screenOrientation="portrait"/> <activity android:name=".activity.booklist.UBLSelectBookWithWriteActivity" android:screenOrientation="portrait"/> <activity android:name=".activity.tabreading.ReadingCalendarActivity" android:screenOrientation="portrait"/> <activity android:name=".activity.tabreading.ReadingWallActivity" android:screenOrientation="portrait"/> ...
而去对比另外
小花生安卓版 v3.6.9的apk
apk后缀改zip再解压后
其中的
AndroidManifest.xml
就包括了:
<activity android:name="com.huili.readingclub.activity.classroom.SelfReadingActivity" android:screenOrientation="portrait"/> ... <activity android:name="com.huili.readingclub.activity.classroom.ParentChildReadingActivity" android:screenOrientation="portrait"/>
对应了app界面:
中:
- 自主阅读馆
- 亲子阅读馆
所对应的文件名=类名=界面:
- activity.classroom.SelfReadingActivity
- activity.classroom.ParentChildReadingActivity
-》此处至少说明:
不借助外部任何工具,只是通过apk,都可以得到:
内部的界面所对应的文件名,类名
-》有助有后续破解app。
转载请注明:在路上 » 【记录】从安卓的apk中解压出各种项目文件