Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dex2jar has not been observed #11

Open
Jai05-techie opened this issue Mar 30, 2024 · 2 comments
Open

dex2jar has not been observed #11

Jai05-techie opened this issue Mar 30, 2024 · 2 comments

Comments

@Jai05-techie
Copy link

Hi Team,

I am facing an issue with dex2jar while running APKHunt. I am using a Docker Ubuntu container and have installed all the required packages. However, when I try to run it, I encounter an error stating that dex2jar has not been observed. Could you please assist me with this? I have attached the console screenshot of it.

Screenshot 2024-03-30 at 1 23 06 PM

Below are the export paths,

export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-arm64
export PATH=$PATH:$JAVA_HOME/bin
export PATH=$PATH:/opt/jadx/bin

export PATH=$PATH:/opt/dex2jar 
export PATH=$PATH:/opt/dex2jar/dex2jar-2.0 //tried with both path 

Thank you.

@AmirhosseinBidokhti
Copy link

AmirhosseinBidokhti commented Apr 30, 2024

I actually fixed this by modifying the source code and adding .sh when the dex2jar is going to be excecuted.
changed it to:
cmd_apk_dex2jar, err := exec.Command("d2j-dex2jar.sh", apkpath, "-f", "-o", dex2jarpath).CombinedOutput()

also make sure to comment that section which checks for d2j-dex2jar in help in lines 72-75.
// case "d2j-dex2jar": //fmt.Printf("\n[!] dex2jar has not been observed. \n[!] Kindly install it first! \n[!] Exiting...") } //os.Exit(0)

in case of being able to run dex2jar from any folder, here is how i added the directory to PATH.
export PATH="$HOME/projects/mobileAppSec/tools/dex-tools-v2.4:$PATH"

@xbr01
Copy link

xbr01 commented May 18, 2024

I actually fixed this by modifying the source code and adding .sh when the dex2jar is going to be excecuted. changed it to: cmd_apk_dex2jar, err := exec.Command("d2j-dex2jar.sh", apkpath, "-f", "-o", dex2jarpath).CombinedOutput()

also make sure to comment that section which checks for d2j-dex2jar in help in lines 72-75. // case "d2j-dex2jar": //fmt.Printf("\n[!] dex2jar has not been observed. \n[!] Kindly install it first! \n[!] Exiting...") } //os.Exit(0)

in case of being able to run dex2jar from any folder, here is how i added the directory to PATH. export PATH="$HOME/projects/mobileAppSec/tools/dex-tools-v2.4:$PATH"

this one works thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants