Difference between revisions of "Python Sample Triage File"

From truxwiki.com
Jump to navigation Jump to search
(Created page with "This sample shows how to add files and folders to be included in a Triage load. You can also see how to do this in C. =Add to a Triage...")
 
Line 24: Line 24:
 
     sys.exit(main())
 
     sys.exit(main())
 
</source>
 
</source>
 +
 +
The magic values for the first parameter to <code>addtriagefile()</code> can be found [[TriageFile_Table#Type|here]].

Revision as of 16:49, 11 September 2024

This sample shows how to add files and folders to be included in a Triage load. You can also see how to do this in C.

Add to a Triage Load

This will add records to the [TriageFile] table. It allows you to specify the files and folders where evidence may be found.

import sys
sys.path.append('C:/Program Files/Truxton/SDK')
import truxton

def main():
  t = truxton.create()

  t.addtriagefile( 1, "bluetooth_device_map.xml", "Phonebook Access Permissions", "This is a source of MAC addresses" );
  t.addtriagefile( 2, "MySecrets", "MySecrets application data folder", "Things the user wants to be hidden" );
  t.addtriagefile( 5, "dumpstate-2.*\\.txt$", "Android Bug Report", "We can get SSIDs out of this file" );
  t.addtriagefile( 6, "ch.protonmail.android/databases.*", "Proton Mail", "Proton is a privacy oriented service" );

  return None

if __name__ == "__main__":
    sys.exit(main())

The magic values for the first parameter to addtriagefile() can be found here.