eunomia-bpf / eunomia-bpf/bpf-developer-tutorial

[BUG] 30-sslsniff unable to capture latest firefox(NSS) packet

未关闭
#122 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug
主要语言
C
星标
4.3k
派生
602
平均合并
1 天 10 小时
30 天内合并 PR
1

描述

**Describe the bug**
When I try to capture the NSS on my pc. It doesn't work. Also the --extra-lib doesn't work
As mentioned in the documentation:
`./sslsniff --extra-lib openssl:/path/libssl.so.1.1`

**To Reproduce**
sudo ./sslsniff --extra-lib nss:/opt/firefox/libnspr4.so

**Expected behavior**
It should add additinal libraries.
**Screenshots**
```
Also I want to capture the traffic for firefox. How to achieve this?
```
pegasus@pegasus:~$ sudo lsof -p 21129 | grep -iE 'ssl|nss'
[sudo] password for pegasus:
lsof: WARNING: can't stat() fuse.portal file system /run/user/1000/doc
Output information may be incomplete.
lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1000/gvfs
Output information may be incomplete.
firefox-b 21129 pegasus mem REG 259,7 567848 32653234 /opt/firefox/libnssckbi.so
firefox-b 21129 pegasus mem REG 259,7 447160 32653231 /opt/firefox/libssl3.so
firefox-b 21129 pegasus mem REG 259,7 776816 32653277 /opt/firefox/libnss3.so
firefox-b 21129 pegasus mem REG 259,7 189080 32653243 /opt/firefox/libnssutil3.so
```

pegasus@pegasus:~/Documents/ssl-ebpf-projects/bpf-developer-tutorial/src/30-sslsniff$ sudo ./sslsniff --extra-lib nss:/opt/firefox/libnspr4.so
./sslsniff: unrecognized option '--extra-lib'
Try `sslsniff --help' or `sslsniff --usage' for more information.
```

**Desktop (please complete the following information):**
```
pegasus@pegasus:~$ cat /etc/os-release
PRETTY_NAME="Ubuntu 24.04 LTS"
NAME="Ubuntu"
VERSION_ID="24.04"
VERSION="24.04 LTS (Noble Numbat)"
VERSION_CODENAME=noble
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=noble
LOGO=ubuntu-logo
pegasus@pegasus:~$ uname -a
Linux pegasus 6.8.0-31-generic #31-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20 00:40:06 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
```

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。