Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/deysuman/sql-injection-detector
https://github.com/deysuman/sql-injection-detector
Last synced: 23 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/deysuman/sql-injection-detector
- Owner: deysuman
- Created: 2022-03-17T02:42:30.000Z (almost 3 years ago)
- Default Branch: develop
- Last Pushed: 2022-03-17T11:37:40.000Z (almost 3 years ago)
- Last Synced: 2024-11-15T10:55:01.016Z (about 2 months ago)
- Language: Python
- Size: 51.8 KB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sql Injection Detector
Sql-injection-detector is a Machine Learning powerd tools for detect sql injection syntext in SQL query.
## Features
- ML Powerd model
- Detect 99.99% sql injection syntext
- Sqlmap tested verified## Installation
Dillinger requires [Node.js](https://nodejs.org/) v10+ to run.
Install the sql-injection-detector.
```sh
npm install -g sql-injection-detecor
```## Using
Import
```sh
const sqlDetector = require('sql-injection-detecor');
```Then:
```sh
let statement = sqlDetector.detectSql("2' AND ORD(MID((SELECT DISTINCT(IFNULL(CAST(schema_name AS NCHAR),0x20)) FROM INFORMATION_SCHEMA.SCHEMATA LIMIT 5,1),5,1))>1 AND 'vFAF'='vFAF")
statement.then(function (res){
if(success){
console.log("Sql injection not detected")
}
else {
console.log("Sql injection detected")
}
}).catch(err =>{console.log(err)})
```## License
MIT
**Free Software, Hell Yeah!**
!["Buy Me A Coffee"](https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png)
## BTC
**3Ed3EgdQsVFNG3pGo3gJUqmUJEJ5oN2Hd1**