mirror of
https://github.com/emanuele-f/PCAPdroid.git
synced 2026-05-08 21:12:26 +00:00
+22
-20
@@ -69,28 +69,30 @@ Applications interfacing with PCAPdroid should use the `startActivityForResult`
|
||||
As shown above, the capture settings can be specified by using intent extras. The updated list of all the supported parameters is available in
|
||||
[CaptureSettings.java](https://github.com/emanuele-f/PCAPdroid/blob/master/app/src/main/java/com/emanuelef/remote_capture/model/CaptureSettings.java).
|
||||
|
||||
| Parameter | Type | Ver | Value |
|
||||
|-------------------------|--------|-----|--------------------------------------------------------------------|
|
||||
| pcap_dump_mode | string | | none \| http_server \| udp_exporter \| pcap_file |
|
||||
| app_filter | string | | the package name of the app to capture |
|
||||
| collector_ip_address | string | | the IP address of the collector in udp_exporter mode |
|
||||
| collector_port | int | | the UDP port of the collector in udp_exporter mode |
|
||||
| http_server_port | int | | the HTTP server port in http_server mode |
|
||||
| pcap_uri | string | | the URI for the PCAP dump in pcap_file mode |
|
||||
| socks5_enabled | bool | | true to redirect the TCP connections to a SOCKS5 proxy |
|
||||
| socks5_proxy_ip_address | string | | the IP address of the SOCKS5 proxy |
|
||||
| socks5_proxy_port | int | | the TCP port of the SOCKS5 proxy |
|
||||
| ipv6_enabled | bool | | true to enable IPv6 support in non-root mode |
|
||||
| root_capture | bool | | true to capture packets in root mode, false to use the VPNService |
|
||||
| pcapdroid_trailer | bool | | true to enable the PCAPdroid trailer |
|
||||
| capture_interface | string | | @inet \| any \| ifname - network interface to use in root mode |
|
||||
| snaplen | int | 43 | max size in bytes for each individual packet in the PCAP dump |
|
||||
| max_pkts_per_flow | int | 43 | only dump the first max_pkts_per_flow packets per flow |
|
||||
| max_dump_size | int | 43 | max size in bytes for the PCAP dump |
|
||||
| tls_decryption | bool | 49 | true to enable the built-in TLS decryption |
|
||||
| block_quic | bool | 51 | true to block QUIC traffic |
|
||||
| Parameter | Type | Ver | Mode | Value |
|
||||
|-------------------------|--------|-----|------|--------------------------------------------------------------------|
|
||||
| pcap_dump_mode | string | | | none \| http_server \| udp_exporter \| pcap_file |
|
||||
| app_filter | string | | | the package name of the app to capture |
|
||||
| collector_ip_address | string | | | the IP address of the collector in udp_exporter mode |
|
||||
| collector_port | int | | | the UDP port of the collector in udp_exporter mode |
|
||||
| http_server_port | int | | | the HTTP server port in http_server mode |
|
||||
| pcap_uri | string | | | the URI for the PCAP dump in pcap_file mode |
|
||||
| socks5_enabled | bool | | vpn | true to redirect the TCP connections to a SOCKS5 proxy |
|
||||
| socks5_proxy_ip_address | string | | vpn | the IP address of the SOCKS5 proxy |
|
||||
| socks5_proxy_port | int | | vpn | the TCP port of the SOCKS5 proxy |
|
||||
| ipv6_enabled | bool | | vpn | true to enable IPv6 support |
|
||||
| root_capture | bool | | | true to capture packets in root mode, false to use the VPNService |
|
||||
| pcapdroid_trailer | bool | | | true to enable the PCAPdroid trailer |
|
||||
| capture_interface | string | | root | @inet \| any \| ifname - network interface to use in root mode |
|
||||
| snaplen | int | 43 | | max size in bytes for each individual packet in the PCAP dump |
|
||||
| max_pkts_per_flow | int | 43 | | only dump the first max_pkts_per_flow packets per flow |
|
||||
| max_dump_size | int | 43 | | max size in bytes for the PCAP dump |
|
||||
| tls_decryption | bool | 49 | vpn | true to enable the built-in TLS decryption |
|
||||
| block_quic | bool | 51 | vpn | true to block QUIC traffic |
|
||||
| auto_block_private_dns | bool | 51 | vpn | true to detect and possibly block private DNS to inspect traffic |
|
||||
|
||||
The `Ver` column indicates the minimum PCAPdroid version required to use the given parameter. The PCAPdroid version can be queried via the `get_status` action as explained below.
|
||||
The `Mode` column indicates if the option applies to any mode or only to the VPN or root mode.
|
||||
|
||||
*NOTE*: due to [file storage restrictions](https://developer.android.com/about/versions/11/privacy/storage), the `pcap_uri` must point to an app internal directory, e.g. `file:///data/user/0/com.emanuelef.remote_capture/cache/dump.pcap`.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user