WebUI - Adding Dispatcher ; the programatic way

arachni's Avatar

arachni

04 Mar, 2016 04:36 PM

Hi there,

Is there any way to add a dispatcher for the webui usage in a programatic way ?
I'd guess some bin/arachni_web_script and Arachni/RPC/Server/Dispatcher#initialize-instance_method usage could be done, but if someone has any best practive/guidance in this, it would be lovely =)

Regards,

Regis A. Despres

  1. Support Staff 1 Posted by Tasos Laskos on 04 Mar, 2016 04:42 PM

    Tasos Laskos's Avatar

    Not really, that's the way to do it, although you better use the arachni_rpcd executable to start a Dispatcher, then create the DB entry in the WebUI via arachni_web_script.

    Cheers

  2. Tasos Laskos closed this discussion on 04 Mar, 2016 04:42 PM.

  3. arachni re-opened this discussion on 04 Mar, 2016 05:01 PM

  4. 2 Posted by arachni on 04 Mar, 2016 05:01 PM

    arachni's Avatar

    Thanks for the very prompt reply !
    I have used arachni_rpcd.
    I'm a little bit more confused in order to achieve the DB insert , any clues ? =)

    Regards,

    Regis A. Despres

  5. Support Staff 3 Posted by Tasos Laskos on 04 Mar, 2016 05:05 PM

    Tasos Laskos's Avatar

    Are you familiar with Rails models at all?

  6. 4 Posted by arachni on 04 Mar, 2016 05:11 PM

    arachni's Avatar

    Hehe, I'm not an expert by my guess something you've already replied could apply =)
    cf. https://github.com/Arachni/arachni-ui-web/issues/73

    Dispatcher.create( address: 'localhost', port: 7331, global: true, alive: true, description: 'descr.', user_ids: [N] # userid to link dispatcher with ).save( validate: false )

  7. Support Staff 5 Posted by Tasos Laskos on 04 Mar, 2016 05:14 PM

    Tasos Laskos's Avatar

    Ah, yep, that's it. :)

  8. Tasos Laskos closed this discussion on 05 Mar, 2016 10:06 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac