0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Maltego Transform開発メモ AddUIMessage(msg, type)

Posted at

AddUIMessageのメモ

from maltego_trx.maltego import UIM_FATAL, UIM_PARTIAL, UIM_INFORM, UIM_DEBUG
from maltego_trx.transform import DiscoverableTransform

class Experimental(DiscoverableTransform):
    @classmethod
    def create_entities(cls, request, response):
      response.addUIMessage("UIM_FATAL", UIM_FATAL)
      response.addUIMessage("UIM_PARTIAL", UIM_PARTIAL)
      response.addUIMessage("UIM_INFORM", UIM_INFORM)
      response.addUIMessage("UIM_DEBUG", UIM_DEBUG)
      #おまけ
      response.addException("Dummy Error")

上記を実行すると以下のように表示される
image.png

  • UIM_FATAL はポップアップも表示される
    image.png

  • UIM_DEBUGはデフォルトの設定では表示されない。フィルターで表示させる必要がある
    image.png

  • addExceptionはどこに表示されるか不明。var/log/messages.logにも出てこなかった。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?