smtp-source 命令如何发送多个文件,急!!!
在linux上使用smtp-source命令进行测试,关于-F参数,后面接的是邮件名称,我会发送一个文件,但是如果有多个文件就不会发送了。
举个例子:
./smtp-source -F spam_word/file1 -M -f aaa@test.com -t frank@wgssl.net 172.16.0.180
如果spam_word文件下有很多个文件,都是随机命名的,我想都发送出去,怎么发送呢?
多谢各位大虾指教!跪谢啦!
%~/smtp-source
usage: smtp-source [options] host[:port]
where standard options are:
-t to -> recipient [multiple/every message]
-f from -> sender [multiple/# of msgs]
-F msg -> text to send [multiple/# of msgs/%d is replaced with msg count]
-m msgs -> number of messages to send (default=1 or number of -f/-F options)
-O start-> start of current message count
-h host -> host to send as part of the helo
-b ip -> ip address to bind to (ie send from)
Note: -b ip requires valid ip, e.g. ifconfig alias
-b x.y.z -> use entire class C to bind, e.g. x.y.z.0, .1, .2, ...
-b x.y or x -> class B or A range to bind, e.g. x.y.0.0, .0.1,
Note: requires kernel with bind restriction removed
-b a.b.c.d-w.x.y.z -> explicit range to bind
-z -> print a summary line after every message
-Z name -> print a summary line prefixed with name after every message
and protocol options are:
-d -> all messages in one session
-e -> insert a "To:" header if none provided in message
-M -> don't replace the original "Message-Id:" header
-N -> don't remove BTI headers
-w wait -> seconds to wait between messages (default=0)
-R wait -> wait up to (random) wait seconds between messages (default=0)
-S wait -> wait milliseconds between lines in a message (default=0)
-s sess -> number of parallel sessions (default=1)
-T wait -> timeout (in seconds) for all operations (default=300)
-l len -> length of message (default is 30 bytes)
-C count-> number of times to try to connect (default is 1)
-i stage-> stage to interrupt at [use '-i ?' for a list]
-n lines-> number of lines of output before doing interrupt check
-I -> ignore connect errors
and diagnostic/debug
-c -> print current message count
-v -> verbose operation