我试着执行以下几行-
sh """
#!/bin/bash
cd ${WORKSPACE}
cat << EOF > build.sh
#!/bin/bash
mkdir wsbuildlinux
cd wsbuildlinux
cmake3 ../../wiresharkbuild_linux
make
EOF
chmod 755 build.sh
# run container and build wire
我正在写一个linux bash脚本,我想在eth0上捕获一段时间,并将其保存到某个文件中。另外,我希望在捕获结束后,wireshark应该关闭,脚本中的其余命令应该按顺序执行。我如何做到这一点。下面是我正在尝试的一个非常简单的示例。但它并没有从wireshark的主脚本中走出来。请帮助我实现这一点。
#!/bin/bash
xterm -e wireshark -i eth0 -a duration:20 -k > ./capture1
sleep 10
echo " came back to main window "
xterm killall -9 wir
我需要安装Wireshark,但是当我输入sudo make命令时,它似乎有一些问题。我得到的是:
dell@ubuntu:~/wireshark$ make
LANG=C /usr/bin/perl ./make-version.pl .
Version configuration file version.conf not found. Using defaults.
This is not a SVN build.
svnversion.h is up-to-date.
make all-recursive
make[1]: Entering directory `/home/del
我在Centos7上安装了Wireshark。但是我找不到配置文件。默认情况下,它应该在"/usr/local/share/Wireshark“中,但它并不存在。
~[root@localhost share]# tshark -v
TShark 1.10.14 (Git Rev Unknown from unknown)
Copyright 1998-2015 Gerald Combs <gerald@wireshark.org> and contributors.
This is free software; see the source for copying co
在启动wireshark时,我收到以下错误:
sudo wireshark
This application failed to start because it could not find or load the Qt platform plugin "xcb".
Available platform plugins are: linuxfb, minimal, offscreen, xcb.
Reinstalling the application may fix the problem.
Aborted (core dumped)
安装xcb之后,我仍然会得到相同
目前正在学习使用Wireshark。
当我捕获并单击其中一行时,我会在“数据包详细信息”窗格中看到以下详细信息:
Frame
Linux Cooked Capture
Internet Protocol Version 4
User Datagram Protocol
当我单击“框架”时,我会看到以下元素的列表:
Interface Id: 0
Encapsulation Type: Linux cooked-mode-capture
Arrival Time: Oct 25, 2018 15:53:08.775646000 IST
[Time shift for this packet: 0