USTC-TFC2016 icon indicating copy to clipboard operation
USTC-TFC2016 copied to clipboard

关于运行脚本 1_Pcap2Session.ps1 得问题

Open hjw-sut opened this issue 4 years ago • 4 comments

您好! 运行您的项目 USTC-TK2016 时,进行到 Execution 下的 *

Open the PowerShell and run 1_Pcap2Session.ps1 (take a few minutes)

  • 时 windows power shell 提示 :

Error: No files matched '2_Session\AllLayers' No files to process Error: No files matched '2_Session\L7' No files to process 请问是什么原因? 我尝试在 2_Session 下新建 AllLayers 与 L7 文件夹,但是依然报错 由于我对脚本文件不太熟悉,我调试很长时间无果,才来请教您,期待您的解答!

hjw-sut avatar Mar 18 '20 08:03 hjw-sut

Hi @hjw-sut Sorry for late response. I will reply you ASAP.

yungshenglu avatar Mar 23 '20 02:03 yungshenglu

您好,我运行这个 1_Pcap2Session.ps1脚本文件的时候遇到了和上一个提问者一样的问题,显示找不到AllLayers和L7文件,手动新建后依然显示找不到文件,非常期待您的答复,万分感谢!

meilin712 avatar Sep 27 '20 03:09 meilin712

您好,我也是运行1_Pcap2Session.ps1脚本文件的时候遇到 `Get-ChildItem: /new/USTC-TK2016/1_Pcap2Session.ps1:65 Line | 65 | Get-ChildItem ./2_Session/AllLayers/$($f.BaseName)-ALL | … | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | Cannot find path '/new/USTC-TK2016/2_Session/AllLayers/Benign-ALL' because it does not exist.

Get-ChildItem: /new/USTC-TK2016/1_Pcap2Session.ps1:67 Line | 67 | Get-ChildItem ./2_Session/L7/$($f.BaseName)-L7 | ?{$_.Len … | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | Cannot find path '/new/USTC-TK2016/2_Session/L7/Benign-L7' because it does not exist.

Get-ChildItem: /new/USTC-TK2016/1_Pcap2Session.ps1:65 Line | 65 | Get-ChildItem ./2_Session/AllLayers/$($f.BaseName)-ALL | … | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | Cannot find path '/new/USTC-TK2016/2_Session/AllLayers/Malware-ALL' because it does not exist.

Get-ChildItem: /new/USTC-TK2016/1_Pcap2Session.ps1:67 Line | 67 | Get-ChildItem ./2_Session/L7/$($f.BaseName)-L7 | ?{$_.Len … | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | Cannot find path '/new/USTC-TK2016/2_Session/L7/Malware-L7' because it does not exist.

Get-ChildItem: /new/USTC-TK2016/1_Pcap2Session.ps1:65 Line | 65 | Get-ChildItem ./2_Session/AllLayers/$($f.BaseName)-ALL | … | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | Cannot find path '/new/USTC-TK2016/2_Session/AllLayers/USTC-TFC2016-ALL' because it does not exist.

Get-ChildItem: /new/USTC-TK2016/1_Pcap2Session.ps1:67 Line | 67 | Get-ChildItem ./2_Session/L7/$($f.BaseName)-L7 | ?{$_.Len … | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | Cannot find path '/new/USTC-TK2016/2_Session/L7/USTC-TFC2016-L7' because it does not exist. 当我自己创建上述文件夹与其子文件后,这些问题都消失了 只剩下提示[INFO] Spliting the PCAP file into each session Input file does not exist Usage: SplitCap [OPTIONS]... ` 因为刚刚接触这方面,所以有很多不懂的地方,望前辈能指教一二。

sakurachiyuki avatar Dec 18 '20 06:12 sakurachiyuki

您好,请问这个问题解决了吗,我也遇到了这个问题,还望前辈指点一二

cxlovewl avatar Feb 04 '22 08:02 cxlovewl