Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
hjw-sut opened this issue Mar 18, 2020 · 4 comments
Open

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

hjw-sut opened this issue Mar 18, 2020 · 4 comments
Assignees
Labels
help wanted Extra attention is needed question Further information is requested

Comments

@hjw-sut
Copy link

hjw-sut commented Mar 18, 2020

您好!
运行您的项目 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 文件夹,但是依然报错
由于我对脚本文件不太熟悉,我调试很长时间无果,才来请教您,期待您的解答!

@yungshenglu yungshenglu self-assigned this Mar 23, 2020
@yungshenglu yungshenglu added help wanted Extra attention is needed question Further information is requested labels Mar 23, 2020
@yungshenglu
Copy link
Owner

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

@meilin712
Copy link

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

@sakurachiyuki
Copy link

您好,我也是运行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]...
`
因为刚刚接触这方面,所以有很多不懂的地方,望前辈能指教一二。

@cxlovewl
Copy link

cxlovewl commented Feb 4, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

5 participants