设置脚本配置文件

为运行旨在发送用于研究的垃圾邮件的脚本,需要 Microsoft Exchange Web Services Managed API 2.0 程序接口。通过点击以下链接下载该界面软件模块: http://www.microsoft.com/en-us/download/details.aspx?id=35371 并将其存储在包含脚本的文件夹的 bin 子文件夹中。

config.xml 脚本配置文件允许您配置该脚本。其结构如下:

<config>

<senderEmail>administrator@company.com</senderEmail>

<recipientEmail>Probable_KSEspam@spam.kaspersky.com</recipientEmail>

<exchangeVersion>Exchange2013</exchangeVersion>

<envelopeSubject>Example of SPAM Message</envelopeSubject>

<envelopeBody>This message contains SPAM sample in attachment</envelopeBody>

<logSize>10</logSize>

<oldMessages>3</oldMessages>

<ews>https://kseserver.company.com/EWS/Exchange.asmx</ews>

<users>

<user rightsAssigned="True">user@company.com</user>

<user>user1@company.com</user>

<user>user2@company.com</user>

</users>

<subjectMarks>

<mark>[KL SPAM]</mark>

<mark default="True">[!!SPAM]</mark>

<mark>[!!SPAM]</mark>

<mark>[!!Spam]</mark>

<mark>[!!Probable Spam]</mark>

<mark>[!!Blacklisted]</mark>

</subjectMarks>

</config>

您可以重新定义脚本配置文件的以下参数:

页面顶部