A simple malicious IP library

Source: Internet
Author: User
This is a creation in Article, where the information may have evolved or changed.

Xsec IP Database is a malicious IP and Domain name library (malicious IP database), which obtains malicious IP and domain names in the following ways:

    1. Periodically pull out malicious IP libraries that are exposed in the network via crawlers (and possibly add new crawlers to subscribe to new IP libraries)
    2. Support the linkage with other security products (HIDS, WAF, honeypot, firewall and other products), update IP library in real time

Function description

    1. IP libraries are updated periodically after launch and are updated 1 hours by default
    2. Support to write malicious IP information to Postgres, SQLite, MySQL, MongoDB database
    3. Support for malicious IP information Export, import
    4. Provides malicious IP and DNS detection and interfaces to other security products

How to use

   $./main [ xorm [ info]  2017/09/26 13:22:58.220496 PING DATABASE mysqlname:xsec Malicious IP database-a Malicious IP databaseusage:main [ global options] command  [ command  options ]  [ arguments ...   version:20170925 author ( s) : Netxfly <x@ Xsec.io> Commands:serve startup Evil IPs dump Fetch all evil IPs info and save to file load Load IPs from File Help, H shows a list of commands or help  for  one command  GLOBAL OPTIONS:--help,-H show help --version,-v print the Version 
    • Serve will start the program, crawl the malicious IP and domain name information will start the Web interface
    • Dump, export the malicious IP and domain name to the current directory, with the file names IPs and DNS
    • Load, import the information from IPs and DNS into memory and start the Web interface

Run

    • Direct Startup program
    • Export the malicious IP information to the current directory, using the scene as part of the URL is a wall, you need to first export files in a foreign VPS to be dragged back to domestic use


    • Import malicious IP information and start the Web interface


    • Malicious IP detection and real-time submission testing


    • Malicious domain name detection and submission testing


The content of the test code which tests linkage with other security products is as follows:

 Package routers_testImport (    "Testing"    "Time"    "Net/http"    "Net/url"    "Xsec-evil-ips/util")func Testupdateip(T *Testing.T) {    u := "http://127.0.0.1:8000/api/ip/"    timestamp :=  Time. Now().Format("2006-01-02 15:04:05")    k := "aadcbfbc837757a9a24ac96cf9171c8b"    IP := "212.129.58.111"    Pro := "xsec Test Pro"    T.Log(http.Postform(u, URL.Values{"Timestamp": {timestamp}, "SecureKey": {util.makesign(timestamp, k)}, "IP": {IP}, "Pro": {Pro}}))}func Testupdatedomain(T *Testing.T) {    u := "http://127.0.0.1:8000/api/domain/"    timestamp :=  Time. Now().Format("2006-01-02 15:04:05")    k := "aadcbfbc837757a9a24ac96cf9171c8b"    Domain := "Www.hosting2balooonba.com"    Pro := "xsec Test Pro"    T.Log(http.Postform(u, URL.Values{"Timestamp": {timestamp}, "SecureKey": {util.makesign(timestamp, k)}, "Domain": {Domain}, "Pro": {Pro}}))}

The parameters submitted need to have the following parameters, and the security product key must be the same as the malicious IP Library, otherwise the submitted malicious IP or domain name information will not be accepted.

    • Timestamp
    • SecureKey
    • Ip/domain, which indicates a malicious IP or domain name
    • Pro, indicating the name of the security product that needs to be mobilized

Demo

    1. Rogue IP detection,HTTP://xsec.io:8000/api/ip/212. 129.58.111
    2. Malicious domain name detection,http//xsec.io:8000/api/domain/www.hosting2balooonba.com

Project Address: Netxfly/xsec-ip-database

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.