Skip to content

Commit

Permalink
Update scan_html.py
Browse files Browse the repository at this point in the history
Preserve the raw HTML as .scan.html.raw
  • Loading branch information
morriscode authored Sep 5, 2024
1 parent 065ce7b commit 353c4db
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/python/strelka/scanners/scan_html.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ class ScanHtml(strelka.Scanner):
def scan(self, data, file, options, expire_at):
parser = options.get('parser', 'html.parser')

# Store raw HTML data
self.event['raw'] = data.decode('utf-8', errors='replace')

self.event['total'] = {
'scripts': 0,
'forms': 0,
Expand Down

0 comments on commit 353c4db

Please sign in to comment.