Coder Social home page Coder Social logo

jacobjacob / check_ip Goto Github PK

View Code? Open in Web Editor NEW

This project forked from newbee119/check_ip

0.0 1.0 0.0 132 KB

check_IP is to judge whether a IP is malicious based on open threat intelligence,基于开源威胁情报AlienVault,排查IP地址及域名的恶意性

Python 100.00%

check_ip's Introduction

check_ip

check_ip结合开源威胁情报,判断数据包中IP地址或者域名地址或者IP清单中的IP地址恶意性  

运行条件

威胁情报查询接口
AlienVault网址:https://otx.alienvault.com/api
需要注册一个账号以得到API_KEY,添加到hot_ip.py开头的对应字段

url = 'http://ip.taobao.com/service/getIpInfo.php?ip='  
API_KEY = ''  #add API_key  
OTX_SERVER = 'https://otx.alienvault.com/'  

程序依赖包

pip install OTXv2 pandas dpkt     

运行环境

ubuntu 16.04 64bit; ubuntu 18.04 64bit     

运行事例

usage: hot_ip.py --pcapfile=./out.pcap –d -c #数据包解析模式,对目的IP地址的恶意性进行排查
usage: hot_ip.py --IPfile=./iplist.txt -c #IP清单文件解析模式,排查清单中的IP地址的恶意性
usage: hot_ip.py --pcapf=./out.pcap -p #数据包解析模式,对域名地址的恶意性进行排查
Image test

其他项

中间文件

out_IP.txt             #解析网络数据包时产生,源/目的IP列表  
ip_location.txt        #解析IP地址地理信息  
malicious_results.txt  #可疑IP地址信息
out_DNS.txt            #解析网络数据包时产生,域名地址列表
maliciousDNS.txt       #可疑域名地址信息

查看结果

f117@ubuntu:~/Downloads/check_ip$ cat malicious_results.txt  
 117.18.237.29   potentially malicious   **-**-台北   https://otx.alienvault.com/indicator/ip/117.18.237.29  
 52.230.80.159   potentially malicious   新加坡-XX-XX   https://otx.alienvault.com/indicator/ip/52.230.80.159  
 40.77.226.249   potentially malicious   爱尔兰-Dublin-XX   https://otx.alienvault.com/indicator/ip/40.77.226.249  

fxx@fxx-X450LD:~/myprojects/check_ip$ cat maliciousDNS.txt
graph.facebook.com    https://otx.alienvault.com/indicator/hostname/graph.facebook.com
data.flurry.com    https://otx.alienvault.com/indicator/hostname/data.flurry.com
alog.umeng.com    https://otx.alienvault.com/indicator/hostname/alog.umeng.com

check_ip's People

Watchers

 avatar

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.