May 21, 2012, 04:07:48 am
Home
Help
Search
Login
Register
Maltego Forum
»
Support
»
Help!
Additional Field Matching Rule
Username
1 Hour
1 Day
1 Week
1 Month
Forever
Password
Pages: [
1
]
« previous
next »
Print
Author
Topic: Additional Field Matching Rule (Read 24532 times)
RobertMcArdle
Newbie
Posts: 8
Additional Field Matching Rule
«
on:
January 10, 2011, 11:45:30 am »
Hi There
I'm trying to get my head around how the Matching Rules on Entities work. Take this code for example (its using my own Ruby version of the PHP/Python API - but its essentially the same)
transform = MaltegoTransform.new()
phrase1 = transform.addEntity("Phrase","Phrase1")
phrase1.addAdditionalFields("SampleField", "displayName", "strict", "value1")
phrase2 = transform.addEntity("Phrase","Phrase1")
phrase2.addAdditionalFields("SampleField", "displayName", "strict", "value2")
phrase3 = transform.addEntity("Phrase","Phrase2")
phrase3.addAdditionalFields("SampleField", "displayName", "strict", "value1")
transform.printOutput()
This will result in two outputted Entities - both will have a value of "Phrase1", and obviously different values for the field "FieldName"
However it will not create the third entity "Phrase2", I'm assuming because another phrase entity exists with the SampleField set to value1. But how can the two phrases match if the values are different (even if the SampleField is the same)
Any help would be great!
* Operating System - Windows
* Hardware Specs - Pretty Decent
* Java Version - most recent
* Maltego Version ( Help -> About Maltego ) - 3.0.847
«
Last Edit: January 10, 2011, 11:47:59 am by RobertMcArdle
»
Logged
AndrewMacPherson
Administrator
Full Member
Posts: 132
Re: Additional Field Matching Rule
«
Reply #1 on:
January 11, 2011, 09:32:29 am »
Hi Robert,
I have just recreated your test with the following code from the PHP library:
<snip>
$mt = new MaltegoTransform();
$NewEnt = $mt->addEntity("Phrase","Phrase1");
$NewEnt->addAdditionalFields("SampleField","displayName","strict","value1");
$NewEnt = $mt->addEntity("Phrase","Phrase1");
$NewEnt->addAdditionalFields("SampleField","displayName","strict","value2");
$NewEnt = $mt->addEntity("Phrase","Phrase2");
$NewEnt->addAdditionalFields("SampleField","displayName","strict","value1");
$mt->returnOutput();
</snip>
And it seems to return all 3 entities for me, so i recommend you first update your Maltego since i see the version you are using is relatively old and then try again, otherwise perhaps post your library as well and i will look into it for you.
Cheers,
-AM
Logged
RobertMcArdle
Newbie
Posts: 8
Re: Additional Field Matching Rule
«
Reply #2 on:
January 14, 2011, 12:12:22 pm »
Thanks Andrew - updating the version of Maltego did the trick
I've also add the Ruby Library -
http://www.paterva.com/forum//index.php/topic,210.0.html
Bob McArdle
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Announcements
-----------------------------
=> Announcements
-----------------------------
Support
-----------------------------
=> Feature Requests
-----------------------------
Maltego Graphs
-----------------------------
=> Interesting Graphs
-----------------------------
Support
-----------------------------
=> Help!
=> Links
-----------------------------
General
-----------------------------
=> General Discussions
-----------------------------
Development
-----------------------------
=> Local Transform Libs
=> Sample Transforms
=> General
=> User Transforms
=> Maltego Mesh
-----------------------------
TDS ( Transform distribution Server )
-----------------------------
=> General
=> Support
=> Code Samples
Loading...