Tag: 抓包

Android VpnService捕获数据包不会捕获数据包

我一直在寻找我的答案,现在几个小时,我无法弄清楚。 请帮忙。 我想要做的就是使用Android中的VpnService来抓取networking数据包,比如应用程序tPacketCapture 我开始使用谷歌的ToyVpn示例代码,并修改它,所以我不发送数据到服务器。 不过,我不确定这是否正确。 在调用establish()之前,我的configuration方法使用了binder.addAddress()的wlan ip地址。 我使用的是nexus 7,我使用“adb shell netcfg | grep wlan0”来获取地址: wlan0 UP 192.168.0.6/24 0x00001043 10:bf:48:bf:5f:9d 并将其添加到我的方法中: private void configure() throws Exception { // If the old interface has exactly the same parameters, use it! if (mInterface != null) { Log.i(TAG, "Using the previous interface"); return; } // Configure a builder while […]