Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A couple questions about the go libs for maltego. #1

Open
r3k2 opened this issue Sep 12, 2017 · 6 comments
Open

A couple questions about the go libs for maltego. #1

r3k2 opened this issue Sep 12, 2017 · 6 comments

Comments

@r3k2
Copy link

r3k2 commented Sep 12, 2017

Was looking at the python api and it has some getVar and things like that but not sure if this is what I need for:

  • how do i enter another input? lets say I need the domain but I manually want to enter the ports to scan? (to start a nmap scan from a domain)
  • how do I get values from other results chain up? as in domain--->IP--port--- now I write a transfrom that I need the result from IP and PORT to pass to my go code..(to for example run nikto or any other tool that needs port/ip)

now sure if there is any other go lib for maltego but if you know of anyone that is updated please let me know.

@glennzw
Copy link
Owner

glennzw commented Sep 12, 2017 via email

@r3k2
Copy link
Author

r3k2 commented Sep 12, 2017

Hello Glenn thanks for your response, Yeah I was trying to replicate the python examples on maltego docs with no success using the properties.. I was trying something like that with like Host := lt.getProperties("propertyname") with no luck.
in my nmap transform I added a new dynamic propertie called Host where is included the actuall IP(in my case) but using the GO examples can't seem to get the getProperties to work right.
/opt/Maltego/maltego-nikto/main.go:31:15: lt.GetProperty undefined (type maltegogo.LocalTransform has no field or method GetProperty)

lt := maltegogo.ParseLocalArguments(os.Args)
  Port := lt.Value
  Host := lt.GetProperty("Host")
  var result string
 run_nikto(Host, Port)

do the transform stuff here...

@r3k2
Copy link
Author

r3k2 commented Sep 15, 2017

Hello @glennzw have any examples using the example code you already have since I was using that as base? thanks

@r3k2
Copy link
Author

r3k2 commented Sep 25, 2017

@glennzw knock knock sorry to keep reminding, trying to learn how to use this. thanks.

@r3k2
Copy link
Author

r3k2 commented Jan 30, 2019

Hello is this project alive? I see no updates and I came back see if GO had more support after 1 year see if I can finally do what I want. thanks @glennzw

@r3k2
Copy link
Author

r3k2 commented Jan 31, 2019

Hi there. You can't get data from parent nodes (or any children). What I usually do is pass data I need down the tree, so for example if you do "Get Ports" from a domain then include the domain in the new port entities as additional properties. HTH, Glenn

On 12 Sep 2017, at 13:49, Fernandez, Chris, ReK2 @.***> wrote: Was looking at the python api and it has some getVar and things like that but not sure if this is what I need for: how do i enter another input? lets say I need the domain but I manually want to enter the ports to scan? (to start a nmap scan from a domain) how do I get values from other results chain up? as in domain--->IP--port--- now I write a transfrom that I need the result from IP and PORT to pass to my go code..(to for example run nikto or any other tool that needs port/ip now sure if there is any other go lib for maltego but if you know of anyone that is updated please let me know. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

I was able to find examples on the main documentation on how to do this with python, and I started to read your functions and the GetProperties is under a MaltegoMsgObj method.

func (m *MaltegoMsgObj) GetProperty(p string) string {

I am trying to do something like

Host := MaltegoMsgObj.GetProperty("Host")

I have this at home and now im at work so I know im missing something there but hope you get the idea of what im trying to do.. basically as you said I moved the Host ip property down to the port entity so then when I select it and click on my transform I get the default event that is the port and also a property called Host with the ip.. so I can use both on my transform.

thanks
@glennzw

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants