tag:support.arachni-scanner.com,2012-07-01:/discussions/questions/13309-how-can-im-optimise-my-request-rest-apiArachni: Discussion 2017-05-12T12:44:30Ztag:support.arachni-scanner.com,2012-07-01:Comment/423514772017-04-12T17:53:50Z2017-04-13T13:15:32ZHow can I'm optimise my request !? REST API <div><p>Hello please tell me what can I'm optimise in my request to REST API because scanner work fine but sometimes he get ERROR 500 CODE and I'm can't delete scan or do something maybe I'm have problem in my request! Please take a look.</p>
<pre>
<code>request = urllib2.Request(settings.rest_api_server_url[0] + "/scans")
request.add_header('Content-Type', 'application/json')
data = {'url': url, 'checks': ['sql_injection'],
"http": {
"user_agent": ["Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.1"]},
"audit": {"elements": ["links", "forms", "cookies", "headers", "jsons", "xmls", "ui_inputs", "ui_forms"]}}</code>
</pre>
<p>I'm search only for SQL Injections and need fast but very stable scan, what can I'm do better that scanner work more stable ?</p></div>arestonovtag:support.arachni-scanner.com,2012-07-01:Comment/423514772017-04-13T13:15:14Z2017-04-13T13:15:14ZHow can I'm optimise my request !? REST API <div><p>What does the error say?<br>
Also, the <code>user_agent</code> option expects a string, not an array of strings.</p></div>Tasos Laskostag:support.arachni-scanner.com,2012-07-01:Comment/423514772017-04-21T14:10:18Z2017-04-21T14:10:20ZHow can I'm optimise my request !? REST API <div><p>Hi, in the same way than arestonov : where can we find documentation that describes values we can affect to the POST data parameters?<br>
I also want to optimize my REST API scan (default values generate 100000 requests and this doesn't end up) and would try for example to change "check" parameter... but which different values are possible?</p>
<p>Thanks,</p>
<p>Dave</p></div>davetag:support.arachni-scanner.com,2012-07-01:Comment/423514772017-04-23T13:32:51Z2017-04-23T13:32:51ZHow can I'm optimise my request !? REST API <div><p>The <code>checks</code> parameter accepts the same values as the <code>--checks</code> CLI argument but as an array rather than CSV.</p>
<p>About option documentation, see:</p>
<ul>
<li><a href="https://github.com/Arachni/arachni/wiki/REST-API#perform-a-new-scan">https://github.com/Arachni/arachni/wiki/REST-API#perform-a-new-scan</a></li>
<li><a href="http://www.rubydoc.info/github/Arachni/arachni/Arachni/Options#update-instance_method">http://www.rubydoc.info/github/Arachni/arachni/Arachni/Options#upda...</a></li>
</ul></div>Tasos Laskos