Lab 5 Android Application Reverse Engineering and Obfuscation

Lab 5 Android Application Reverse Engineering And Obfuscation-Free PDF

  • Date:12 Jan 2020
  • Views:77
  • Downloads:0
  • Pages:23
  • Size:8.43 MB

Share Pdf : Lab 5 Android Application Reverse Engineering And Obfuscation

Download and Preview : Lab 5 Android Application Reverse Engineering And Obfuscation


Report CopyRight/DMCA Form For : Lab 5 Android Application Reverse Engineering And Obfuscation


Transcription:

Starting the Lab 5 Virtual Machine, The Kai Linux VM has all the required files Select the VM named Lab5 Due to. performance limitation I recommend that you work on the lab assignment on your. laptop without virtual machine, Login the Kali Linux with username root and password TBA in the class Below is the. screen snapshot after login,Fengwei Zhang CS 315 Computer Security Course 2. Setting up the Environment, This lab requires a few tools to be installed Fortunately I have installed and setup. these tools for you If you want to finish this lab on your own laptop or desktops without. virtual machine please follow the steps below to setup the environment. Install Java SE Development Kit JDK, First you need to install the Java SE Development Kit JDK on your system After you.
install the JDK this should also provide the jarsigner and keytool utilities The latest. JDK can be found at the following URL, http www oracle com technetwork java javase downloads index html. The JDK supports multiple OSes including Windows Linux and Mac OS If you use Kali. Linux you need to extract the JDK folder and switch the default OpenJDK to Java SE. JDK The instructions for that can be find here, http www blackmoreops com 2015 08 15 how to install java in kali linux 2 0 kali sana. Install Android Studio, Android Studio includes Android Integrated Development Environment IDE Software. Development Kit SDK tools and an emulator system You can download it from the. following URL,http developer android com sdk index html. Then you extract the android studio file In our Kali Linux image I extracted under. root Documents android studio To run the Android Studio just go to the bin directory. and run studio sh,cd root Documents android studio bin.
If you run the studio sh at the first time it would setup the Android SDK for you The. screenshot below shows the Android Studio Setup Wizard when running at the first. Fengwei Zhang CS 315 Computer Security Course 3,Android SDK Tools. In our Kali Linux image the Android SDK is at root Android Sdk All of the SDK tools. are under this directory Below are some tools that you will use in the lab. android sdk Android SDK manager it is under Android Sdk tools directory. android avd Android Virtual Device manager it is under Andorid Sdk tools directory. you can create an virtual device using the AVD manager. emulator avd avd name options Start an emulator with a configured virtual. device it is under the Andorid Sdk tools directory. adb Android Debug Bridge You can gain a shell by running adb shell It is under. Android Sdk platform tools, zipalign Optimizes apk files by ensuring that all uncompressed data starts with a. particular alignment It is under the Android Sdk build tools 23 0 2 directory. You can find a full list of SDK tools from here,Fengwei Zhang CS 315 Computer Security Course 4. http developer android com tools help index html, For easy access to the SDK tools from a command line we add the location of the. SDK s tools platform tools and build tools to your PATH environment variable. vim bashrc,Edit the file as the screenshot below,source bashrc.
Android Studio IDE vs Eclipse IDE, For this lab you can use either Android Studio IDE or Eclipse IDE To use Eclipse you. need to install the Android ADT plugins In this lab instruction I will use Android Studio. IDE as an example,Android Emulator vs Android Device. You can use a real android device to test the applications in this lab If you do not have. an Android device or do not want to use your Android device then you can use the. emulator The instructions for creating and using the emulator are at the URL below. http developer android com tools devices emulator html. Fengwei Zhang CS 315 Computer Security Course 5,Creating an Android Application. The goal of this exercise is to familiarize you with Android development and get started. with a simple Login application The following are the steps to build this app You also. can find similar instructions from here, http developer android com training basics firstapp creating project html. 1 Start the Android Studio IDE,cd root Documents android studio bin.
Fengwei Zhang CS 315 Computer Security Course 6,2 Start a new Android Studio Project. Click on Start a new Android Studio Project Input the application name and the. company domain Note that the package name is the reversal of domain name and the. application name The screenshot below shows an example. 3 Select the Form Factors Your App Will Run On, Check the Phone and Tablet box and select the minimum SDK as API 19 Android 4 4. Fengwei Zhang CS 315 Computer Security Course 7,4 Add the Login Activity to Mobile. Fengwei Zhang CS 315 Computer Security Course 8,5 Customize the Activity. 6 Finish Creating the Application, The screenshot in the next page shows the GUI interface of Android Studio IDE You.
can see that the LoginActivity java source code is the login activity you just created The. default usernames and passwords are defined in LoginActivitly java. Fengwei Zhang CS 315 Computer Security Course 9,Fengwei Zhang CS 315 Computer Security Course 10. Creating an Android Virtual Device AVD with AVD Manager. To run your application you need to create a virtual device If you want to run the. application on your physical Android device you can skip to next section You can start. the AVD manager by typing android avd in a terminal Then it should pop up the AVD. manager window as the screenshot below,android avd. Click on Create to create a new Android Virtual Device If you create a virtual device. first time you may need to run android sdk to install the packets for CPU ABI The. Kali VM image should have installed the required packets The screenshot below shows. creating a virtual device,Fengwei Zhang CS 315 Computer Security Course 11. After you specify the settings for the Android virtual device you can click OK Then. the device you just created will show on the AVD manager as the screenshot below. Fengwei Zhang CS 315 Computer Security Course 12, Next you can click Start to launch the virtual device using the emulator system. Note that it may take sometime to open the emulator Be patient The screenshots. below show the Android Virtual Device in an emulator. Fengwei Zhang CS 315 Computer Security Course 13,Running an Android Application.
Next you need to run the application that you just created You can choose to run it on. your own Android device or an emulator In this lab instruction we will show how to run. it in an emulator, Click on Run tab and then select Run app Then you will see a pop up Window to. ask you to choose a device You can choose the running device Click OK. Fengwei Zhang CS 315 Computer Security Course 14, If you didn t open the emulator yet you can mark the radio button Launch emulator. and select the name of the AVD you just created It is SecurityClass avd in the example. of this lab instruction Note that it takes some time to open up an emulator especially in. a VM Screenshots below show the SecurityClass application is running in the emulator. Lab 5 Android Application Reverse Engineering and Obfuscation Introduction Reverse Engineering is a popular hacking approach that extracts the knowledge and design of a system and reproduces its behavior based on the extracted information To prevent the reverse engineering we often use the obfuscation to raise the bar of the

Related Books