Android-exploitme (iii): Secure connection

Source: Internet
Author: User

Today I'm going to test the security of the connection and whether the data can be sniffed.

The Android Simulator provides a built-in tcpdump that we use to grab the package.

1. Start the simulator with tcpdump

[Email protected]:~/desktop$ emulator-avd avd1-tcpdump 7-14.cap  # here my simulator name is AND1, and the result of the capture package is saved as 7-14.cap 
[Email protected]:~/desktop$ ll 7-14-rw-rw-r--1 santoku santoku 12288 Jul 00:36 7-14.cap

2. Don't forget to start the server

[Email protected]:~/desktop/exploitme/

3. Open the Emm-vulnerable software, enter the PIN code, (see the details in one and two)

4. Turn off the virtual machine, open 7-14.cap, and analyze with Wireshark:

Find the HTTP packet, follow TCP stream, you can see the following information, the user name and password plaintext submitted to the server

5. The solution is to turn on SSL, using the HTTPS protocol, in our example:

# server side should use HTTPSpython app.py--ssl--port 8443# client also to turn on SSL in Settings, tick "https enabled"

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.