Skip to content

Commit

Permalink
Merge pull request #128 from ilyaglow/phishtank-fix-2
Browse files Browse the repository at this point in the history
Fix PhishTank analyzer
  • Loading branch information
saadkadhi authored Nov 1, 2017
2 parents 80ca863 + 575bc49 commit da56463
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion analyzers/PhishTank/PhishTank_CheckURL.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "PhishTank_CheckURL",
"version": "2.0",
"version": "2.1",
"author": "Eric Capuano",
"url": "https://github.com/CERT-BDF/Cortex-Analyzers",
"license": "AGPL-V3",
Expand Down
4 changes: 2 additions & 2 deletions analyzers/PhishTank/phishtank_checkurl.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def __init__(self):
'Missing PhishTank API key')

def phishtank_checkurl(self, data):
url = 'http://checkurl.phishtank.com/checkurl/'
url = 'https://checkurl.phishtank.com/checkurl/'
postdata = {'url': data, 'format':'json','app_key': self.phishtank_key}
r = requests.post(url, data=postdata)
return json.loads(r.content)
Expand All @@ -29,7 +29,7 @@ def summary(self, raw):
value = "\"False\""
level = ""

if 'in_database' in raw and raw['in_database'] == "True":
if 'in_database' in raw and raw['in_database'] == True:
value = "\"{}\"".format(raw['in_database'])
if raw.get('verified'):
level = "malicious"
Expand Down

0 comments on commit da56463

Please sign in to comment.