Home

Awesome

Libinjection - Java

This is a porting of the SQLi detection tool libinjection to Java.

public class Main {

    public static void main(String[] args) {
        /* test a string */
        Libinjection a = new Libinjection();
        boolean issqli = a.libinjection_sqli("admin' OR 1=1--");
        System.out.println(issqli); 

        /* test a file and output its results to another file, with options to urldecode and time (in milliseconds) */  
        Test t = new Test();
        t.testfile("data/sqli.txt", "data/resultsfile", true, false);
    }
}

So far it's been tested on around 85,000 SQLi input collected from the original libinjection library here, with results matching those of the original libinjection. Speed-wise similar to the original project (performance climbs as JVM optimizes).

This project was developed at Qubit Security Inc.