• 使用virustotal VT 查询情报——感觉远远没有微步、思科好用,10万条数据查出来5万条都有postives >0的记录,尼玛!!!


     1399  git clone https://github.com/VirusTotal/c-vtapi.git
     1400  cd c-vtapi/
     1402  sudo apt-get install automake autoconf libtool libjansson-dev libcurl4-openssl-dev
     1407  autoreconf -fi
     1408  ./configure --enable-examples
     1409  make
     1410  sudo make install
     1419  find . -name libcvtapi.so.1
     1420  sudo cp lib/.libs/* /lib64/
     1421  ./example_progs/ip_report --apikey xxxxx --report 106.38.75.154
     1422  sudo cp lib/.libs/* /lib/
     1423  ./example_progs/ip_report --apikey xxxx --report 106.38.75.154
    

     结果:

    main:84: rescan ret=0
    Response:
    {
        "resolutions": [
            {
                "last_resolved": "2017-12-20 00:00:00",
                "hostname": "testratmal.ddns.net"
            }
        ],
        "undetected_urls": [],
        "detected_downloaded_samples": [],
        "detected_urls": [
            {
                "scan_date": "2018-01-15 10:53:25",
                "url": "http://106.38.75.154/",
                "positives": 1,
                "total": 66
            },
            {
                "scan_date": "2017-12-20 15:23:43",
                "url": "http://testratmal.ddns.net/",
                "positives": 1,
                "total": 66
            }
        ],
        "undetected_downloaded_samples": [],
        "verbose_msg": "IP address in dataset",
        "response_code": 1,
        "as_owner": "China Networks Inter-Exchange",
        "country": "CN",
        "asn": "4847"
    }
    main:117: Cleanup
    

     如果是使用python接口则pip install virustotal-api
    然后:

    from __future__ import print_function
    import json
    from virus_total_apis import PublicApi as VirusTotalPublicApi
    
    API_KEY = '1?7?7440?eca037b88fd160ef6c8e04b69ba434bdd76ef2ab0ab52a567650157'
    vt = VirusTotalPublicApi(API_KEY)
    
    response = vt.get_ip_report("106.38.75.154")
    print(json.dumps(response, sort_keys=False, indent=4))
    

    ???是你自己的api key,输出结果:

    {
        "results": {
            "undetected_urls": [],
            "undetected_downloaded_samples": [],
            "detected_downloaded_samples": [],
            "response_code": 1,
            "as_owner": "China Networks Inter-Exchange",
            "detected_urls": [
                {
                    "url": "http://106.38.75.154/",
                    "positives": 1,
                    "total": 66,
                    "scan_date": "2018-01-15 10:53:25"
                },
                {
                    "url": "http://testratmal.ddns.net/",
                    "positives": 1,
                    "total": 66,
                    "scan_date": "2017-12-20 15:23:43"
                }
            ],
            "verbose_msg": "IP address in dataset",
            "country": "CN",
            "resolutions": [
                {
                    "last_resolved": "2017-12-20 00:00:00",
                    "hostname": "testratmal.ddns.net"
                }
            ],
            "asn": "4847"
        },
        "response_code": 200
    }
    

    alkdsjfalksjf abc 109321dlkaDsadfsa测试OK!

  • 相关阅读:
    程序命名规则
    CSS样式常用命名参考
    转:数据挖掘资料收集
    javascript占位符
    网站目录,文件夹命名规范
    IIS HTTP 500 内部服务器错误完美解决 IIS 服务器无法加载应用程序 '/LM/W3SVC/1/ROOT'。错误是 '没有注册类别
    人事工资合同管理系统菜单截图
    Vs 正则表达式 查找替换 微软权威参考
    什么是DNS,A记录,子域名,CNAME别名,MX记录,TXT记录,SRV 记录,TTL值
    MT主机控制面板Plesk 使用指南
  • 原文地址:https://www.cnblogs.com/bonelee/p/9967807.html
Copyright © 2020-2023  润新知