MaltegoTech / maltego-trx

Maltego Transform library for Python
MIT License
218 stars 45 forks source link

[Bug/Regression?] UIM_DEBUG not doing anything #17

Closed tbennett6421 closed 3 years ago

tbennett6421 commented 3 years ago

UIM_DEBUG appears to not be valid for use anymore

Python: Python 3.6.8 Library: maltego-trx==1.3.7 Client: Maltego One 4.2.14.13579 Enterprise

Sample Code Snippet from transform

from maltego_trx.maltego import UIM_FATAL,UIM_PARTIAL,UIM_INFORM,UIM_DEBUG
response.addUIMessage("Hello FATAL World", UIM_FATAL)
response.addUIMessage("Hello PARTIAL World", UIM_PARTIAL)
response.addUIMessage("Hello INFORM World", UIM_INFORM)
response.addUIMessage("Hello DEBUG World", UIM_DEBUG)

from maltego_trx.maltego import UIM_TYPES
response.addUIMessage("Hello FATAL World", UIM_TYPES['fatal'])
response.addUIMessage("Hello PARTIAL World", UIM_TYPES['partial'])
response.addUIMessage("Hello INFORM World", UIM_TYPES['inform'])
response.addUIMessage("Hello DEBUG World", UIM_TYPES['debug'])

Output - Transform Output

Running transform [AV] AKAToEmailAddress on 1 entities (from entity "aka007")
Hello FATAL World (from entity "aka007")
Hello PARTIAL World (from entity "aka007")
Hello INFORM World (from entity "aka007")
Hello FATAL World (from entity "aka007")
Hello PARTIAL World (from entity "aka007")
Hello INFORM World (from entity "aka007")
Transform [AV] AKAToEmailAddress returned with 1 entities (from entity "aka007")
Transform [AV] AKAToEmailAddress done (from entity "aka007")

image

totakura commented 3 years ago

@hlawatjt bringing this to your attention.

hlawatjt commented 3 years ago

@tbennett6421, @totakura,

Debugging is still supported. In order to see the debug messages in the Maltego Desktop Client Output window, enable debug in the filter settings. image