admin管理员组

文章数量:1487745

eCapture抓包框架

起来!别让自己退化成了一条下贱的爬虫。——艾米莉·勃朗特《呼啸山庄》

无CA证书HTTPS/TLS数据抓包 eBPF技术驱动,支持Linux/Android(x86_64/Aarch64)

github:

官方文档:

旁观者 - eBPF技术强力驱动,无需CA证书即可捕获HTTPS/TLS明文数据包。 | eCapture

eCapture旁观者是什么?#

eBPF HOOK uprobe实现的各种用户态进程的数据捕获,无需改动原程序。 也可以导出为pcap-NG格式的数据包,使用wireshark打开。 支持 Linux/Android 两种操作系统,支持x86_64、aarch64两种CPU架构。

  • SSL/HTTPS数据导出功能,针对HTTPS的数据包抓取,不需要导入CA证书。
  • bash的命令捕获,HIDS的bash命令监控解决方案。
  • mysql query等数据库的数据库审计解决方案。

为什么选择eCapture?#

Wireshark、tcpdump等工具,只能抓到加密后的流量,无法捕获TLS的明文。eCapture只需要root权限,即可捕获明文的HTTPS通信包明文。

如何使用#

下载#

open , and choose your version.

  • Linux、Android ARM64-aarch64 CPU架构,内核版本 >= 5.5 , ecapture-v0.8.0-linux/android-arm64.tar.gz
  • Linux/Android X86_64 CPU架构,内核版本 >= 4.18 , ecapture-v0.8.0-linux/android-amd64.tar.gz
运行#
代码语言:javascript代码运行次数:0运行复制
./ecapture 
参数#
代码语言:javascript代码运行次数:0运行复制
cfc4n@vmserver:~/$ sudo ecapture -h
NAME:
    ecapture - capture text SSL content without CA cert by ebpf hook.

USAGE:
    ecapture [flags]

VERSION:
    linux_arm64:v0.8.0:5.15.0-105-generic

COMMANDS:
    bash        capture bash command
    gnutls        capture gnutls text content without CA cert for gnutls libraries.
    gotls        Capturing plaintext communication from Golang programs encrypted with TLS/HTTPS.
    help        Help about any command
    mysqld        capture sql queries from mysqld 5.6/5.7/8.0 .
    nss        capture nss/nspr encrypted text content without CA cert for nss/nspr libraries.
    postgres    capture sql queries from postgres 10+.
    tls        use to capture tls/ssl text content without CA cert. (Support openssl 1.0.x/1.1.x/3.0.x or newer).

DESCRIPTION:
    eCapture(旁观者) is a tool that can capture plaintext packets
    such as HTTPS and TLS without installing a CA certificate.
    It can also capture bash commands, which is suitable for
    security auditing scenarios, such as database auditing of mysqld, etc (disabled on Android).
    Support Linux(Android)  X86_64 4.18/aarch64 5.5 or newer.
    Repository: 
    HomePage: 

    Usage:
      ecapture tls -h
      ecapture bash -h

OPTIONS:
  -b, --btf=0        enable BTF mode.(0:auto; 1:core; 2:non-core)
  -d, --debug[=false]    enable debug logging.(coming soon)
  -h, --help[=false]    help for ecapture
      --hex[=false]    print byte strings as hex encoded strings
  -l, --logaddr=""    -l /tmp/ecapture.log or -l tcp://127.0.0.1:8080
      --mapsize=1024    eBPF map size per CPU,for events buffer. default:1024 * PAGESIZE. (KB)
  -p, --pid=0        if pid is 0 then we target all pids
  -u, --uid=0        if uid is 0 then we target all users
  -v, --version[=false]    version for ecapture
本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。 原始发表:2024-10-20,如有侵权请联系 cloudcommunity@tencent 删除框架内核数据架构解决方案

本文标签: eCapture抓包框架