emanuele-f/PCAPdroid

Javaemanuele-f.github.io/PCAPdroid
Android

No-root network monitor, firewall and PCAP dumper for Android

pcapcapture-trafficandroidno-roottraffic-monitorpcap-filessniffernetwork-analysissniffingdecryptionfirewallwireshark
Star 增长趋势
Star
4.7k
Forks
539
周增长
+45
Issues
42
2k4k
2020年1月2022年3月2024年6月2026年9月
制品库Maven
README

PCAPdroid

PCAPdroid is a privacy-friendly open source app which can track, analyze and block the connections made by the other apps on the device. It can also export a PCAP dump of the traffic, inspect HTTP requests, decrypt TLS traffic and much more.

PCAPdroid simulates a VPN in order to capture the network traffic without root. It does not use a remote VPN server, instead data is processed locally on the device.

Main features:

  • Log and analyze the connections made by user and system apps
  • Get a summary of how much data each app sent and received
  • Low battery usage for continuous, all-day capture
  • Extract hosts and IP addresses from DNS, TLS and HTTP
  • Record the traffic to PCAP files with additional app metadata
  • Send traffic via PCAP-over-IP for real-time analysis (e.g. on Wireshark)
  • Decrypt the HTTPS/TLS traffic, extract the URLs and save the SSLKEYLOGFILE
  • Inspect the HTTP requests/replies and export them to HAR
  • Identify the country and ASN of the remote server via offline DB lookups
  • On rooted devices, capture the traffic while other VPN apps are running

Paid features:

  • Firewall: create rules to block individual apps, domains and IP addresses
  • Malware detection: detect malicious connections by using third-party blacklists
  • PCAPng format: makes it easier to export and analyze decrypted traffic

If you plan to use PCAPdroid to perform packet analysis, check out the specific section of the manual.

Get it on F-Droid Get it on Google Play

You can test the latest features before the official release by adding the Beta repository to the F-Droid app.

User Guide

Check out the quick start instructions or the full User Guide.

Sponsors

The PCAPdroid project is sponsored by AVEQ GmbH.

If you want to sponsor this project drop me an email.

Community

You can help the PCAPdroid project in many ways:

Translation status
  • Discuss new features
  • Improve the app theme and layout
  • Star the project on Github and on Google Play
  • Of course provide code pull requests!

Join the international PCAPdroid community on Telegram or on Matrix.

Integrating into your APP

Some features of PCAPdroid can be integrated into a third-party app to provide packet capture capabilities.

  • For rooted devices, the pcapd daemon can be directly integrated into your APK to capture network packets.
  • For all the devices, PCAPdroid exposes an API to control the packet capture and send the captured packets via UDP to your app. This requires to install PCAPdroid along with your app.

Open Source

PCAPdroid is powered by open source technologies.

  • nDPI: deep packet inspection library, provides the connections metadata
  • mitmproxy: a local proxy for the TLS decryption
  • zdtun: minimal TCP/IP stack for the non-root capture

For the complete list of third party libraries check out the "About" page in the app.

Building

  1. On Windows, install gitforwindows
  2. Clone this repo
  3. Inside the repo dir, run git submodule update --init. The submodules directory should get populated.
  4. Open the project in Android Studio, install the appropriate SDK and the NDK
  5. Build the app

Note: If you get "No valid CMake executable was found", be sure to install the CMake version used by PCAPdroid (currently 3.22.1) from the SDK manager

相关仓库
GyulyVGC/sniffnet

Comfortably monitor your network traffic 🕵️‍♂️

Rustcrates.ioappApache License 2.0network-analysisnetworking
sniffnet.app
41.1k2k
secdev/scapy

Scapy: the Python-based interactive packet manipulation program & library.

PythonPyPIlibraryGNU General Public License v2.0scapypython
scapy.net
12.5k2.2k
kubeshark/kubeshark

eBPF-powered network observability for Kubernetes. Indexes L4/L7 traffic with full K8s context, decrypts TLS without keys. Queryable by AI agents via MCP and humans via dashboard.

GoGo ModulesApache License 2.0kubernetesgolang
kubeshark.com
12.1k547
wader/fq

fq - jq for binary formats. Tool, language and decoders for working with binary formats.

GoGo ModulescliOtherjqbinary
wader.github.io/fq/
10.6k253
gcla/termshark

A terminal UI for tshark, inspired by Wireshark

GoGo ModulescliMIT Licensetsharkwireshark
10k438
zeek/zeek

Zeek is a powerful network analysis framework that is much different from the typical IDS you may know.

C++Otherbronetwork-monitoring
zeek.org
8k1.4k
arkime/arkime

Arkime is an open source, large scale, full packet capturing, indexing, and database system.

CApache License 2.0network-monitoringpcap
arkime.com
7.5k1.2k
bee-san/pyWhat

🐸 Identify anything. pyWhat easily lets you identify emails, IP addresses, and more. Feed it a .pcap file or some text and it'll tell you what it is! 🧙‍♀️

PythonPyPIcliMIT Licensecybersecurity
7.3k391
pavel-odintsov/fastnetmon

Very fast DDoS sensor with sFlow/Netflow/IPFIX/SPAN support

C++GNU General Public License v2.0fastnetmonddos
3.7k589
odedshimon/BruteShark

Network Analysis Tool

C#appGNU General Public License v3.0hackingpcap-files
3.4k356
the-tcpdump-group/tcpdump

the TCPdump network dissector

CcliOtherpcappcapng
tcpdump.org
3.2k934
the-tcpdump-group/libpcap

the LIBpcap interface to various kernel packet capture mechanism

ClibraryOtherpcappcapng
tcpdump.org
3.2k951