Android:使用非root用户设备捕获HTTP请求 [英] Android : Capturing HTTP Requests with non-rooted android device

查看:85
本文介绍了Android:使用非root用户设备捕获HTTP请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用第三方jar的android应用程序。
当应用程序运行时,Http请求从第三方jar发送到服务器。
我需要捕获从第三方jar发送的HTTP请求。我想知道是否有一种简单的方法可以实现非root设备

I have an android application which uses a third party jar in it. Http request is sent from third party jar to server when application is running. I need to capture HTTP Request that is sent from third party jar. I am wondering if there is an easy way to implement with non-rooted device

启动:
我试过下载 proxyDroid但它需要root电话
我也尝试使用鲨鱼阅读器下载shark for root,这也需要root设备
我尝试了许多其他应用程序,它们可以捕获完整的请求但是它只需要是根设备

To start up : I tried downloading "proxyDroid" but it need rooted phone I have also tried downloading "shark for root" with "shark reader" which also need rooted device I tried many other applications which could capture the complete request but all it need is rooted device

我需要fiddler / wireshark可以为windows做些什么。一个网络数据包分析器,可以很容易地与Android应用程序集成,可以为请求对象提供所有头字段。

I need something what fiddler/wireshark can do for windows. A network packet analyzer which could be easily integrated with android application that could give request object with all header fields in it.

推荐答案

您可以安装 Charles(HTTP代理) / HTTP监视器/反向代理,使开发人员能够在您的PC或MAC上查看其计算机和Internet之间的所有HTTP和SSL / HTTPS流量。

配置步骤:


  • 让您的手机和PC或MAC在同一个局域网中

  • 启动您安装的Charles(默认代理端口为8888)

  • 设置手机的wifi配置:将代理的ip设置为PC或MAC的ip,代理端口为8888

  • 在手机中使用您的应用程序。并监控Charles的http请求。

  • Let your phone and PC or MAC in a same LAN
  • Launch Charles which you installed (default proxy port is 8888)
  • Setup your phone's wifi configuration: set the ip of delegate to your PC or MAC's ip, port of delegate to 8888
  • Lauch your app in your phone. And monitor http requests on Charles.

这篇关于Android:使用非root用户设备捕获HTTP请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