tuansandman / opendlp

Automatically exported from code.google.com/p/opendlp
0 stars 0 forks source link

Feature Relase: Summarized Results page #109

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I've made some modifications to OpenDLP that add another way to view the 
results.  I think it is easier to do it this way when a single system has a 
large number of findings.  See the attached screenshot for an example of what 
I'm talking about.

This changes doesn't remove any current features, it only adds them.

Here's how to implement the changes I've made and begin using them:

1. We need to create a new table in the database on your OpenDLP host
    a. Login to mysql:
        mysql --user=root --password=opendlp OpenDLP
    b. Within mysql, run the following:
        create table summary_results(scan varchar(64), system varchar(64), tracker varchar(32), file varchar(8096), patterns varchar(1024), count bigint(20) unsigned, db varchar(256), tbl varchar(256), col varchar(256));
2. Exit mysql and go to the /var/www/OpenDLP/web/bin directory on your OpenDLP 
host
3. Make backup copies of viewresults.html and deletescan-verify.html
4. Upload the attached viewresults.html, viewsummary.html, and 
deletescan-verify.html files to this directory
5. chmod +x to make them executable

I've tested this pretty thoroughly, but please reply if you find any bugs with 
this feature.

Along the way, I also made a couple enhancements to viewresults.html
- Cleaned up the source code a bit - individual scan and system output was 
quite repetitive when the output is mostly the same.
- Fixed potential divide by 0 issue that could occur if the 'Total Bytes' was 
set to 0.
- Removed 'time remaining' for scans that have been uninstalled

Original issue reported on code.google.com by nroe...@paysw.com on 5 Dec 2013 at 8:48

Attachments: