Download Binary Analysis Tool User and Developer Manual
Transcript
B Scan configuration B.1 Global configuration . . . . . . . . . . . . B.1.1 multiprocessing and processors B.1.2 outputlite . . . . . . . . . . . . . B.1.3 XML pretty printing . . . . . . . . B.1.4 tempdir . . . . . . . . . . . . . . . B.1.5 debug and debugphases . . . . . . B.1.6 reporthash . . . . . . . . . . . . . B.1.7 Global environment variables . . . B.2 Viewer configuration . . . . . . . . . . . . B.3 Enabling and disabling scans . . . . . . . B.4 Blacklisting and whitelisting scans . . . . B.5 Passing environment variables . . . . . . . B.6 Scan names . . . . . . . . . . . . . . . . . B.7 Scan conflicts . . . . . . . . . . . . . . . . B.8 Storing results . . . . . . . . . . . . . . . B.9 Running setup code . . . . . . . . . . . . B.10 Database configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . C Analyser internals C.1 Code organisation . . . . . . . . . . . . . . C.2 Pre-run methods . . . . . . . . . . . . . . . C.2.1 Writing a pre-run method . . . . . . C.3 Unpackers . . . . . . . . . . . . . . . . . . . C.3.1 Writing an unpacker . . . . . . . . . C.3.2 Adding an identifier for a file system C.3.3 Blacklisting and priorities . . . . . . C.4 Leaf scans . . . . . . . . . . . . . . . . . . . C.4.1 Writing a leaf scan . . . . . . . . . . C.4.2 Pretty printing for leaf scans . . . . C.5 Aggregators . . . . . . . . . . . . . . . . . . C.5.1 Writing an aggregator . . . . . . . . C.6 Post-run methods . . . . . . . . . . . . . . . C.6.1 Writing a post-run method . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 17 17 17 17 18 18 18 18 18 19 19 19 19 19 20 20 20 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . or compressed file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 21 23 23 24 24 24 25 25 25 27 27 27 27 28 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . D Building binary packages of the Binary Analysis Tool D.1 Building packages for RPM based systems from releases . . . D.2 Building packages for RPM based systems from Subversion . D.2.1 Building bat . . . . . . . . . . . . . . . . . . . . . . . D.2.2 Building bat-extratools and bat-extratools-java D.3 Building packages for DEB based systems from releases . . . D.4 Building packages for DEB based systems from Subversion . . D.4.1 Building bat . . . . . . . . . . . . . . . . . . . . . . . D.4.2 Building bat-extratools and bat-extratools-java . . . . . . . . . . . . . . . . 28 28 28 28 29 29 29 29 30 E Binary Analysis Tool knowledgebase E.1 Generating the package list . . . . . . . . . . . . . . . . E.2 Creating the database . . . . . . . . . . . . . . . . . . . E.3 License extraction and copyright information extraction E.4 Converting the SQLite database to PostgreSQL . . . . . . . . . . . . . 30 30 31 33 34 . . . . . . . . . . . .