Giter VIP home page Giter VIP logo

ioc-explorer's Issues

json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

於 config.ini 裡輸入正確的 VirusTotal API key 之後,程式輸出下列的錯誤訊息

Traceback (most recent call last):
File "C:\Users\yutta\eclipse-workspace\ioc-explorer\explorer.py", line 74, in main
ioc_list = build_ioc_relation(root)
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\yutta\eclipse-workspace\ioc-explorer\explorer.py", line 52, in build_ioc_relation
result_list = relation(ioc)
^^^^^^^^^^^^^
File "C:\Users\yutta\eclipse-workspace\ioc-explorer\relationship.py", line 342, in qax_domain_to_ip
if r.status_code == 200 and len(r.json()['data']) > 0:
^^^^^^^^
File "C:\Users\yutta.conda\envs\ioc-explorer\Lib\site-packages\requests\models.py", line 897, in json
return complexjson.loads(self.text, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\yutta.conda\envs\ioc-explorer\Lib\json_init_.py", line 346, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\yutta.conda\envs\ioc-explorer\Lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\yutta.conda\envs\ioc-explorer\Lib\json\decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

比對 request 的傳回值,並用r.encoding = r.apparent_encoding修正編碼後,發現下列正確的傳回值貌似不是正確的 API 端口傳回值,可能 'http://fdp.example.cn/flint/rrset/xnz.freetzi.com/' 這個 API 端口已失效,需要更新~~

'\r\n\r\n\r\n<title>我的私人小站</title>\r\n\r\n\r\n\r\n<script type="text/javascript" src="/index/ajax.js"></script>\r\n<script type="text/javascript" src="/index/login.js"></script>\r\n\r\n\r\n\r\n
\r\n

本域名目前用于《我的私人小站》使用中,如您对本域名感兴趣可联系域名经纪公司微信,微信号:ym8668my。

\r\n

If you want this domain name, please contact WeChat: ym8668my, or Email: usainvest#tom.com(# Replace with @).

\r\n
\r\n\r\n

www.<script src="/scripts/domain.js"></script>

\r\n\r\n

本域名目前用于《我的私人小站》使用中,如您对本域名感兴趣可联系域名经纪公司微信,微信号:ym8668my。

\r\n

域名联系Email:usainvest # tom.com 请将#替换为@ ( # Replace with @ )

\r\n\r\n
\r\n\r\n

如果您是我的私人小站的会员,请使用您的会员ID和密码登陆。

\r\n\r\n
\r\n\r\n
\r\n\r\n

USERNAME 用户名

\r\n \r\n \r\n \r\n

PASSWORD 密码

\r\n \r\n \r\n \r\n

注意:密码输错超过10次请隔日再试!

\r\n
\r\n
\r\n \r\n Remember Me 记住我\r\n
\r\n \r\n \r\n \r\n
\r\n
\r\n\r\n
Collect from 我的私人小站
\r\n\r\n
\r\n
\r\n\r\n

Forgot password

\r\n
\r\n
(Please enter your registered email below and the system will automatically reset users' password and send it to user’s registered email address.)
\r\n \r\n \r\n \r\n\r\n \r\n
\r\n
\r\n
\r\n \r\n \r\n \u3000\u3000\u3000\r\n \u3000\u3000\r\n \r\n \r\n
\r\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n
\r\n







\r\n\r\n

本站经纪人微信二维码
\r\n
Copyright © 1999. All rights reserved. 版权所有:《我的私人小站》

\r\n\r\n\r\n<script src="/scripts/count.js"></script>\r\n\r\n'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.