From 450ad4f9941a773ec3f6b522e3e9bd67f01e2d7d Mon Sep 17 00:00:00 2001 From: userjack6880 Date: Fri, 12 Jul 2019 08:09:02 -0500 Subject: [PATCH 1/8] added hosts link to domain, added ability to sort by DMARC policy to index --- CHANGELOG.md | 33 +++++++++++++++++++++++++++++++++ README.md | 33 ++++++--------------------------- includes/functions.php | 2 +- index.php | 2 +- 4 files changed, 41 insertions(+), 29 deletions(-) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..6e08ce7 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,33 @@ +# Changelog + +## 0-α6 +- Sort index by DMARC policy added. +- Link to domain page from senders page. + +## 0-α5 +- Fixed behavior of the control that changes the start of the display period to take in account the default date range configured in `config.php`. +- Created the beginnings of the org reports page. It's kinda basic right now. +- Added a bit of color to the DKIM and SPF result columns. +- Added optional GeoIP2 Information on `hosts.php`. +- Fixed a bunch of little things here and there, and added a few comments in areas that needed it. +- Many thanks to Timo N. for making excellent suggestions on improving this project, pointing out things I would've overlooked long into it. + +## 0-α4 +- Added a control to change the start of the display period in 1 week steps. +- Added disposition control to display a single disposition only. +- Added a sender report to show senders for a single domain or what domains a single sender sent as. +- Some code cleanup. + +## 0-α3 + +- Fixed issue where a domain will be listed to have a non-zero volume, but on the domain page will have no reports. This page now properly shows all reports related to a single domain. +- Improved the accuracy of the DMARC compliance graph. No longer does it take the larger of the two alignments, but instead counts a message as complaint if it is either DKIM or SPF aligned. +- Moved away from mysqli to utilize PDO instead. + +## 0-α2 + +- Code now has most useful features now. + +## 0-α1 + +- Project started. It's absolutely terrible and nobody should use this. diff --git a/README.md b/README.md index 86a3c53..1621219 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Open DMARC Analyzer -This is Open DMARC Analyzer version 0 alpha-5 (0-α5) by John Bradley (john@systemanomaly.com). Open DMARC Analyzer is an Open Source DMARC Report Analyzer to be used with DMARC reports that have been parsed by [John Levine's rrdmarc script](http://www.taugh.com/rddmarc/) or [techsneeze's dmarcts-report-parser](https://github.com/techsneeze/dmarcts-report-parser). +This is Open DMARC Analyzer version 0 alpha-6 (0-α6) by John Bradley (john@systemanomaly.com). Open DMARC Analyzer is an Open Source DMARC Report Analyzer to be used with DMARC reports that have been parsed by [John Levine's rrdmarc script](http://www.taugh.com/rddmarc/) or [techsneeze's dmarcts-report-parser](https://github.com/techsneeze/dmarcts-report-parser). Open DMARC Analyzer was written because there didn't seem to be a full-featured self-hosted report analyzer that provided enough details to make heads or tails of a large volume of DMARC reports that come into medium to large-sized organizations. While other solutions required paid subscriptions or have part of it hosted on AWS, Open DMARC Analyzer will run on any webserver that supports PHP 5.4+ and MySQL 15.1+. @@ -16,35 +16,14 @@ You will also need the GeoLite2 database from MaxMind (or any other compatible D The MaxMind library is not distributed with this project, and is ultimately an optional feature to the project as a whole. -# Changelog +# Latest Changes -## 0-α5 -- Fixed behavior of the control that changes the start of the display period to take in account the default date range configured in `config.php`. -- Created the beginnings of the org reports page. It's kinda basic right now. -- Added a bit of color to the DKIM and SPF result columns. -- Added optional GeoIP2 Information on `hosts.php`. -- Fixed a bunch of little things here and there, and added a few comments in areas that needed it. -- Many thanks to Timo N. for making excellent suggestions on improving this project, pointing out things I would've overlooked long into it. +## 0-α6 -## 0-α4 -- Added a control to change the start of the display period in 1 week steps. -- Added disposition control to display a single disposition only. -- Added a sender report to show senders for a single domain or what domains a single sender sent as. -- Some code cleanup. +- Sort index by DMARC policy added. +- Link to domain page from senders page. -## 0-α3 - -- Fixed issue where a domain will be listed to have a non-zero volume, but on the domain page will have no reports. This page now properly shows all reports related to a single domain. -- Improved the accuracy of the DMARC compliance graph. No longer does it take the larger of the two alignments, but instead counts a message as complaint if it is either DKIM or SPF aligned. -- Moved away from mysqli to utilize PDO instead. - -## 0-α2 - -- Code now has most useful features now. - -## 0-α1 - -- Project started. It's absolutely terrible and nobody should use this. +See `CHANGELOG.md` for full details of all changes. # License diff --git a/includes/functions.php b/includes/functions.php index a6f58f0..2962a1b 100644 --- a/includes/functions.php +++ b/includes/functions.php @@ -332,7 +332,7 @@ function senders_report_table($pdo, $dateRange = DATE_RANGE, $domain = null, $ip echo "\t\n"; echo "\t\t".long2ip($row['ip'])."\n"; echo "\t\t".gethostbyaddr(long2ip($row['ip']))."\n"; - echo "\t\t".$row['identifier_hfrom']."\n"; + echo "\t\t".$row['identifier_hfrom']."\n"; echo "\t\n"; } diff --git a/index.php b/index.php index f08f146..31da88c 100644 --- a/index.php +++ b/index.php @@ -42,7 +42,7 @@ ?>