手表App网络抓包之设置wifi代理

第一步:下载工具,编译成apk,使用adb工具安装到手表

https://github.com/kuleyang/AndroidProxySetter

第二步:在终端上执行以下命令并带上相应的参数:

adb shell am start -n tk.elevenk.proxysetter/.MainActivity

参数:

 -e host <host>                       # The host ip or address for the proxy
 -e port <port>                        # The port for the proxy
 -e ssid <ssid>                       # The SSID of the wifi network to set proxy on  (optional, will apply on the first one if empty)                              
 -e key <shared key>             # The password/key for the wifi network
 -e bypass <bypass string>    # The bypass string to use for proxy settings
 -e reset-wifi <boolean>         # Whether or not to reset the wifi settings. This flag                                      will tell the tool to forget all connected networks,make a new network config with the SSID and key given, and then attempt to connect to the wifi network. If no key is given,the wifi network is  assumed to be unprotected/open
 -e clear <boolean>              # A flag that will clear the proxy settings for the given SSID                                  

host port ssid 三个参数是必须的,例如host为202.192.18.33,port为8080,ssid 为EEBBK-FREE

则命令为:adb shell am start -n tk.elevenk.proxysetter/.MainActivity -e host 202.192.18.33 -e port 8080 -e ssid EEBBK-FREE

第三步:使用抓包工具进行抓包,例如mac上的charles,windows 上的Fiddler

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • Spring Cloud为开发人员提供了快速构建分布式系统中一些常见模式的工具(例如配置管理,服务发现,断路器,智...
    卡卡罗2017阅读 134,993评论 19 139
  • 环境规划 手里的环境是四台安装了CentOS 7的主机。环境规划如下: Kubernetes Master 节点:...
    负二贷阅读 3,317评论 6 26
  • 名词延伸 通俗的说,域名就相当于一个家庭的门牌号码,别人通过这个号码可以很容易的找到你。如果把IP地址比作一间房子...
    杨大虾阅读 20,646评论 2 56
  • 意志力本质 是一种能量。过度损耗,短时间不能恢复。(审问犯人)(卖东西) 是一种心里机制。可以通过补充葡萄糖增强。...
    大熊猫骑士阅读 263评论 0 0
  • 焦点讲师一期班洛阳刘琳坚持分享第六十七天 早就答应了儿子去方特水上世界玩,这次正好趁着讲师班儿上课的机会,...
    小溪与大海阅读 307评论 0 0