| 1 |
{% extends "base.html" %} |
| 2 |
{% block body %} |
| 3 |
<h1> |
| 4 |
<a name="user-content-libinjection" class="anchor" href="#libinjection"><span class="octicon octicon-link"></span></a>LIBINJECTION</h1> |
| 5 |
|
| 6 |
<p>Libinjection is a small C library to detect SQLi attacks in user input with the following goals:</p> |
| 7 |
|
| 8 |
<ul> |
| 9 |
<li>Open. Source code is on <a href="https://github.com/client9/libinjection/">GitHub</a>.</li> |
| 10 |
<li>Low <em>false-positives</em>. When there are high false positives, people tend to turn off any WAF or protection.</li> |
| 11 |
<li>Excellent detection of SQLi.</li> |
| 12 |
<li>High performance (currently <a href="https://libinjection.client9.com/cicada/artifacts/libinjection/libinjection-speed/latest/console.txt">over 500,000 TPS</a>)</li> |
| 13 |
<li>Easy to test and QA</li> |
| 14 |
<li>Easy to integrate and extend</li> |
| 15 |
</ul><h3> |
| 16 |
<a name="user-content-try-it-now" class="anchor" href="#try-it-now"><span class="octicon octicon-link"></span></a><a href="/diagnostics">Try it now</a> |
| 17 |
</h3> |
| 18 |
|
| 19 |
<h3> |
| 20 |
<a name="user-content-easy-to-integrate" class="anchor" href="#easy-to-integrate"><span class="octicon octicon-link"></span></a>Easy to integrate</h3> |
| 21 |
|
| 22 |
<ul> |
| 23 |
<li>Standard C code, and compiles as C99 and C++, with bindings to |
| 24 |
|
| 25 |
<ul> |
| 26 |
<li><a href="https://github.com/client9/libinjection/wiki/doc-sqli-python">Python</a></li> |
| 27 |
<li><a href="https://github.com/client9/libinjection/wiki/doc-sqli-php">PHP</a></li> |
| 28 |
<li><a href="https://github.com/client9/libinjection/tree/master/lua">Lua</a></li> |
| 29 |
</ul> |
| 30 |
</li> |
| 31 |
<li>Small - about <a href="https://libinjection.client9.com/cicada/artifacts/libinjection/libinjection-loc/latest/console.txt">1500 lines of code</a> in three files</li> |
| 32 |
<li>Compiles on Linux/Unix/BSD, Mac and Windows</li> |
| 33 |
<li>No threads used and thread safe</li> |
| 34 |
<li>No recursion</li> |
| 35 |
<li>No (heap) memory allocation</li> |
| 36 |
<li>No extenal library dependencies</li> |
| 37 |
<li><a href="https://github.com/client9/libinjection/tree/master/tests">400+ unit tests</a></li> |
| 38 |
<li><a href="https://libinjection.client9.com/cicada/artifacts/libinjection/libinjection-coverage-unittest/latest/lcov-html/libinjection/src/index.html">98% code coverage</a></li> |
| 39 |
<li><a href="https://github.com/client9/libinjection/blob/master/COPYING">BSD License</a></li> |
| 40 |
</ul><h2> |
| 41 |
<a name="user-content-third-party-ports" class="anchor" href="#third-party-ports"><span class="octicon octicon-link"></span></a>Third-Party Ports</h2> |
| 42 |
|
| 43 |
<ul> |
| 44 |
<li><a href="https://github.com/Kanatoko/libinjection-Java">java</a></li> |
| 45 |
<li>At least two .NET ports exists</li> |
| 46 |
<li>Another python wrapper</li> |
| 47 |
</ul><h2> |
| 48 |
<a name="user-content-applications" class="anchor" href="#applications"><span class="octicon octicon-link"></span></a>Applications</h2> |
| 49 |
|
| 50 |
<ul> |
| 51 |
<li> |
| 52 |
<a href="http://www.modsecurity.org/">ModSecurity</a> - since 2.7.4 release</li> |
| 53 |
<li> |
| 54 |
<a href="https://www.ironbee.com">IronBee</a> - since May 2013</li> |
| 55 |
<li>Proprietary Honeypot</li> |
| 56 |
<li>Proprietary WAF, Russia</li> |
| 57 |
<li>Proprietary WAF, Japan</li> |
| 58 |
</ul>{% end %} |