Android Simulator Bluestacks+tcpdump app Grab Pack analysis

Source: Internet
Author: User

Recently to engage in the Android app grab packet analysis, found some methods on the Internet, combined with a self-condition or Android simulator +tcpdump most convenient.

To prepare the tool:

1. Microsoft. NET Framework 2.0 SP2
2, Bluestack 0.7.5.2700
3. Bluestack 0.7.5.2700 Root Image
4. The ADB program for commissioning
5. Analysis tools such as Wireshark
6. App to grab Bag

First of all the simulator selected Bluestacks, want to use tcpdump must root, so also find a bluestacks root image to overwrite the original image, I chose here bluestack 0.7.5.2700 then download the corresponding version of the root image, you can refer to this site http://www.ptbus.com/view/41515/

Where Bluestack 0.7.5.2700 requires the Microsoft. NET Framework 2.0 SP2, install the Microsoft. NET Framework 2.0 SP2 first, and then install Bluestack 0.7.5.2700, the default next, then download the corresponding version bluestacks root image, unzip to get a root.fs,

And then find the bluestacks in the installation path to replace the ROOT.FS, the quick Way is to search the hard disk,

Then restart the bluestacks effect such as:

Then install the app you want to grab the package, and the APK file is installed by default with Bluestacks:

Once the installation is complete, you can find the app you installed in my apps in the simulator,

Next prepare a debugging ADB program, can be found in the Android SDK, the path is Sdk/platform-tools/adb.exe, ready to complete the following to start the capture package.

Run cmd, switch to the directory where the ADB program is located, and then execute the following command to start the packet capture:

ADB shellsu/system/xbin/tcpdump-p-vv-s 0-w/sdcard/capture.pcap

Then you can run your app in the simulator to crawl the packet, the effect


In the process of grasping the package you can use CTRL + C to interrupt the grab packet, after the capture package is finished using the following command will grab the packet results Capture.pcap sent to the Local:

ADB pull/sdcard/capture.pcap d:/


Where d:/is the location of the file save, and finally with tools such as Wireshark to the captured packet analysis can be.


Reprint Please specify: http://blog.csdn.net/wangqiuyun/article/details/39545623

Android Simulator Bluestacks+tcpdump app Grab Pack analysis

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.