tag:support.arachni-scanner.com,2012-07-01:/discussions/questions/13279-rpc-client-proxy-pluginArachni: Discussion 2017-05-12T12:40:41Ztag:support.arachni-scanner.com,2012-07-01:Comment/421662312017-03-16T00:03:50Z2017-03-16T11:07:52ZRPC client - proxy plugin<div><p>Hi there,</p>
<p>I had hard times to make proxy plugin w/the rpc client, i.e. :</p>
<ul>
<li>on 1.4x version process start w/status paused but does not open proxy port</li>
<li>on 1.5 and nightly 2.0-pre it throw some exception saying roughly :</li>
</ul>
<pre>
<code> [Arachni::RPC::Exceptions::RemoteException] undefined method `authentication_type=' for #<Arachni::OptionGroups::HTTP:0x000000022b42e0>
/system/usr/lib/ruby/2.2.0/uri/common.rb:715:in `URI': bad argument (expected URI object or URI string) (ArgumentError)</code>
</pre>
<p>for the record , the command line used :</p>
<pre>
<code>arachni_rpc --plugin 'proxy:bind_address=0.0.0.0' --checks=xss* --report-save-path=report_test.afr --dispatcher-url=dispatcher:7331 "http://test.url/"</code>
</pre>
<p>Any ideas of what I've missed ?</p>
<p>-- Regis A. Despres</p></div>Regis A. Desprestag:support.arachni-scanner.com,2012-07-01:Comment/421662312017-03-16T11:12:21Z2017-03-16T11:12:21ZRPC client - proxy plugin<div><p>Is there a backtrace to this exception?<br>
Also, what steps should I perform to trigger it?</p>
<p>Everything is working fine for me btw.</p></div>Tasos Laskostag:support.arachni-scanner.com,2012-07-01:Comment/421662312017-03-16T13:46:26Z2017-03-16T13:46:30ZRPC client - proxy plugin<div><p>Sure,</p>
<p>The overall 2.0 and 1.5 trace is here: <a href="https://zerobin.net/?0619c32686ad7ee1#4uwYCbU2fcG6mwROAyicpYdj1PgGT9kaLtDc+LaJzZM=">https://zerobin.net/?0619c32686ad7ee1#4uwYCbU2fcG6mwROAyicpYdj1PgGT...</a></p>
<p>The 1.4 behavior is here : <a href="https://zerobin.net/?96131b8e198d9cee#+T6Tg4YgRT4lNPLDyyP1xezJw2BQhj83HtejYXmYjBo=">https://zerobin.net/?96131b8e198d9cee#+T6Tg4YgRT4lNPLDyyP1xezJw2BQh...</a><br>
No proxy port opened.</p>
<p>Any way to debug more significantly ?</p>
<p>-- Regis A. Despres</p></div>Regis A. Desprestag:support.arachni-scanner.com,2012-07-01:Comment/421662312017-03-16T19:59:33Z2017-03-16T19:59:33ZRPC client - proxy plugin<div><p>I think you're using a v1.4 Dispatcher with a v1.5 client, that's why you're getting the errors.<br>
About the proxy, how do you know that the port hasn't opened?</p></div>Tasos Laskostag:support.arachni-scanner.com,2012-07-01:Comment/421662312017-03-16T20:20:06Z2017-03-16T20:20:10ZRPC client - proxy plugin<div><p>Hi,</p>
<p>You're right for the 1.5 RPC Client, RPCD is an Arachni 1.4 (ruby 2.2.3p173) [x86_64-linux]<br>
Regarding the 1.4 , neither netstat nor lsof shows a 8282 opened and the only one opened are from the jenkins that collocate in the container.<br>
How can I debug a little deeper ? =)</p>
<p>-- Regis A. Despres</p></div>Regis A. Desprestag:support.arachni-scanner.com,2012-07-01:Comment/421662312017-03-17T09:25:46Z2017-03-17T09:25:46ZRPC client - proxy plugin<div><p>Using the regular arachni executable would provide more info on what's going on.<br>
Also, did you try to actually connecting to the proxy?</p></div>Tasos Laskostag:support.arachni-scanner.com,2012-07-01:Comment/421662312017-03-21T08:54:09Z2017-03-21T08:54:10ZRPC client - proxy plugin<div><p>Sure I tried, that was the trigger of my investigations =)<br>
Regarding the "regular" arachnid executable, I'm sure of what you mean.<br>
If you're talking about the arachni file in the bin directory, it does not support the dispatcher-url option.<br>
In my use case, I try to use the proxy plugin in order to talk to a external grid; that's why I used the arachni_rpc .</p>
<p>-- Regis A. Despres</p></div>Regis A. Desprestag:support.arachni-scanner.com,2012-07-01:Comment/421662312017-03-21T10:51:44Z2017-03-21T10:51:44ZRPC client - proxy plugin<div><p>Did you try to connect to the right Grid node? The proxy will start there, not on your client machine.</p>
<p>A good question would be to which node you should connect, since the CLI utility doesn't print out which node provided the scanner Instance when in Grid mode, because your use-case hadn't occurred to me.</p></div>Tasos Laskos