8wDlpd.png
8wDFp9.png
8wDEOx.png
8wDMfH.png
8wDKte.png

CICFlowmeter tcpdump 权限被拒绝

Porcupine Andrew 2月前

24 0

我正在尝试从这个 CICFlowmeter 安装 TCPDUMP_and_CICFlowMeter,我的服务器是 Ubuntu,我的步骤是root@testbed-ml-node:~# git clone https://github.com/iPAS/TCPDUMP_and_CICFlowMeter.gitroot@te...

安装 TCPDUMP_and_CICFlowMeter CICFlowmeter

我的服务器是 Ubuntu,我的步骤是

root@testbed-ml-node:~# git clone https://github.com/iPAS/TCPDUMP_and_CICFlowMeter.git
root@testbed-ml-node:~# cd TCPDUMP_and_CICFlowMeter/
root@testbed-ml-node:~/TCPDUMP_and_CICFlowMeter# nano try_me.sh

我编辑文件 try_me.sh

捕获接口_pcap.sh wlan0 pcap

然后,为了修复权限被拒绝的问题,请将以下行添加到文件 /etc/apparmor.d/usr.sbin.tcpdump 中:

/usr/sbin/tcpdump {
  #...
  # for -z
  /**/* ixr,      
  # <-- add me!
  #...
}

另外,修复 java.lang.UnsatisfiedLinkError 问题

sudo apt install libpcap-dev

然后我运行脚本

root@testbed-ml-node:~/TCPDUMP_and_CICFlowMeter# ./try_me.sh 

我收到错误

root@testbed-ml-node:~/TCPDUMP_and_CICFlowMeter# sudo ./try_me.sh
tcpdump: listening on enp1s0f0, link-type EN10MB (Ethernet), snapshot length 262144 bytes
tcpdump: pcap/2024-08-01-19:46:04.pcap: Permission denied
compress_savefile: execlp(/root/TCPDUMP_and_CICFlowMeter/convert_pcap_csv.sh, pcap/2024-08-01-19:45:04.pcap) failed: Permission denied
=== Capturer is being cancled ===
=== Wait the converter finished for 3 seconds...

=== Convert left PCAP files if any
=== pcap/2024-08-01-19:45:04.pcap is left
>>> Script dir: /root/TCPDUMP_and_CICFlowMeter
+++ CICFlowMeter PCAP-to-CSV Converter +++
    Input file: pcap/2024-08-01-19:45:04.pcap
    Output dir: /root/TCPDUMP_and_CICFlowMeter/csv
