Skip to content

Commit

Permalink
fix: virus_total analyze url remove padding from base64
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgrittner committed Aug 26, 2024
1 parent 0c9e468 commit 4796bdf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions admyral/actions/integrations/enrich/virus_total.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ def virus_total_analyze_url(
api_key = secret["api_key"]
with get_virus_total_client(api_key) as client:
url_base64 = base64.b64encode(url.encode()).decode()
url_base64 = url_base64.rstrip("=")
response = client.get(f"/urls/{url_base64}")
response.raise_for_status()
return response.json()

0 comments on commit 4796bdf

Please sign in to comment.