From the course: Ethical Hacking: Mobile Devices and Platforms

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Extracting and reading JavaScript code

Extracting and reading JavaScript code - iOS Tutorial

From the course: Ethical Hacking: Mobile Devices and Platforms

Start my 1-month free trial

Extracting and reading JavaScript code

- [Instructor] We can recover the JavaScript code from Android applications by processing the downloaded APK file. This requires the use of the dex2jar and the JD-GUI tools. The first tool, dex2jar, can be downloaded from its SourceForge site. This comes as a zip file and includes both Windows and Linux tools. I've downloaded this already into my Android testing tools directory. JD-GUI is available, as are a number of other Java decompiler tools, from the site shown here. It's a standalone graphical tool that displays the Java source code and class elements in a very usable way. We'll use it to browse the source code we reconstruct using dex2jar. I've already downloaded the Windows zip file into my Android testing tools directory. I'll again use the SMS reader application I downloaded to show how we can extract and browse the source code. I'll go in to the dex2jar directory and take a look at what's there. The SH…

Contents