Difference between revisions of "TruxtonMessage"

From truxwiki.com
Jump to navigation Jump to search
Line 17: Line 17:
 
==<code>queueempty</code>==
 
==<code>queueempty</code>==
 
==<code>routeid</code>==
 
==<code>routeid</code>==
 +
This integer represents the path that files should take through the exploitation phase.
 +
It should be a value in the <code>LoadConfigurationID</code> column of the <code>[[ETLRoute Table | ETLRoute]]</code> table.
 +
 
==<code>signature</code>==
 
==<code>signature</code>==
  

Revision as of 16:15, 27 May 2020

This class encapsulates the message object that is the basis for the Truxton's ETL pipeline.

Attributes and Methods

depotid

depotlength

depotname

depotoffset

dontroute

file()

fileid

filetype

hash

mediaid

parentid

priority

queueempty

routeid

This integer represents the path that files should take through the exploitation phase. It should be a value in the LoadConfigurationID column of the ETLRoute table.

signature

Sample

import truxton

def main():
  etl = truxton.etl()
  etl.name = "My New ETL"
  etl.description = "This ETL processes files in the Truxton system"
  etl.queue = "anewetl"
  etl.stage = 40
  etl.expanderid = 0x05fc0bf6a57726a0
  etl.version = 0
  etl.depot = "thumbnail"
  etl.depotype = truxton.DEPOT_TYPE_THUMBNAILS
  etl.poly = 0

  etl.addarg("--verbose")
  etl.addarg("Yes")

  etl.sendmefileid("5ecbebc4-9937-2b88-f691-91a800000024")
  etl.sendmehash("baa51f0cc8361660df911e06e7637485")
  etl.sendmefiles(truxton.Type_JPEGWithExif, 100)
  etl.sendmefiles(truxton.Type_TIFFWithExif, 500)
  etl.sendmelocalfile( "C:/Test Files/Video/Fragmented/Recovered Video.mp4", truxton.Type_MPEG4Video, 0 )

  message = etl.getmessage()

  while message is not None:
    file_in_truxton = message.file()

    # YOUR FORENSIC CODE GOES HERE

    line_of_text = file_in_truxton.readline()

    if "[SetupAPI" in line_of_text:
      child = file_in_truxton.newchild()
      child.name = "Child file from New ETL"
      child.write("This is the file you were looking for.")
      child.save()

if __name__ == "__main__":
  main()