Comments (4)
Hello,
Canari allows you to use something called multenterbox which will pop up when you run a transform and allow the user to specify fields that can then be used in your transform. This is a code snippet from one of my transforms.
from canari.easygui import multenterbox
msg = 'Enter Search Criteria'
title = 'L0 - Simple pcap search [SmP]'
fieldNames = ["Source", "Destination", "Port", "Free Text"]
fieldValues = []
fieldValues = multenterbox(msg, title, fieldNames)
This shows a box with 4 parameter fields which you then reference in your transform like this:
s_ip = fieldValues[0]
The full code is here:
Let me know if that helps or not.
from canari.
Thanks @catalyst256,
But there is also another way which actually passes parameters via the command line if you want. The way to do that is to go into the transform manager in Maltego, select the local transform you want to pass parameters to. Then under 'Command parameters' enter your command line arguments after the transform name. For example, 'my.transforms.transform -P -s blah'. This will populate the request.params field. Although this is supported, it is not necessarily great for transforms that are going to be strictly local. You might want to look at what @catalyst256 is suggesting for UI friendliness :)
from canari.
Thanks for the quick answer, I've tried the solution of @catalyst256 and I get the next exception:
Can't find a usable init.tcl in the following directories:
C:/Ruby193/lib/tcl8.5 C:/lib/tcl8.5 C:/lib/tcl8.5 C:/library C:/library C:/tcl8.5.12/library C:/tcl8.5.12/library
This probably means that Tcl wasn't installed properly.
Do I have to install anything?
from canari.
ok, the problem was my python version. Thanks a lot @catalyst256, this is exactly that I wanted to do
Cheers
from canari.
Related Issues (20)
- Dynamic Properties of Maltego Entities HOT 2
- Error on every MaltegoException() HOT 2
- Enterbox with remember settings HOT 2
- TDS Section of "5. Transform Development Quick-Start"
- canari create-package produces entities.py with broken namespace HOT 1
- transform.local.command property of transform set to homebrew's python bin directory HOT 1
- Failing to parse Maltego transform request message HOT 2
- TypeError raised in `canari create-profile sploitego` after commit 31dae7c HOT 6
- Documentation out of date on Plume and V3 transforms HOT 6
- create-profile invalid command HOT 2
- generate-entities failing with multiple properties HOT 1
- entity properties with newlines not passed properly on windows
- how do i request value from user through the dialog box? HOT 4
- "create-profile" error when importing Maltego .mtz file containing Icons folder
- Transform To Technology [P0f] returned with an error HOT 3
- install-package throws OSError: [Errno 2] No such file or directory HOT 1
- Is this dead or alive?
- Further segmenting transforms directories / Transforms Sets
- Hash entity missing hash type field
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from canari.