Skip to content

Commit

Permalink
Initial commit of version 1.5 of FQLite
Browse files Browse the repository at this point in the history
  • Loading branch information
pawlaszczyk committed Mar 3, 2021
0 parents commit 2667df2
Show file tree
Hide file tree
Showing 126 changed files with 28,268 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target/
7 changes: 7 additions & 0 deletions META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Manifest-Version: 1.0
Main-Class: org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader
Rsrc-Class-Path: ./ antlr-4.8-complete.jar
Rsrc-Main-Class: fqlite.base.GUI
SplashScreen-Image: fqlite_logo_256.png
Class-Path: .

Binary file added OpenSansEmoji.ttf
Binary file not shown.
38 changes: 38 additions & 0 deletions bin/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
/.DS_Store
/OpenSansEmoji.ttf
/closeDB_gray.png
/database-icon.png
/database-small-icon.png
/database-table-icon.html
/error-48.png
/exit3_gray.png
/export.png
/export_gray.png
/facewink.png
/find.png
/fqlite/
/fqlite_logo_256.png
/fqlite_logo_small.png
/helpcontent_gray.png
/hex-32.png
/icon-photo.png
/icon_checked.png
/icon_deleted.png
/icon_status.png
/icon_trash.png
/information-48.png
/journal-icon.png
/leaf.jpg
/openDB_gray.png
/picture.png
/question-48.png
/table-icon.png
/table-key-icon.png
/table_ico.png
/table_icon.png
/table_iconsmall.png
/testcase.txt
/testcorpus.txt
/trash-icon.png
/wal-icon.png
/warning-48.png
Binary file added lib/antlr-4.8-complete.jar
Binary file not shown.
35 changes: 35 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>FQLite</groupId>
<artifactId>FQLite</artifactId>
<version>1.4_snapshot</version>
<name>FQlite - Forensic SQLite Data Recovery Tool </name>
<description>Maven Builder script for creating a runnable JAR-archive </description>
<build>
<sourceDirectory>src</sourceDirectory>
<resources>
<resource>
<directory>src</directory>
<excludes>
<exclude>**/*.java</exclude>
</excludes>
</resource>
<resource>
<directory>resources</directory>
<excludes>
<exclude>**/*.java</exclude>
</excludes>
</resource>
</resources>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
</build>
</project>
Binary file added resources/.DS_Store
Binary file not shown.
Binary file added resources/OpenSansEmoji.ttf
Binary file not shown.
Binary file added resources/closeDB_gray.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/database-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/database-small-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
414 changes: 414 additions & 0 deletions resources/database-table-icon.html

Large diffs are not rendered by default.

Binary file added resources/error-48.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/exit3_gray.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/export.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/export_gray.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/facewink.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/find.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/fqlite_logo_256.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/fqlite_logo_small.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/helpcontent_gray.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/hex-32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/icon-photo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/icon_checked.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/icon_deleted.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/icon_status.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/icon_trash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/information-48.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/journal-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/leaf.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/openDB_gray.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/picture.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/question-48.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/table-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/table-key-icon.png
Binary file added resources/table_ico.png
Binary file added resources/table_icon.png
Binary file added resources/table_iconsmall.png
2 changes: 2 additions & 0 deletions resources/testcase.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/Users/pawlaszc/Documents/Development/TestCorpus/larger.db:0

110 changes: 110 additions & 0 deletions resources/testcorpus.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
##################################################################
# Only used for internal testing #
# Author: Dirk Pawlaszczyk #
# https://faui1-files.cs.fau.de/public/sqlite-forensic-corpus/ #
##################################################################

# malformed table definitions
test/01/01-01.db:0
test/01/01-02.db:0
test/01/01-03.db:0
test/01/01-04.db:0
test/01/01-05.db:0
test/01/01-06.db:0
test/01/01-07.db:0
test/01/01-08.db:0
test/01/01-09.db:0
test/01/01-10.db:0
test/01/01-11.db:0
test/01/01-12.db:0
test/01/01-13.db:0
test/01/01-14.db:0
test/01/01-15.db:0
test/01/01-16.db:0
test/01/01-17.db:0
test/01/01-18.db:0

# malformed column definitions
test/02/02-01.db:0
test/02/02-02.db:0
test/02/02-03.db:0
test/02/02-04.db:0
test/02/02-05.db:0
test/02/02-06.db:0
test/02/02-07.db:0

# index table (without row id)
test/03/03-01.db:0
test/03/03-02.db:0
test/03/03-03.db:0
test/03/03-04.db:0


# unicode BE LE and surrogate characters (very tricky)
test/04/04-01.db:0
test/04/04-02.db:0
test/04/04-03.db:0
test/04/04-04.db:0
test/04/0A-05.db:0
test/04/0A-06.db:0

# trigger, index, ...
test/05/05-01.db:0
test/05/05-02.db:0
test/05/05-03.db:0
test/05/05-04.db:0 # works but without index table

#virtual tables - not implemented yet



# overflow, multibyte columns
test/07/07-01.db:0
test/07/07-02.db:0
test/07/07-03.db:0
test/07/07-04.db:0


# big number floating point values
test/08/08-01.db:0


# AUTOVACCUMtest
test/09/09-01.db:0


# deleted entries or dropped tables
test/0A/0A-01.db:0
test/0A/0A-02.db:0
test/0A/0A-03.db:0
test/0A/0A-04.db:0
test/0A/0A-05.db:0

# dropped table, partly overwritten with content from another table
test/0B/0B-01.db:0 # works, but some lines of a dropped table are assigned to the overwriting table
test/0B/0B-02.db:0 # works, but some lines of a dropped table are assigned to the overwriting table


# definition area of values, very small and very large values, deleted records and dropped tables
test/0C/0C-01.db:0
test/0C/0C-02.db:0
test/0C/0C-03.db:0
test/0C/0C-04.db:0
test/0C/0C-05.db:0
test/0C/0C-06.db:0
test/0C/0C-07.db:0
test/0C/0C-08.db:0
test/0C/0C-09.db:0
test/0C/0C-10.db:0


# deleted data records
test/0D/0D-01.db:0
test/0D/0D-02.db:0
test/0D/0D-03.db:0
test/0D/0D-04.db:0
test/0D/0D-05.db:0
test/0D/0D-06.db:0
test/0D/0D-07.db:0
test/0D/0D-08.db:0

Binary file added resources/trash-icon.png
Binary file added resources/wal-icon.png
Binary file added resources/warning-48.png
Binary file added src/.DS_Store
Binary file not shown.
Binary file added src/fqlite/.DS_Store
Binary file not shown.
Binary file added src/fqlite/base/.DS_Store
Binary file not shown.
43 changes: 43 additions & 0 deletions src/fqlite/base/Base.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
package fqlite.base;

/**
* Defines an abstracts Base class with some basic
* logging functionality.
*
* @author pawlaszc
*
*/
public abstract class Base {

static final int ALL = 0;
static final int DEBUG = 1;
static final int INFO = 2;
static final int WARNING = 3;
static final int ERROR = 4;
static int LOGLEVEL = ALL;


public void debug(String message) {

if (LOGLEVEL <= DEBUG)
System.out.println("[DEBUG] " +message);
}

public void info(String message) {

if (LOGLEVEL <= INFO)
System.out.println("[INFO] " + message);
}

public void warning(String message) {

if (LOGLEVEL <= WARNING)
System.out.println("[WARNING] " + message);
}

public void err(String message) {

/* always print error messages */
System.err.println("ERROR: " + message);
}
}
Loading

0 comments on commit 2667df2

Please sign in to comment.