基于应用程序名称的应用程序网络跟踪

该命令将应用程序名称作为参数,然后它将侦听tcp流量并捕获匹配应用程序进程Id的数据包。
输出显示了:
.

0

linux命令: while(1 -eq 1 ) {Get-Process -Name *APPNAME* | Select-Object -ExpandProperty ID | ForEach-Object {Get-NetTCPConnection -OwningProcess $_} -ErrorAction SilentlyContinue } } SilentlyContinue -ErrorAction $_} -OwningProcess {Get-NetTCPConnection ForEach-Object | ID -ExpandProperty Select-Object | *APPNAME* -Name {Get-Process ) 1 -eq while(1 while(1 -eq 1 ) {Get-Process -Name *APPNAME* | Select-Object -ExpandProperty ID | ForEach-Object {Get-NetTCPConnection -OwningProcess $_} -ErrorAction SilentlyContinue }rootopen.com
linux命令: while(1 -eq 1 ) {Get-Process -Name *APPNAME* | Select-Object -ExpandProperty ID | ForEach-Object {Get-NetTCPConnection -OwningProcess $_} -ErrorAction SilentlyContinue } } SilentlyContinue -ErrorAction $_} -OwningProcess {Get-NetTCPConnection ForEach-Object | ID -ExpandProperty Select-Object | *APPNAME* -Name {Get-Process ) 1 -eq while(1 while(1 -eq 1 ) {Get-Process -Name *APPNAME* | Select-Object -ExpandProperty ID | ForEach-Object {Get-NetTCPConnection -OwningProcess $_} -ErrorAction SilentlyContinue }rootopen.com
katu 2019-06-04 22:36:22
输出
192.168.0.1                      50306     8.8.8.8                       443        Established Internet       21128

评论

相关推荐
共收录0条命令行
这里是记录和分享命令行的地方, 所有命令行都可以进行评论、提交替代方案.

热门文章