Git Product home page Git Product logo

Comments (3)

cblichmann avatar cblichmann commented on May 5, 2024

Seems I should've scrubbed the directory paths a bit better :-/. No, it's an internal format we use for BinDiff result quality testing.
The SQLite format is actually quite trivial:

sqlite> .schema
CREATE TABLE basicblockalgorithm (id SMALLINT PRIMARY KEY, name TEXT);
CREATE TABLE functionalgorithm (id SMALLINT PRIMARY KEY, name TEXT);
CREATE TABLE "file" (id INT,filename TEXT,exefilename TEXT,hash CHARACTER(40),functions INT,libfunctions INT,calls INT,basicblocks INT,libbasicblocks INT,edges INT,libedges INT,instructions INT,libinstructions INT);
CREATE TABLE "metadata" (version TEXT,file1 INT,file2 INT,description TEXT,created DATE,modified DATE,similarity DOUBLE PRECISION,confidence DOUBLE PRECISION,FOREIGN KEY(file1) REFERENCES file(id),FOREIGN KEY(file2) REFERENCES file(id));
CREATE TABLE "function" (id INT,address1 BIGINT,address2 BIGINT,similarity DOUBLE PRECISION,confidence DOUBLE PRECISION,flags INTEGER,algorithm SMALLINT,evaluate BOOLEAN,commentsported BOOLEAN,basicblocks INTEGER,edges INTEGER,instructions INTEGER,UNIQUE(address1, address2),PRIMARY KEY(id),FOREIGN KEY(algorithm) REFERENCES functionalgorithm(id));
CREATE TABLE basicblock (id INT,functionid INT,address1 BIGINT,address2 BIGINT,algorithm SMALLINT,evaluate BOOLEAN,PRIMARY KEY(id),FOREIGN KEY(functionid) REFERENCES "function"(id),FOREIGN KEY(algorithm) REFERENCES basicblockalgorithm(id));
CREATE TABLE instruction (basicblockid INT,address1 BIGINT,address2 BIGINT,FOREIGN KEY(basicblockid) REFERENCES basicblock(id));

With "edges" meaning edges in the call graph. The actual instruction data that is displayed by the BinDiff UI is stored in the accompanying .BinExport files.

from binexport.

Manouchehri avatar Manouchehri commented on May 5, 2024

Thanks! I was able to figure out the SQL layout, it was just the purpose of the FortKnox stuff was confusing me.

from binexport.

Manouchehri avatar Manouchehri commented on May 5, 2024

Oops.

from binexport.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.