diff --git a/quark/webreport/analysis_report_layout.html b/quark/webreport/analysis_report_layout.html index cb9d5412..daf38c6c 100644 --- a/quark/webreport/analysis_report_layout.html +++ b/quark/webreport/analysis_report_layout.html @@ -3,6 +3,7 @@ Quark Report + @@ -341,6 +342,72 @@ background-color: #939393; color: white; } + + .tooltiptext { + visibility: hidden; + width: 140px; + background-color: #555; + color: #fff; + text-align: center; + border-radius: 6px; + padding: 5px; + position: absolute; + z-index: 1; + bottom: 150%; + left: 50%; + margin-left: -75px; + opacity: 1; + transition: opacity 0.3s; + } + + .tooltiptext::after { + content: ""; + position: absolute; + top: 100%; + left: 50%; + margin-left: -5px; + border-width: 5px; + border-style: solid; + border-color: #555 transparent transparent transparent; + } + /* The Modal (background) */ + .modal { + display: none; /* Hidden by default */ + position: fixed; /* Stay in place */ + z-index: 1; /* Sit on top */ + padding-top: 100px; /* Location of the box */ + left: 0; + top: 0; + width: 100%; /* Full width */ + height: 100%; /* Full height */ + overflow: auto; /* Enable scroll if needed */ + background-color: rgb(0,0,0); /* Fallback color */ + background-color: rgba(0,0,0,0.4); /* Black w/ opacity */ + } + + /* Modal Content */ + .modal-content { + background-color: #fefefe; + margin: auto; + padding: 20px; + border: 1px solid #888; + width: 80%; + } + + /* The Close Button */ + .close { + color: #aaaaaa; + float: right; + font-size: 28px; + font-weight: bold; + } + + .close:hover, + .close:focus { + color: #000; + text-decoration: none; + cursor: pointer; + } @@ -405,8 +472,21 @@

Sample Information

File name
$filename$
-
MD5
-
$md5$
+
+ MD5 +
+
+ + content_copy + + Copy to clipboard +
+
+ + $md5$ + + Go to VirusTotal report +
File size
$filesize$ Mb
Labels
@@ -471,12 +551,22 @@

The labels with 100% confidence crimes

+ + + $report_data$ + diff --git a/quark/webreport/generate.py b/quark/webreport/generate.py index 435a5c86..980f7602 100644 --- a/quark/webreport/generate.py +++ b/quark/webreport/generate.py @@ -195,10 +195,11 @@ def insert_report_html(self, data): description = crime["crime"] confidence = crime["confidence"] rule_number = crime["rule"].split('.')[0] + crime_text = str(crime).replace("'", '\\"') contentHTML += f"""

{rule_number}

-

{description}

+

{description}

{confidence}