Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

node.js wrapper for libinjection C/C++ library it's a simple and fast library to detect SQL Injection in a string.

License

Notifications You must be signed in to change notification settings

ntedgi/node-libinjection

Repository files navigation

libinjection - Node.js wrapper for libinjection C/C++ library

it's a simple and fast library to detect SQL Injection in a string.

const {SQLInjection} = require('./index');
const sqli = new SQLInjection();
const input = `SELECT * FROM members WHERE username = 'admin'--' AND password = 'password' ';`

console.log(sqli.has(input)); // true
console.log(sqli.check(input)); // { isSqli: true, fingerprint: 'Eoknk' }
===================
Find SQL Inject
===================

Platform info:
==============
Darwin 23.5.0 x64
Node.JS: 18.17.1
V8: 10.2.154.26-node.26
CPU: Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz x 12
Memory: 32 GB

Suite: has Sql Injection
========================

using libinjection 4,827 ops/sec
perfect-express-sanitizer* 341 ops/sec

using libinjection +1,316.39% (4,827 ops/sec) (avg: 207ms)
perfect-express-sanitizer* (#) 0% (341 ops/sec) (avg: 2ms)

+---------------------------+----------------------------------------------------+
| using libinjection | ################################################## |
+---------------------------+----------------------------------------------------+
| perfect-express-sanitizer | #### |
+---------------------------+----------------------------------------------------+


-----------------------------------------------------------------------

About

node.js wrapper for libinjection C/C++ library it's a simple and fast library to detect SQL Injection in a string.

Topics

Resources

Readme

License

MIT license

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

Languages