Difference between revisions of "Truxton C API"

From truxwiki.com
Jump to navigation Jump to search
Line 104: Line 104:
  
 
==File IO==
 
==File IO==
* [[truxton_file_open_id]]
+
* [[truxton_file_open_id]] - Retrieves a particular file specified by the file's [https://en.wikipedia.org/wiki/Universally_unique_identifier GUID..
* [[truxton_file_open_md5]]
+
* [[truxton_file_open_md5]] - Retrieves the first file in Truxton whose contents have the given [https://en.wikipedia.org/wiki/MD5 MD5] hash.
* [[truxton_file_close]]
+
* [[truxton_file_close]] - Closes the contents. You will no longer be able to read from the file.
* [[truxton_file_free]]
+
* [[truxton_file_free]] - Deallocates any resources allocated for this object. The file is no longer valid after this call.
* [[truxton_file_tell]]
+
* [[truxton_file_tell]] - Returns the current file pointer position.
* [[truxton_file_length]]
+
* [[truxton_file_length]] - Returns the number of bytes in the file's contents.
* [[truxton_file_is_closed]]
+
* [[truxton_file_is_closed]] - Tells you if the file has been closed or not.
* [[truxton_file_seek]]
+
* [[truxton_file_seek]] - Changes the file pointer.
* [[truxton_file_readline]]
+
* [[truxton_file_readline]] - Reads a single line of text from the file.
* [[truxton_file_read]]
+
* [[truxton_file_read]] - Reads bytes from the file.
  
 
==File Record Fields==
 
==File Record Fields==

Revision as of 03:53, 13 June 2020

Truxton functionality is exposed to the C programming world as a DLL named TruxtonCAPI.dll in the C:\Program Files\Truxton\SDK folder. This DLL can be called from any programming language that has the ability to make operating system calls.

Philosophy

The API is considered to be "flat" in that only sixty-four bit integers and ASCII character strings are used in the interface. This was chosen to make it easy for other languages to interface to. The coding convention is all lower case names with underscores separating words. Truxton is a member of the east const posse.

API Groups

The API is broken down into the different areas of Truxton.

Initialization

Functions

ETL Functions

Child Files

A child file is one that you have created and need to save in Truxton.

Creating things related to this file:

File IO

File Record Fields

Create Objects from File

The following APIs are used to create objects with a file as their parent.

ETL Creation

The following APIs are used to extend Truxton by creating an exploitation process.

Debugging

Message

String Map

File Export

Artifacts

Event

EXIF (Camera Information)

File Type

Geographic Location

Relation

Website Visit

USB Device