Coder Social home page Coder Social logo

qqwry.dat's Introduction

qqwry.dat

纯真ip数据库,定时更新最新版本,每天会扫描,所以应该是最快的了

一个基于此ip库的地址查询命令行工具--nali,见nali

目录说明

1、historys目录为历史数据,里边带日期的子目录为每周纯真更新的ip库的数据文件,可以从这里获取历史ip库文件

2、根目录下的qqwry_lastest.dat为当前最新的ip库文件,用于其他软件获取最新ip库

3、auto_update_qqwry.sh和update_chunzhen.py文件未获取最新ip库的核心逻辑和封装脚本,可以用来自行集成获取ip库能力

鸣谢

拉取最新ip库的核心python脚本参考自https://www.xxorg.com/archives/4836 ,thx!

license

Copyright (C) out0fmemory 2017

This work is free. You can redistribute it and/or modify it under the terms of the Do What The Fuck You Want To But It's Not My Fault Public License, Version 1, as published by Ben McGinnes:

DO WHAT THE FUCK YOU WANT TO BUT IT'S NOT MY FAULT PUBLIC LICENSE Version 1, October 2013 Copyright (C) 2013 Ben McGinnes [email protected]

Everyone is permitted to copy and distribute verbatim or modified copies of this license document, and changing it is allowed as long as the name is changed.

DO WHAT THE FUCK YOU WANT TO BUT IT'S NOT MY FAULT PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

You just DO WHAT THE FUCK YOU WANT TO.

Do not hold the author(s), creator(s), developer(s) or distributor(s) liable for anything that happens or goes wrong with your use of the work.

qqwry.dat's People

Contributors

out0fmemory avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

qqwry.dat's Issues

文档

这是一个很棒的项目,同时如果加上指南与文档,这将如虎添翼。相信我这是真的

自动更新好像失效了饿

qqwry_lastest.dat 已经是12天以前的,官网最新的是2022-04-27的
自动更新失效了,得换种方式了

更新一个补丁

---
 update_chunzhen.py | 18 +++++++++++-------
 1 file changed, 11 insertions(+), 7 deletions(-)

diff --git a/update_chunzhen.py b/update_chunzhen.py
index 54e3939..064843e 100644
--- a/update_chunzhen.py
+++ b/update_chunzhen.py
@@ -103,14 +103,18 @@ def updateQQwry(filename):
         return -6
 
 if __name__ == '__main__':
-    import sys
-    if len(sys.argv) > 1:
-        ret = updateQQwry(sys.argv[1])
+    import argparse
+    argumentParser = argparse.ArgumentParser("download cz IP data")
+
+    argumentParser.add_argument("--file",help="download file of name",type=str)
+
+    args = argumentParser.parse_args()
+    print('args',args)
+    if(args.file != None):
+        ret = updateQQwry(f'{args.file}.dat')
         if ret > 0:
             print('成功更新到%s,%s字节' % 
-                  (sys.argv[1], format(ret, ','))
+                  (args.file, format(ret, ','))
                   )
         else:
-            print('更新失败,错误代码:%d' % ret)
-    else:
-        print('用法:以想要保存的文件名作参数。')
+            print('更新失败,错误代码:%d' % ret)
\ No newline at end of file
-- 

关于自动更新脚本

get_chunzhen.sh 里面 innoextract_path='/bin/innoextract' 本地提示目录不存在,我把它变成./ 还是没有成功更新,我想知道setup.exe有什么作用,我看到你借鉴的地址描述是获取两个压缩包。从copywrite.rar中读取解密需要的key,然后解密qqwry.rar头0x200字节数据,然后使用zlib解压数据即可得到qqwry.dat文件。我本地是mac,希望可以帮我解决下疑惑

现在update_chunzhen.py还能用吗?

执行脚本返回-1,按脚本里的地址,wget 报错HTTP request sent, awaiting response... 503 Service Temporarily Unavailable

但是浏览器可以下载copywrite.rar 和 qqwry.rar。

ip解析不正确

115.220.165.201
这个ip用百度查询的是:浙江省杭州市江干区 电信
但是用我们这个工具解析的是:浙江省宁波市 电信
请问大佬,这是为什么?

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.