Commit Graph

27 Commits

Author SHA1 Message Date
emanuele-f
4d0681f4d7 Revert library changes 2021-10-29 11:44:54 +02:00
emanuele-f
49117d1ecf Fix string 2021-10-29 11:16:22 +02:00
emanuele-f
1809a3d88c Update dependencies
- libpcap 1.10.1
- nDPI 4.0
- gradle, ndk, build tools
2021-10-14 19:48:16 +02:00
emanuele-f
69178a8910 Remove dependency on autotools 2021-07-28 11:19:56 +02:00
emanuele-f
bc28244e21 Rework time handling
Periodic tasks are now based on a monotonic timer. The timestamp in
the exported PCAP now corresponds to the original timestamp when using
root. Moreover, in-app first/last seen time now displays the milliseconds.

Closes #89
2021-07-06 15:54:26 +02:00
emanuele-f
51dc0dde7e Fix bogus connections with root due to fragments
Connections with random ports sometimes appeared while capturing packets
as root, in particular while exporting data via the UDP exporter. These
were actually IP fragments, whose data was misinterpreted due to the
lack of L4 headers.
2021-07-01 18:27:28 +02:00
emanuele-f
258930d110 Fix multiple issues with ICMP connections
- Fix ping to known DNS servers being blocked
- Hide port number for ICMP connections
- Fix monodirectional ICMP connnections in root mode
2021-06-30 17:31:41 +02:00
emanuele-f
50bc81e575 Show request plaintext regardless of the protocol 2021-06-03 12:27:28 +02:00
emanuele-f
e7c5227bfe Fix missing HTTP request in some cases 2021-06-02 15:34:40 +02:00
emanuele-f
c73620dc59 Rename functions 2021-06-02 12:11:18 +02:00
emanuele-f
2ff3fec947 Fix URL when an HTTP proxy is used
Also show the proxy URL in the connection details
2021-05-01 16:42:53 +02:00
emanuele-f
c2df8436ab Implement ability to capture packets as root
This requires a rooted device. It allows PCAPdroid to run with other VPN
apps.
2021-05-01 12:02:48 +02:00
emanuele-f
72949b0284 Update zdtun 2021-04-14 12:32:42 +02:00
emanuele-f
d8f153ecef Reduce MTU to avoid fragmentation 2021-04-11 17:14:02 +02:00
emanuele-f
c31c9065ec Improve TCP connections handling
- The client MSS option is now honored
- srv->cli MSS is now calculated and reported based on the IP version
- TCP window scaling is now supported
- Slow downs due to blocking TCP sends in big uploads are now fixed
2021-04-11 16:43:23 +02:00
emanuele-f
b02989598f Implement SOCKS5 proxy support
When enabled, all the TCP connections will be redirected to a SOCKS5
proxy. This also removes the need to use a customized mitmproxy to
perform the TLS decryption.
2021-04-09 10:52:25 +02:00
emanuele-f
1bb6ae3165 Fix UDP broadcast connections 2021-03-29 12:01:51 +02:00
emanuele-f
c4cc662a32 Update zdtun 2021-03-23 16:02:35 +01:00
emanuele-f
47e1d88aab Add IPv6 support
IPv6 must be manually enabled from the preferences. However, when an IPv6 gateway
is not available, the connections will fail with network unreachable.

Closes #2
2021-03-18 19:25:25 +01:00
emanuele-f
9668a1f455 Improve TCP connections handling 2021-03-11 22:42:29 +01:00
emanuele-f
5e43340002 Add ICMP support
Closes #3
2021-03-09 16:19:47 +01:00
emanuele-f
3460e27703 Unify sendCaptureStats and sendVPNStats 2021-03-01 22:11:55 +01:00
emanuele-f
0cb1a8f2ef Handle TCP reset in send 2021-02-18 01:03:55 +01:00
emanuele-f
a5c4078d7f Further reduce windows size to prevent ENOBUFS 2021-02-18 00:42:13 +01:00
emanuele-f
8ef66211d3 Integrate zdtun socket handling improvements 2021-02-11 15:13:31 +01:00
emanuele-f
6a665ba156 Update zdtun submodule
This removes the outdated distribution folder
2021-01-23 11:10:28 +01:00
emanuele-f
fad1ee8f89 Use git submodules to pull dependencies 2021-01-22 00:48:17 +01:00