Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Phishtank checkURL fails #261

Closed
stacsirt opened this issue May 30, 2018 · 2 comments
Closed

Phishtank checkURL fails #261

stacsirt opened this issue May 30, 2018 · 2 comments
Assignees
Labels
category:bug Issue is related to a bug scope:question

Comments

@stacsirt
Copy link

Bug

Work Environment

N/A

Question Answer
OS version (server) Debian
OS version (client) OSX
Cortex Analyzer Name PhishTank_CheckURL
Cortex Analyzer Version 2.1
Cortex Version 2.0.4
Browser type & version Firefox 60.0.1

Description

When attempting to look up an URL in the analyser (from Cortex), I get the following error;

Invalid output
Traceback (most recent call last):
File "PhishTank/phishtank_checkurl.py", line 73, in
PhishtankAnalyzer().run()
File "PhishTank/phishtank_checkurl.py", line 44, in run
r = self.phishtank_checkurl(data)
File "PhishTank/phishtank_checkurl.py", line 19, in phishtank_checkurl
return json.loads(r.content)
File "/usr/lib/python3.5/json/init.py", line 312, in loads
s.class.name))
TypeError: the JSON object must be str, not 'bytes'

Steps to Reproduce

(keep this section only if the issue relates to a bug)

  1. Start New Analysis
  2. Enter URL (www.example.com)
  3. Run analyser

Requirement already up-to-date: cortexutils in /usr/local/lib/python3.5/dist-packages (1.2.4)

thanks for any help!

@jeromeleonard jeromeleonard added category:bug Issue is related to a bug scope:question labels Jun 3, 2018
@jeromeleonard jeromeleonard self-assigned this Jun 3, 2018
@jeromeleonard
Copy link
Contributor

Hi,

can't reproduce the error on my side, everything works fine. Could you please confirm the error and give sample URLs please ?

Thanks.

@stacsirt
Copy link
Author

stacsirt commented Jun 4, 2018

Interesting - thank you for checking. I have done some work on the install of python and it seems to work now. Feel free to close this as user error.

@stacsirt stacsirt closed this as completed Jun 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:bug Issue is related to a bug scope:question
Projects
None yet
Development

No branches or pull requests

2 participants