user1342 / DISintegrity

A tool for analysing Android APKs and extracting root, integrity, and tamper detection checks.
GNU General Public License v3.0
56 stars 6 forks source link

Does not work with APKTool Batch wrapper #5

Open FroggMaster opened 4 months ago

FroggMaster commented 4 months ago

I installed APKTool with the included .BAT wrapper file as described on the APKTool website: https://apktool.org/docs/install However upon running your tool I get the following error:

C:\Users\Frog\Downloads\Company Portal Rev\DISintegrity>python DISintegrity.py -apk "C:\Users\Frog\Downloads\Company Portal Rev\com.microsoft.windowsintune.companyportal-signed.apk" --apktool "C:\bin\APKTool\apktool.bat"
Extracting APK at 'C:\Users\Frog\Downloads\Company Portal Rev\com.microsoft.windowsintune.companyportal-signed.apk'. This may take some time...
An error occurred while running apktool for APK:
Error: Invalid or corrupt jarfile C:\bin\APKTool\apktool.bat

I had to pass the direct path to the JAR file despite APKTool being on my path and functional. Here you can see that it is indeed functional as I added it into my Windows Path:

C:\Users\Frog>apktool --version
2.9.3

C:\Users\Frog>apktool
Apktool 2.9.3 - a tool for reengineering Android apk files
with smali v3.0.3 and baksmali v3.0.3
Copyright 2010 Ryszard Wiśniewski <brut.alll@gmail.com>
Copyright 2010 Connor Tumbleson <connor.tumbleson@gmail.com>

usage: apktool
 -advance,--advanced   Print advanced information.
 -version,--version    Print the version.
usage: apktool if|install-framework [options] <framework.apk>
 -p,--frame-path <dir>   Store framework files into <dir>.
 -t,--tag <tag>          Tag frameworks using <tag>.
usage: apktool d[ecode] [options] <file_apk>
 -f,--force              Force delete destination directory.
 -o,--output <dir>       The name of folder that gets written. (default: apk.out)
 -p,--frame-path <dir>   Use framework files located in <dir>.
 -r,--no-res             Do not decode resources.
 -s,--no-src             Do not decode sources.
 -t,--frame-tag <tag>    Use framework files tagged by <tag>.
usage: apktool b[uild] [options] <app_path>
 -f,--force-all          Skip changes detection and build all files.
 -o,--output <dir>       The name of apk that gets written. (default: dist/name.apk)
 -p,--frame-path <dir>   Use framework files located in <dir>.

For additional info, see: https://apktool.org
For smali/baksmali info, see: https://github.com/google/smali
itsvek03 commented 2 months ago

Where u put the jar file path

FroggMaster commented 2 weeks ago

C:\bin\APKTool The location shouldn't really matter if it's properly defined in the Windows Path.