-
Notifications
You must be signed in to change notification settings - Fork 224
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix if base_domain is None before get_service_from_reverse_dns_base_d… (
#514) * Fix if base_domain is None before get_service_from_reverse_dns_base_domain call - Added if statement for base_domain before getting get_service_from_reverse_dns_base_domain(). If base_domain is None, get_service_from_reverse_dns_base_domain() will fail the report. - Added .xml test file * Create protection.outlook.com!example.com!1711756800!1711843200.xml added .xml test sample report where base_domain return none
- Loading branch information
Showing
2 changed files
with
56 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
samples/aggregate/protection.outlook.com!example.com!1711756800!1711843200.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<?xml version="1.0"?> | ||
<feedback xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | ||
<version>1.0</version> | ||
<report_metadata> | ||
<org_name>Outlook.com</org_name> | ||
<email>[email protected]</email> | ||
<report_id>cfeafefe4129445e8c81018bd9177197</report_id> | ||
<date_range> | ||
<begin>1711756800</begin> | ||
<end>1711843200</end> | ||
</date_range> | ||
</report_metadata> | ||
<policy_published> | ||
<domain>example.com</domain> | ||
<adkim>r</adkim> | ||
<aspf>r</aspf> | ||
<p>none</p> | ||
<sp>none</sp> | ||
<pct>100</pct> | ||
<fo>0</fo> | ||
</policy_published> | ||
<record> | ||
<row> | ||
<source_ip>100.24.188.149</source_ip> | ||
<count>1</count> | ||
<policy_evaluated> | ||
<disposition>none</disposition> | ||
<dkim>fail</dkim> | ||
<spf>fail</spf> | ||
</policy_evaluated> | ||
</row> | ||
<identifiers> | ||
<envelope_to>hotmail.com</envelope_to> | ||
<envelope_from>example.com</envelope_from> | ||
<header_from>example.com</header_from> | ||
</identifiers> | ||
<auth_results> | ||
<spf> | ||
<domain>example.com</domain> | ||
<scope>mfrom</scope> | ||
<result>fail</result> | ||
</spf> | ||
</auth_results> | ||
</record> | ||
</feedback> |