Skip to content

Commit

Permalink
Merge pull request #1059 from wazuh/1053-fix-windows
Browse files Browse the repository at this point in the history
Update insert_vulnerability to meet new constrains
  • Loading branch information
BraulioV authored Feb 15, 2021
2 parents ba84cdc + 99a08d9 commit c60588c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions deps/wazuh_testing/wazuh_testing/vulnerability_detector.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,12 +242,12 @@ def update_last_scan(last_scan=0, agent="000"):


def insert_hotfix(agent="000", scan_id=int(time()), scan_time=datetime.datetime.now().strftime("%Y/%m/%d %H:%M:%S"),
hotfix="000000"):
hotfix="000000", checksum="dummychecksum"):
path = os.path.join(DB_PATH, f"{agent}.db")
query_string = f'''INSERT INTO sys_hotfixes
(scan_id, scan_time, hotfix)
(scan_id, scan_time, hotfix, checksum)
VALUES
({scan_id}, "{scan_time}", "{hotfix}")
({scan_id}, "{scan_time}", "{hotfix}", "{checksum}")
'''
update_last_scan()
metadata_query_string = f'update vuln_metadata set HOTFIX_SCAN_ID="{scan_id}"'
Expand Down

0 comments on commit c60588c

Please sign in to comment.