EvilAPK-300
The cracked program jscrack the main interface contains two controls:
1) URL input box
2) Enter "button"
Ask yourself to construct a Web page, and the URL of the page to enter the URL input box control, and then, click the "Enter" button, Jscrack will open webview Browse your page, if Jscrack can pop up a toast, it proves that has successfully cracked, The content of the toast is also the flag of this topic.
To tell the truth, the subject has learned a lot of knowledge, some of it is forced to learn.
In the past, andriod topics are mostly inverse algorithms, and occasionally there are several native functions, which are also test algorithms. This topic needs to be built Andriod simulator (of course more complete is to build a complete andriod developer IDE).
At first I wanted to be lazy and thought I could just find a Windows Android emulator, and later discovered that these were actually x86 platform simulators. The simulator that really supports arm doesn't seem to work.
Then think of using QEMU's open-source simulation system, he can simulate the arm command system on the x86 platform, on this platform can install Arm-linux.
Later found that, in fact, not so troublesome, the Android developer platform integrates a simulator, support x86 atom, ARM, MIPS three kinds of instruction system. In fact, the bottom of the simulator is the use of QEMU.
Install android emulator:
I have experienced a painful process, and this process is brought about by the great GFW. Really do not understand, since so hate Google, why also allow Google's products to become the most people in the hands of the plaything!!!
1, the simplest method, directly installs Andriod studio.
Http://developer.android.com/sdk/index.html
2. Customizing the method, download Andriod SDK tools.
Http://developer.android.com/sdk/index.html#Other
There are two main tools in this tool, the graphical Tools SDK Manager and AVD Manager. The former is used to download various versions of the SKD as well as various platform-tools waits. The latter is used to generate and manage andriod virtual machines corresponding to an SDK version and API level.
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/58/CC/wKioL1S9BVyAH78yAANHsOObMSA551.jpg "style=" width : 500px;height:352px; "title=" 1.png "width=" "height=" 352 "border=" 0 "hspace=" 0 "vspace=" 0 "alt=" Wkiol1s9bvyah78yaanhsoobmsa551.jpg "/>
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/58/CC/wKioL1S9BVyDYwRfAAH_kjNKmKk752.jpg "style=" width : 500px;height:357px; "title=" 2.png "width=" "height=" 357 "border=" 0 "hspace=" 0 "vspace=" 0 "alt=" Wkiol1s9bvydywrfaah_kjnkmkk752.jpg "/>
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/58/CF/wKiom1S9BIqA_CyNAAIgVeKFYuE300.jpg "style=" width : 400px;height:541px; "title=" 3.png "width=" "height=" 541 "border=" 0 "hspace=" 0 "vspace=" 0 "alt=" Wkiom1s9biqa_ Cynaaigvekfyue300.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/58/CC/wKioL1S9BV2hDJJuAADuyDOooRg270.jpg "style=" float: none; "title=" 4.png "alt=" Wkiol1s9bv2hdjjuaaduydooorg270.jpg "/>
Of course, the simple, the pit dad is andriod and Google have been gfw, hanging agent that speed or to have patience. Until later found that the original Android developer in the domestic mirror. In the end is not professional development andriod, here wasted a lot of time.
http://wear.techbrood.com/
After doing a lot of preparatory work, go back to the topic.
This topic in fact I do not, directly refer to the tips of others--webview loopholes.
Work hard to learn Google again, found this vulnerability in 2011 there is no organization to send a pdf,2012 years of the use of Java reflection to create a class instance of the POC, to 2013 years before the release of a lethal POC, causing widespread concern.
The loophole is not specific to say. Dark Cloud Detection URL:
Http://drops.wooyun.org/webview.html
This topic has a Smokeybear JS to Java object, which can be used to access Java's built-in objects using this object in the JS script of the Web page.
The requirements of the topic find toast is very interesting, Baidu a bit: Toast is andriod inside provides a similar to the MessageBox, features are displayed after a period of time will automatically close.
How to find the function that shows toast in Java code, this I do not want to understand, but the other person's hint is the Smokeybear.showtoast () function.
Set up a.html on the server and enter the contents:
<script type= "Text/javascript" >
Smokeybear.showtoast ();
</script>
First, import the 3.apk into Android emulator:
Copy 3.apk to Android-sdk\platform-tools directory, cmd to this directory, execute adb install 3.apk
Locate the Jscrack app in the simulator and open it. Enter http://ip/a.html and click Enter. Popup toast.
The last question is how to find the corresponding code from the decompile so. This gives a clearer understanding of the entire WebView invocation context. Because the program is compiled with 3 native functions, the corresponding export function is not found in so. I am a andriod rookie, I hope that Daniel can show how static anti-compilation.
This article is from the "Everything is a Dog" blog, please be sure to keep this source http://cugou.blog.51cto.com/9637775/1605927
Ali ctf-2014 Android Third problem--andriod simulator installation