Giter Club home page Giter Club logo

exploitdb-api's Introduction

#exploitdb-API The goal is keep a SGDB (sqlite3 or your preferred) synchronized with exploit-db.com, through exploit-db official github repository, and to offer a search HTTP API by CVE, OSVDB, Title etc.

Features:

  • Get information aobut CVE, OSVDB and other from exploit-db official website
  • Script (service by crontab) to update from it from official repository of The Exploit Database, a project sponsored by Offensive Security.
  • Script (Service by crontab) to sync exploits from repository to DB
  • API to search on DB
  • install Script
  • HTTP Search API
  • include a SQLite3 DB that you need to start (synchronized weekly)
  • Logs and statistics

##All you need

###Intalation Clone this Repository

git clone https://github.com/asrocha/exploitdb-API.git

Run install.sh with exploit-db diretctory destination default ./exploits

./install.sh ./exploits

Run update-db.php to update the database:

php update-db.php 

Take care if you do not downloaded de exploitdb.db it will take a lot of time around 50 hours

###Crontab you could customize your own update time in crontab, we recommend hourly

updating only exploits files hourly:

59 * * * * * update-exploit-db.sh

updating DB from files hourly:

59 * * * * * php update-db.php

if you prefer you can upate all together updating all hourly:

59 * * * * * update-all.sh

Conf

All you need to conf is setting the path on "__construct function" in exploitdb.class.php Make sure that $this->exploitdb_dir = "./exploits/platforms/" is correct if you wanna that the logs are preserved set $preserv_log = 1;

Running

From PHP builtn Server With mod_rewrite

 php -S localhost:8080 mod_rewrite-sub.php 

Without mod_rewrite

 php -S localhost:8080
 

API Usage:

####Searching by CVE

Using mod_rewrite:

http://localhost:8080/CVE/2016-3714
http://localhost:8080/byCVE/2016-3714
http://localhost:8080/cve/2016-3714
http://localhost:8080/bycve/2016-3714

Query String

http://localhost:8080/API.php?CVE=2016-3714
http://localhost:8080/API.php?cve=2016-3714
http://localhost:8080/API.php?byCVE=2016-3714
http://localhost:8080/API.php?bycve=2016-3714

####Searching by OSVDB

Using mod_rewrite:

http://localhost:8080/OSVDB/29421
http://localhost:8080/osbdb/29421
http://localhost:8080/byosvdb/29421
http://localhost:8080/byOSVDB/29421

Query String

http://localhost:8080/API.php?OSVDB=29421
http://localhost:8080/API.php?osvdb=29421
http://localhost:8080/API.php?byOSVDB29421
http://localhost:8080/API.php?byosbdb=29421

####Searching by Title or Exploit Using mod_rewrite:

http://localhost:8080/exploit/ms14

Query String

http://localhost:8080/API.php?exploit=ms14

Statistcs

If you wanna know how many exploits are on database

http://localhost:8080/statistcs
http://localhost:8080/API.php?statistcs

Have a lot of Fun !!!

exploitdb-api's People

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.