Use existing profiles via API

jgor's Avatar

jgor

02 Sep, 2016 06:34 PM

Is it possible to create scans using a profile that already exists in arachni_web, via an API? The REST API examples look like they define a new profile at scan creation time.

I'd also like to import a large number of scans into arachni_web and attach them to an existing profile. Using arachni_web_scan_import it appears to create a unique new profile for each scan imported.

Thanks!

  1. Support Staff 1 Posted by Tasos Laskos on 02 Sep, 2016 07:08 PM

    Tasos Laskos's Avatar

    Hello,

    The 2 interfaces aren't connected but you can export the profile from the WebUI (as JSON or something) and load it for use with the REST API.

    Also, you can't assign a profile to imported scans, each needs to create its own with the conf it was used in order to be reproducible.

    Cheers

  2. 2 Posted by jgor on 02 Sep, 2016 08:33 PM

    jgor's Avatar

    Ah, hmm. I was hoping to define multiple scans all pointing to a single conveniently-editable scan profile and automate kicking those scans off via an API, but it sounds like I've misunderstood the architecture.

    Just to confirm my understanding: there's no way to have a bunch of scans pointing to a central profile (whether it be WebUI or a .json file somwhere), and have API access to launch those scans?

  3. 3 Posted by jgor on 02 Sep, 2016 08:39 PM

    jgor's Avatar

    Or I guess a better clarifying question is, when you create a scan via WebUI and give it a profile to use, is that a pointer to the profile or a copy of that profile as it exists right then?

  4. Support Staff 4 Posted by Tasos Laskos on 03 Sep, 2016 12:36 PM

    Tasos Laskos's Avatar

    It's a pointer, but the REST API has nothing to do with the WebUI so you can't automate that aspect.

  5. Tasos Laskos closed this discussion on 22 Sep, 2016 09:13 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