run at:   /root/TCPDUMP_and_CICFlowMeter
app at:   /root/TCPDUMP_and_CICFlowMeter/CICFlowMeters/CICFlowMeter-4.0
SAVED:    /root/TCPDUMP_and_CICFlowMeter
APP_HOME: /root/TCPDUMP_and_CICFlowMeter/CICFlowMeters/CICFlowMeter-4.0
CLASSPATH: /root/TCPDUMP_and_CICFlowMeter/CICFlowMeters/CICFlowMeter-4.0/lib/CICFlowMeter-4.0.jar:/root/TCPDUMP_and_CICFlowMeter/CICFlowMeters/CICFlowMeter-4.0/lib/animal-sniffer-annotations-1.14.jar:/root/TCPDUMP_and_CICFlowMeter/CICFlowMeters/CICFlowMeter-4.0/lib/checker-compat-qual-2.0.0.jar:/root/TCPDUMP_and_CICFlowMeter/CICFlowMeters/CICFlowMeter-4.0/lib/commons-io-2.5.jar:/root/TCPDUMP_and_CICFlowMeter/CICFlowMeters/CICFlowMeter-4.0/lib/commons-lang3-3.6.jar:/root/TCPDUMP_and_CICFlowMeter/CICFlowMeters/CICFlowMeter-4.0/lib/commons-math3-3.5.jar:/root/TCPDUMP_and_CICFlowMeter/CICFlowMeters/CICFlowMeter-4.0/lib/error_prone_annotations-2.1.3.jar:/root/TCPDUMP_and_CICFlowMeter/CICFlowMeters/CICFlowMeter-4.0/lib/guava-23.6-jre.jar:/root/TCPDUMP_and_CICFlowMeter/CICFlowMeters/CICFlowMeter-4.0/lib/hamcrest-core-1.3.jar:/root/TCPDUMP_and_CICFlowMeter/CICFlowMeters/CICFlowMeter-4.0/lib/j2objc-annotations-1.1.jar:/root/TCPDUMP_and_CICFlowMeter/CICFlowMeters/CICFlowMeter-4.0/lib/java-cup-0.11a.jar:/root/TCPDUMP_and_CICFlowMeter/CICFlowMeters/CICFlowMeter-4.0/lib/jfreechart-1.5.0.jar:/root/TCPDUMP_and_CICFlowMeter/CICFlowMeters/CICFlowMeter-4.0/lib/jnetpcap-1.4.r1425-1g.jar:/root/TCPDUMP_and_CICFlowMeter/CICFlowMeters/CICFlowMeter-4.0/lib/jsr305-1.3.9.jar:/root/TCPDUMP_and_CICFlowMeter/CICFlowMeters/CICFlowMeter-4.0/lib/junit-4.12.jar:/root/TCPDUMP_and_CICFlowMeter/CICFlowMeters/CICFlowMeter-4.0/lib/log4j-1.2.17.jar:/root/TCPDUMP_and_CICFlowMeter/CICFlowMeters/CICFlowMeter-4.0/lib/log4j-api-2.11.0.jar:/root/TCPDUMP_and_CICFlowMeter/CICFlowMeters/CICFlowMeter-4.0/lib/log4j-core-2.11.0.jar:/root/TCPDUMP_and_CICFlowMeter/CICFlowMeters/CICFlowMeter-4.0/lib/slf4j-api-1.7.25.jar:/root/TCPDUMP_and_CICFlowMeter/CICFlowMeters/CICFlowMeter-4.0/lib/slf4j-log4j12-1.7.25.jar:/root/TCPDUMP_and_CICFlowMeter/CICFlowMeters/CICFlowMeter-4.0/lib/tika-core-1.17.jar:/root/TCPDUMP_and_CICFlowMeter/CICFlowMeters/CICFlowMeter-4.0/lib/weka-stable-3.6.14.jar
cic.cs.unb.ca.ifm.CICFlowMeter
cic.cs.unb.ca.ifm.CICFlowMeter CICFlowMeter-V3 found: 1 Files.
cic.cs.unb.ca.jnetpcap.PacketReader Error while opening file for capture: truncated dump file; tried to read 4 file header bytes, only got 0
+++ Remove pcap/2024-08-01-19:45:04.pcap
+++ Finish the conversion

=== Clean stuff up

root@testbed-ml-node:~/TCPDUMP_and_CICFlowMeter# client_loop: send disconnect: Connection reset

为什么我仍然被拒绝许可,非常感谢您的建议提前致谢

帖子版权声明 1、本帖标题:CICFlowmeter tcpdump 权限被拒绝
    本站网址:http://xjnalaquan.com/
2、本网站的资源部分来源于网络,如有侵权,请联系站长进行删除处理。
3、会员发帖仅代表会员个人观点,并不代表本站赞同其观点和对其真实性负责。
4、本站一律禁止以任何方式发布或转载任何违法的相关信息,访客发现请向站长举报
5、站长邮箱:yeweds@126.com 除非注明,本帖由Porcupine Andrew在本站《ubuntu》版块原创发布, 转载请注明出处!
最新回复 (0)
  • 我在 Ubuntu 上编译项目时遇到问题。这是我的项目:https://github.com/23vbq/tv-managing-system/它包含带有 Makefile 的目录端点。我在 Arch 上开发它,

    我在 Ubuntu 上编译我的项目时遇到了问题。

    这是我的项目: https://github.com/23vbq/tv-managing-system/

    它包含 endpoint 带有 Makefile 的目录。

    我在 Arch 上开发它,一切正常。为了测试,我安装了新的、干净的 VM,其中包含 Arch 和两个构建所需的包( base-devel [用于 Make]、 libx11 [用于 X11])。一切都构建良好(没有任何错误、警告等)。

    尝试在 Ubuntu 上测试它时 endpoint 失败。我已经安装了 libx11-dev 包,但它仍然说很多 X11 函数未定义。这是 make debug 命令的结果: https://pastebin.com/6AQNz3KN

    错误来自该 c++ 文件: https://github.com/23vbq/tv-managing-system/blob/main/endpoint/src/windowmanager.cpp

    我检查了 Arch 上链接了哪些库:

    Ubuntu 包含所有这些库。

    我还测试了 X11 的构建示例,它运行良好。我不知道为什么我的项目在 Ubuntu 上构建失败。

返回
作者最近主题: