简体   繁体   English

拦截来自Android应用的流量

[英]Intercept traffic from android app

I need to intercept requests from the mobile application to take advantage of its internal api. 我需要拦截来自移动应用程序的请求以利用其内部api。 In the application there is a chat, I need to receive the information that the server periodically sends to the application. 在应用程序中有一个聊天室,我需要接收服务器定期发送给应用程序的信息。 For this, I installed Genymotion with the Xposed + module to bypass SSLPinning and Fiddler as a proxy (tried also Charles). 为此,我将Genymotion与Xposed +模块一起安装,以绕过SSLPinning和Fiddler作为代理(也尝试使用Charles)。 After that I see some of the traffic from the application (long-polling requests), but the events I need are not displayed, although the application still receives them and displays them. 之后,我看到了来自应用程序的一些流量(长轮询请求),但我需要的事件没有显示,尽管应用程序仍会接收并显示它们。

Can I somehow intercept absolutely all traffic from the application and what should I do to do this? 我能以某种方式截取来自应用程序的所有流量,该怎么办? Thank you in advance) 先感谢您)

  1. On Fiddler side you have to enable in the settings Allow remote computers to connect . 在Fiddler端,您必须启用“ 允许远程计算机连接 ”设置。

  2. You also need the IP address of your computer in your home network, eg 192.168.0.13 您还需要家庭网络中计算机的IP地址,例如192.168.0.13

Now start the virtual device and configure the proxy (taken from Genymotion FAQ ): 现在启动虚拟设备并配置代理(摘自Genymotion FAQ ):

How do I configure proxy settings in my virtual device? 如何在虚拟设备中配置代理设置? In your virtual device: 在您的虚拟设备中:

  1. Click Menu > System settings. 单击菜单>系统设置。
  2. In Wireless & Networks, select Wi-Fi. 在“无线和网络”中,选择“ Wi-Fi”。
  3. Click WiredSSID and hold it down for two seconds. 单击WiredSSID并按住两秒钟。
  4. Click Modify Network. 单击修改网络。
  5. Check Show advanced options. 选中显示高级选项。
  6. In Proxy settings, select Manual. 在代理设置中,选择手动。
  7. Enter the proxy settings ( the noted IP address of step 2 of your PC and port 8888 ) 输入代理设置( PC步骤2的IP地址和端口8888
  8. Click Save. 单击保存。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM