Documentation
¶
Index ¶
- Constants
- type AdditionalFields
- type Entities
- type Entity
- type Field
- type Limit
- type LocalTransform
- type MaltegoEntityObj
- func (m *MaltegoEntityObj) AddDisplayInformation(di, dl string)
- func (m *MaltegoEntityObj) AddProperty(fieldName, displayName, matchingRule, value string)
- func (m *MaltegoEntityObj) ReturnEntity() string
- func (m *MaltegoEntityObj) SetBookmark(bookmark string)
- func (m *MaltegoEntityObj) SetIconURL(iU string)
- func (m *MaltegoEntityObj) SetLinkColor(color string)
- func (m *MaltegoEntityObj) SetLinkLabel(label string)
- func (m *MaltegoEntityObj) SetLinkStyle(style string)
- func (m *MaltegoEntityObj) SetLinkThickness(thick int)
- func (m *MaltegoEntityObj) SetNote(note string)
- func (m *MaltegoEntityObj) SetType(eT string)
- func (m *MaltegoEntityObj) SetValue(eV string)
- func (m *MaltegoEntityObj) SetWeight(w int)
- type MaltegoMessage
- type MaltegoMsgObj
- type MaltegoTransform
- func (m *MaltegoTransform) AddEntity(enType, enValue string) *MaltegoEntityObj
- func (m *MaltegoTransform) AddException(exceptionString, code string)
- func (m *MaltegoTransform) AddUIMessage(message, messageType string)
- func (m *MaltegoTransform) ReturnOutput() string
- func (m *MaltegoTransform) ThrowExceptions() string
- type MaltegoTransformRequestMessage
Constants ¶
View Source
const ( BOOKMARK_COLOR_NONE = "-1" BOOKMARK_COLOR_BLUE = "0" BOOKMARK_COLOR_GREEN = "1" BOOKMARK_COLOR_YELLOW = "2" BOOKMARK_COLOR_ORANGE = "3" BOOKMARK_COLOR_RED = "4" LINK_STYLE_NORMAL = "0" LINK_STYLE_DASHED = "1" LINK_STYLE_DOTTED = "2" LINK_STYLE_DASHDOT = "3" UIM_FATAL = "FatalError" UIM_PARTIAL = "PartialError" UIM_INFORM = "Inform" UIM_DEBUG = "Debug" )
Set constants
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdditionalFields ¶
type AdditionalFields struct {
FieldList []Field `xml:"Field"`
}
type LocalTransform ¶
4. Handle local transform from stdin
func ParseLocalArguments ¶
func ParseLocalArguments(args []string) LocalTransform
type MaltegoEntityObj ¶
type MaltegoEntityObj struct {
AdditionalFields [][]string
// contains filtered or unexported fields
}
func MaltegoEntity ¶
func MaltegoEntity(eT string, eV string) *MaltegoEntityObj
Constructor for MaltegoEntityObj
func (*MaltegoEntityObj) AddDisplayInformation ¶
func (m *MaltegoEntityObj) AddDisplayInformation(di, dl string)
func (*MaltegoEntityObj) AddProperty ¶
func (m *MaltegoEntityObj) AddProperty(fieldName, displayName, matchingRule, value string)
func (*MaltegoEntityObj) ReturnEntity ¶
func (m *MaltegoEntityObj) ReturnEntity() string
func (*MaltegoEntityObj) SetBookmark ¶
func (m *MaltegoEntityObj) SetBookmark(bookmark string)
func (*MaltegoEntityObj) SetIconURL ¶
func (m *MaltegoEntityObj) SetIconURL(iU string)
func (*MaltegoEntityObj) SetLinkColor ¶
func (m *MaltegoEntityObj) SetLinkColor(color string)
func (*MaltegoEntityObj) SetLinkLabel ¶
func (m *MaltegoEntityObj) SetLinkLabel(label string)
func (*MaltegoEntityObj) SetLinkStyle ¶
func (m *MaltegoEntityObj) SetLinkStyle(style string)
func (*MaltegoEntityObj) SetLinkThickness ¶
func (m *MaltegoEntityObj) SetLinkThickness(thick int)
func (*MaltegoEntityObj) SetNote ¶
func (m *MaltegoEntityObj) SetNote(note string)
func (*MaltegoEntityObj) SetType ¶
func (m *MaltegoEntityObj) SetType(eT string)
2. Setter and Getter functions for MaltegoEntityObjs
func (*MaltegoEntityObj) SetValue ¶
func (m *MaltegoEntityObj) SetValue(eV string)
func (*MaltegoEntityObj) SetWeight ¶
func (m *MaltegoEntityObj) SetWeight(w int)
type MaltegoMessage ¶
type MaltegoMessage struct {
XMLName xml.Name `xml:"MaltegoMessage"`
MTRM MaltegoTransformRequestMessage
}
Here we have the XML structs to map to
type MaltegoMsgObj ¶
type MaltegoMsgObj struct {
Value string
Weight string
Slider string //Forgot to implement the XML for this
Type string
Properties map[string]string
TransformSettings map[string]string //Forgot to implement the XML for this
}
Code to parse Maltego XML Input
func (*MaltegoMsgObj) GetProperty ¶
func (m *MaltegoMsgObj) GetProperty(p string) string
func (*MaltegoMsgObj) GetTransformSetting ¶
func (m *MaltegoMsgObj) GetTransformSetting(t string) string
type MaltegoTransform ¶
type MaltegoTransform struct {
UIMessages [][]string
// contains filtered or unexported fields
}
Next we handle the MalteoTransform class from Python
func (*MaltegoTransform) AddEntity ¶
func (m *MaltegoTransform) AddEntity(enType, enValue string) *MaltegoEntityObj
func (*MaltegoTransform) AddException ¶
func (m *MaltegoTransform) AddException(exceptionString, code string)
func (*MaltegoTransform) AddUIMessage ¶
func (m *MaltegoTransform) AddUIMessage(message, messageType string)
func (*MaltegoTransform) ReturnOutput ¶
func (m *MaltegoTransform) ReturnOutput() string
func (*MaltegoTransform) ThrowExceptions ¶
func (m *MaltegoTransform) ThrowExceptions() string
Click to show internal directories.
Click to hide internal directories.
