Coder Social home page Coder Social logo

Multiple input entities about canari HOT 3 CLOSED

allfro avatar allfro commented on August 24, 2024
Multiple input entities

from canari.

Comments (3)

mattnewham avatar mattnewham commented on August 24, 2024

This could be related to my issue if confirmed
On 11 Mar 2013 12:47, "Christian Koepp" [email protected] wrote:

I've got a problem with multiple entities as input for one transform. It
seems that canari only installs a transform for the very first entity in
the inputs-list.

My configuration looks like this:

from canari.maltego.entities import Person, EmailAddress

...

@configure(
label='To Dummy [Dummy]',
description='Returns a Dummy entity"',
uuids=[ 'dummy.v2.ToDummy' ],
inputs=[ ( 'Maltego.Person', Person ), ( 'Maltego.EmailAddress', EmailAddress ) ],
debug=True
)

Installing went fine but I'm only able to use this transform on
Maltego.Person. There is no such option with Maltego.EmailAddress

I should add that I'm limited to Maltego on Windows currently and I
haven't verified it on a Linux system yet.


Reply to this email directly or view it on GitHubhttps://github.com//issues/10
.

from canari.

allfro avatar allfro commented on August 24, 2024

Hi @ckoepp

You have to match the number of uuids in @configure to the number of inputs. For example:

from canari.maltego.entities import Person, EmailAddress

# ...

@configure(
    label='To Dummy [Dummy]',
    description='Returns a Dummy entity"',
    uuids=[ 'dummy.v2.ToDummy' , 'dummy.v2.ToDummy2' ],
    inputs=[ ( 'Maltego.Person', Person ), ( 'Maltego.EmailAddress', EmailAddress ) ],
    debug=True
)

This is necessary because Maltego treats the transform as two different transforms even though only one piece of code is being executed.

from canari.

ckoepp avatar ckoepp commented on August 24, 2024

Well, that indeed makes sense :)
Thanks for the hint!

from canari.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.