Skip to content
Nick Galbreath edited this page Nov 29, 2013 · 1 revision

libinjection C API

Main SQLi API

The main API to detect SQLI, is one function. It requires a output buffer of at least 6 character to store the "fingerprint". This example is from: example1.c

#include "libinjection.h"

char fingerprint[8];

int issqli = libinjection_sqli(input, slen, fingerprint);
if (issqli) {
    printf("sqli with fingerprint of '%s'\n", fingerprint);
} else {
    printf("not sqli\n");
}
Clone this wiki locally