一展身手:使用netcat和exec作为信源,logger和file作为信宿,并分别为每对信源和信宿实现一个信道:
(1)程序如下:保存为agentx.conf文件:
agentx.sources = netsource execsource
agentx.sinks = logsink filesink
agentx.channels = memorychannel1 memorychanne2
agentx.sources.netsource.type = netcat
agentx.sources.netsource.bind = 172.16.2.17
agentx.sources.netsource.port = 3000