APK decompilers | HackTricks (2024)

Learn & practice AWS Hacking:APK decompilers | HackTricks (1)HackTricks Training AWS Red Team Expert (ARTE)APK decompilers | HackTricks (2)Learn & practice GCP Hacking: APK decompilers | HackTricks (3)HackTricks Training GCP Red Team Expert (GRTE)APK decompilers | HackTricks (4)

Support HackTricks

For further details on each tool check the original post from https://eiken.dev/blog/2021/02/how-to-break-your-jar-in-2021-decompilation-guide-for-jars-and-apks/#cfr

As the pioneering GUI Java decompiler, JD-Gui allows you to investigate Java code within APK files. It's straightforward to use; after obtaining the APK, simply open it with JD-Gui to inspect the code.

Jadx offers a user-friendly interface for decompiling Java code from Android applications. It's recommended for its ease of use across different platforms.

  • To launch the GUI, navigate to the bin directory and execute: jadx-gui

  • For command-line usage, decompile an APK with: jadx app.apk

  • To specify an output directory or adjust decompilation options: jadx app.apk -d <path to output dir> --no-res --no-src --no-imports

GDA, a Windows-only tool, offers extensive features for reverse engineering Android apps. Install and run GDA on your Windows system, then load the APK file for analysis.

With Bytecode-Viewer, you can analyze APK files using multiple decompilers. After downloading, run Bytecode-Viewer, load your APK, and select the decompilers you wish to use for simultaneous analysis.

Enjarify translates Dalvik bytecode to Java bytecode, enabling Java analysis tools to analyze Android applications more effectively.

  • To use Enjarify, run: enjarify app.apk This generates the Java bytecode equivalent of the provided APK.

CFR is capable of decompiling modern Java features. Use it as follows:

  • For standard decompilation: java -jar ./cfr.jar "app.jar" --outputdir "output_directory"

  • For large JAR files, adjust the JVM memory allocation: java -Xmx4G -jar ./cfr.jar "app.jar" --outputdir "output_directory"

Fernflower, an analytical decompiler, requires building from source. After building:

  • Decompile a JAR file: java -jar ./fernflower.jar "app.jar" "output_directory" Then, extract the .java files from the generated JAR using unzip.

Krakatau offers detailed control over decompilation, especially for handling external libraries.

  • Use Krakatau by specifying the standard library path and the JAR file to decompile: ./Krakatau/decompile.py -out "output_directory" -skip -nauto -path "./jrt-extractor/rt.jar" "app.jar"

For straightforward decompilation with procyon:

  • Decompile a JAR file to a specified directory: procyon -jar "app.jar" -o "output_directory"

Learn & practice AWS Hacking:APK decompilers | HackTricks (5)HackTricks Training AWS Red Team Expert (ARTE)APK decompilers | HackTricks (6)Learn & practice GCP Hacking: APK decompilers | HackTricks (7)HackTricks Training GCP Red Team Expert (GRTE)APK decompilers | HackTricks (8)

Support HackTricks
APK decompilers | HackTricks (2024)
Top Articles
10 Bank Accounts You Can Open Even if You Have Bad Credit
Warren Buffett Stocks: Here's What Is in Berkshire Hathaway's Portfolio | The Motley Fool
Access-A-Ride – ACCESS NYC
CLI Book 3: Cisco Secure Firewall ASA VPN CLI Configuration Guide, 9.22 - General VPN Parameters [Cisco Secure Firewall ASA]
Algebra Calculator Mathway
Google Sites Classroom 6X
Kobold Beast Tribe Guide and Rewards
Top 10: Die besten italienischen Restaurants in Wien - Falstaff
Wausau Marketplace
<i>1883</i>'s Isabel May Opens Up About the <i>Yellowstone</i> Prequel
35105N Sap 5 50 W Nit
Samsung 9C8
13 The Musical Common Sense Media
fltimes.com | Finger Lakes Times
Walmart Windshield Wiper Blades
My.tcctrack
2020 Military Pay Charts – Officer & Enlisted Pay Scales (3.1% Raise)
R Personalfinance
Effingham Bookings Florence Sc
Drago Funeral Home & Cremation Services Obituaries
Craigslist Maui Garage Sale
How to Watch the Fifty Shades Trilogy and Rom-Coms
Selfservice Bright Lending
Culver's Flavor Of The Day Taylor Dr
Bella Bodhi [Model] - Bio, Height, Body Stats, Family, Career and Net Worth 
12 Top-Rated Things to Do in Muskegon, MI
Great Clips Grandview Station Marion Reviews
Finding Safety Data Sheets
Lovindabooty
SOGo Groupware - Rechenzentrum Universität Osnabrück
Lbrands Login Aces
Waters Funeral Home Vandalia Obituaries
Cinema | Düsseldorfer Filmkunstkinos
Big Boobs Indian Photos
Pipa Mountain Hot Pot渝味晓宇重庆老火锅 Menu
Angel del Villar Net Worth | Wife
The Mad Merchant Wow
Whitehall Preparatory And Fitness Academy Calendar
Empire Visionworks The Crossings Clifton Park Photos
Craigslist Pets Huntsville Alabama
Legit Ticket Sites - Seatgeek vs Stubhub [Fees, Customer Service, Security]
Saybyebugs At Walmart
Infinite Campus Farmingdale
Martha's Vineyard – Travel guide at Wikivoyage
Southwest Airlines Departures Atlanta
The Average Amount of Calories in a Poke Bowl | Grubby's Poke
How to Find Mugshots: 11 Steps (with Pictures) - wikiHow
Google Flights Missoula
Compete My Workforce
Jovan Pulitzer Telegram
Subdomain Finer
How to Choose Where to Study Abroad
Latest Posts
Article information

Author: Eusebia Nader

Last Updated:

Views: 5828

Rating: 5 / 5 (80 voted)

Reviews: 87% of readers found this page helpful

Author information

Name: Eusebia Nader

Birthday: 1994-11-11

Address: Apt. 721 977 Ebert Meadows, Jereville, GA 73618-6603

Phone: +2316203969400

Job: International Farming Consultant

Hobby: Reading, Photography, Shooting, Singing, Magic, Kayaking, Mushroom hunting

Introduction: My name is Eusebia Nader, I am a encouraging, brainy, lively, nice, famous, healthy, clever person who loves writing and wants to share my knowledge and understanding with you.