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:
- 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)
- Support the linkage with other security products (HIDS, WAF, honeypot, firewall and other products), update IP library in real time
Function description
- IP libraries are updated periodically after launch and are updated 1 hours by default
- Support to write malicious IP information to Postgres, SQLite, MySQL, MongoDB database
- Support for malicious IP information Export, import
- 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
- 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
- Rogue IP detection,HTTP://xsec.io:8000/api/ip/212. 129.58.111
- Malicious domain name detection,http//xsec.io:8000/api/domain/www.hosting2balooonba.com
Project Address: Netxfly/xsec-ip-database