在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):eldadru/ksniff开源软件地址(OpenSource Url):https://github.com/eldadru/ksniff开源编程语言(OpenSource Language):Go 94.9%开源软件介绍(OpenSource Introduction):ksniffA kubectl plugin that utilize tcpdump and Wireshark to start a remote capture on any pod in your Kubernetes cluster. You get the full power of Wireshark with minimal impact on your running pods. IntroWhen working with micro-services, many times it's very helpful to get a capture of the network activity between your micro-service and it's dependencies. ksniff use kubectl to upload a statically compiled tcpdump binary to your pod and redirecting it's output to your local Wireshark for smooth network debugging experience. DemoProduction ReadinessKsniff isn't production ready yet, running ksniff for production workloads isn't recommended at this point. InstallationInstallation via krew (https://github.com/GoogleContainerTools/krew)
For manual installation, download the latest release package, unzip it and use the attached makefile:
BuildRequirements:
Compiling:
To compile a static tcpdump binary:
Usage
Air gapped environmentsUse
Non-Privileged and Scratch PodsTo reduce attack surface and have small and lean containers, many production-ready containers runs as non-privileged user or even as a scratch container. To support those containers as well, ksniff now ships with the "-p" (privileged) mode. When executed with the -p flag, ksniff will create a new pod on the remote kubernetes cluster that will have access to the node docker daemon. ksniff will than use that pod to execute a container attached to the target container network namespace and perform the actual network capture. Piping output to stdoutBy default ksniff will attempt to start a local instance of the Wireshark GUI. You can integrate with other tools
using the Example using
ContributionMore than welcome! please don't hesitate to open bugs, questions, pull requests Future Work
Known IssuesWireshark and TShark cannot read pcapWireshark may show
This issue happens when using an old version of Wireshark or TShark to read the pcap created by ksniff. Upgrade Wireshark or TShark to resolve this issue. Ubuntu LTS versions may have this problem with stock package versions but using the Wireshark PPA will help. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论