Sometimes we need to run only in a specific window of time, and making Arachni "terminate" correctly without killing it will be awesome.
You got it.
PS. Unfortunately, it's too late for v0.4.3.
Btw, this feature is good for cases when Arachni get a infinite looping. Happy you accepted, thx.
This is for just the CLI interface right? Otherwise it wouldn't make much sense.
I think CLI and RPC, for the GUI doesn't make sense for me too.
When you say RPC you mean the Instances in general or the arachni_rpc CLI client? Because the former is impossible.
Instances in general. In my case I'll use in only in CLI version.
Yeah that's impossible, RPC instances are being controlled by a client, the client will need to keep track of the time that has elapsed so that it can abort the scan, retrieve the report and shutdown the Instance. If the Instance were to shut itself down the client wouldn't get a chance to grab the report.
I will implement this in the UIs though so it should cover you.
This will have to wait for Arachni/arachni-rpc#1 in order to be implemented globally and in a clean manner.
I think it's time to at last implement this. And now that hibernation has been implemented, you'll be able to chose to hibernate after the timeout has been reached, so that you'll be able to continue if need be.
Sorry it took me so long to get to this.