Local transforms are pieces of code that run on the same machine which the client application is. Details on writing your own local transforms can be found on Paterva’s developer portal. This section will only explain how local transforms can be added to the Maltego client.
Clicking the Local Transform button will open the Local Transform Wizard. From here you will be greeted with the first screen of the wizard, this screen describes the Meta information as well as the Input entity type and Transform set.
- Meta Information - This is information describing the transform including the Display name, Description, Transform ID and Author
- Input Entity Type - This is the input entity that this transform will run on to return output.
- Transform Set - You can populate this if you want to automatically add this transform to a set.
An example of this screen populated is as follows:
The setup for Maltego is slightly more involved and you will be required to know the Command to execute, the Script name / Parameters and the Working Directory:
- Command: This is the interpreter or compiled application, for example the command for Python might be c:\Python26\Python.exe or /usr/bin/python.
- Script name / Parameters: If your executable takes parameters or if you are using an interpreted language such as Python you will set this field to one of these. For example, ours would be helloWorld.py if we are executing a Python script called helloWorld.py.
- Working Directory: This is the directory where the local scripts are stored.
An example of these fields populated are as follows:
Clicking finish will complete the wizard and add your local transform to the Maltego client.
From here you can simply drag in the entity you initially selected when adding the transform (in this example it is an Alias). There will now be a Local Transform item in the top level of the transform hub:
Clicking Local Transforms in the context menu will show the local transform that was just added to the Maltego client: