tag:support.arachni-scanner.com,2012-07-01:/discussions/questions/643-how-to-use-proxy-on-mac-via-web-uiArachni: Discussion 2013-07-11T13:48:34Ztag:support.arachni-scanner.com,2012-07-01:Comment/276588772013-07-07T22:16:55Z2013-07-07T22:20:19ZHow to use proxy on mac via Web UI<div><p>The way this works is that Dispatchers provide you with
Instances, those Instances are the actual scanners and have/run all
the plugins. So, when you configure the proxy plugin, it'll run on
the machine on which the Instance is running -- that'll be the
machine of the Dispatcher you chose[1].</p>
<p>So when you configure your browser, you pass the IP address of
the Dispatcher and the port you selected for the proxy.<br>
Also, you'll have to use a different instance of your browser (or a
different browser altogether) for the proxy since otherwise all
traffic will pass through it and you won't be able to access the
Web interface.<br>
Or exclude the IP address of the WebUI from being proxied, if your
browser provides for such an option.</p>
<p>I'll keep this issue open while you try this out in case you
have any more questions.</p>
<p>Cheers</p>
<p>[1] Unless you messed with the Grid settings or anything but I'm
assuming that you're running a normal scan.</p></div>Tasos Laskostag:support.arachni-scanner.com,2012-07-01:Comment/276588772013-07-07T22:21:55Z2013-07-07T22:23:06ZHow to use proxy on mac via Web UI<div><p>Ah, I forgot to mention, if all you need to do is authenticate
yourself, you can use the autologin plugin, it doesn't require any
user interaction once you configure it.</p>
<p>You can find instructions for all the available ways you can
login here: <a href=
"http://support.arachni-scanner.com/kb/general-use/logging-in-and-maintaining-a-valid-session">
http://support.arachni-scanner.com/kb/general-use/logging-in-and-ma...</a></p></div>Tasos Laskostag:support.arachni-scanner.com,2012-07-01:Comment/276588772013-07-08T06:16:42Z2013-07-08T06:16:43ZHow to use proxy on mac via Web UI<div><p>Good Morning Tasos,</p>
<p>Thanks for quick reply. I am now just using the linux machine
(mac had some issues to finish scans). Both the arachni_web and
arachni_rpcd are running on linux machine..</p>
<p>I am using firefox to get the proxy and using chrome to access
arachni WebUI. I gave the ip and port of the dispatcher machine to
ff with proxy but it is not working.</p>
<p>The application I am trying to scan using ajax to login so I
need to catch the login request via proxy. or I need to provide the
session ID or a cookie I guess.</p>
<p>Are there any chance to use the cookies or session id via
WebUI?</p>
<p>But first I would like to use the proxy for training the
applicaiton.</p>
<p>PS: I might have some other questions about Royal Holloway in
future :) I'll try to reach you by email.</p>
<p>Thanks in advance.</p></div>Ozhantag:support.arachni-scanner.com,2012-07-01:Comment/276588772013-07-08T11:45:48Z2013-07-08T11:50:26ZHow to use proxy on mac via Web UI<div><p>Hi,</p>
<p>Not sure if you meant to write that or not but just to make
sure, you don't pass the port of the Dispatcher, you pass the port
with which you configured the proxy (<code>8282</code> by
default).</p>
<p>And yeah the profiles have cookies option under the HTTP
section.</p>
<p>Cheers</p>
<p>PS. Sure think, drop me a line.</p></div>Tasos Laskostag:support.arachni-scanner.com,2012-07-01:Comment/276588772013-07-08T13:06:53Z2013-07-08T13:06:54ZHow to use proxy on mac via Web UI<div><p>Hi again,</p>
<p>Sorry my message was not clear. I am passing the port of the
proxy as 8284. I am not able to connect to the proxy with the other
pc.</p>
<p>The linux machine(running the webUI and dispatcher) is on the ip
192.168.0.26 and I am on a windows machine with firefox
192.168.0.20.</p>
<p>In the WebUI I selected in the proxy menu as for;<br>
Port to bind to (port):8284<br>
IP address to bind to (bind_address): 192.168.0.26<br>
(session_token): is empty timeout: 20000</p>
<p>Also I couldn't find the cookies under HTTP section in
profiles.<br>
I just have<br>
Http req limit:<br>
User agent:<br>
Request timeout:</p>
<p>then Auditor starts.</p>
<p>Thanks again :)</p></div>Ozhantag:support.arachni-scanner.com,2012-07-01:Comment/276588772013-07-08T13:11:47Z2013-07-08T13:11:49ZHow to use proxy on mac via Web UI<div><p>Sorry my bad about the cookies I found it :)</p></div>Ozhantag:support.arachni-scanner.com,2012-07-01:Comment/276588772013-07-08T14:00:14Z2013-07-08T14:00:14ZHow to use proxy on mac via Web UI<div><p>Wait, the audit shouldn't start automatically if the proxy
plugin has been enabled. Once you start the scan, it should
immediately be in a paused state.<br>
Are you sure you're using the correct profile for the scan, as in,
the one you configured with the proxy?</p>
<p>This may sound silly, but, did you actually check the checkbox
for the proxy plugin or just fill in its configuration options?</p></div>Tasos Laskostag:support.arachni-scanner.com,2012-07-01:Comment/276588772013-07-08T17:03:34Z2013-07-08T17:03:36ZHow to use proxy on mac via Web UI<div><p>I am also using the spider. Should I set link count limit to
0?</p>
<p>using correct profile and checked the checkbox for proxy
plugin.</p>
<p>I am also having some trouble that stops arachni_web (quits from
process and returns to shell) but if I notice it I start it again
on the same terminal and it seems like it can continue where it
stopped.</p>
<pre>
<code>192.168.0.20 - - [08/Jul/2013 18:06:58] "GET /navigation HTTP/1.1" 304 - 0.0725
192.168.0.20 - - [08/Jul/2013 18:06:59] "GET /scans/6.js?overview=false&amp;scan_id=6&amp;tab=all HTTP/1.1" 200 - 0.2438
192.168.0.20 - - [08/Jul/2013 18:07:03] "GET /navigation HTTP/1.1" 304 - 0.1623
192.168.0.20 - - [08/Jul/2013 18:07:04] "GET /scans/6.js?overview=false&amp;scan_id=6&amp;tab=all HTTP/1.1" 200 - 0.5469
/root/Desktop/arc/system/gems/gems/sqlite3-1.3.7/lib/sqlite3/statement.rb:108:in `step': SQLite3::CantOpenException: unable to open database file: UPDATE "dispatchers" SET "updated_at" = ?, "statistics" = ? WHERE "dispatchers"."id" = 1 (ActiveRecord::StatementInvalid)
from /root/Desktop/arc/system/gems/gems/sqlite3-1.3.7/lib/sqlite3/statement.rb:108:in `block in each'
from /root/Desktop/arc/system/gems/gems/sqlite3-1.3.7/lib/sqlite3/statement.rb:107:in `loop'
from /root/Desktop/arc/system/gems/gems/sqlite3-1.3.7/lib/sqlite3/statement.rb:107:in `each'
from /root/Desktop/arc/system/gems/gems/activerecord-4.0.0/lib/active_record/connection_adapters/sqlite3_adapter.rb:313:in `to_a'
from /root/Desktop/arc/system/gems/gems/activerecord-4.0.0/lib/active_record/connection_adapters/sqlite3_adapter.rb:313:in `block in exec_query'
from /root/Desktop/arc/system/gems/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract_adapter.rb:425:in `block in log'
from /root/Desktop/arc/system/gems/gems/activesupport-4.0.0/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
from /root/Desktop/arc/system/gems/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract_adapter.rb:420:in `log'
from /root/Desktop/arc/system/gems/gems/activerecord-4.0.0/lib/active_record/connection_adapters/sqlite3_adapter.rb:292:in `exec_query'
from /root/Desktop/arc/system/gems/gems/activerecord-4.0.0/lib/active_record/connection_adapters/sqlite3_adapter.rb:318:in `exec_delete'
from /root/Desktop/arc/system/gems/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract/database_statements.rb:102:in `update'
from /root/Desktop/arc/system/gems/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `update'
from /root/Desktop/arc/system/gems/gems/activerecord-4.0.0/lib/active_record/persistence.rb:489:in `update_record'
from /root/Desktop/arc/system/gems/gems/activerecord-4.0.0/lib/active_record/locking/optimistic.rb:70:in `update_record'
from /root/Desktop/arc/system/gems/gems/activerecord-4.0.0/lib/active_record/attribute_methods/dirty.rb:74:in `update_record'
from /root/Desktop/arc/system/gems/gems/activerecord-4.0.0/lib/active_record/callbacks.rb:307:in `block in update_record'
from /root/Desktop/arc/system/gems/gems/activesupport-4.0.0/lib/active_support/callbacks.rb:373:in `_run__31252317__update__callbacks'
from /root/Desktop/arc/system/gems/gems/activesupport-4.0.0/lib/active_support/callbacks.rb:80:in `run_callbacks'
from /root/Desktop/arc/system/gems/gems/activerecord-4.0.0/lib/active_record/callbacks.rb:307:in `update_record'
from /root/Desktop/arc/system/gems/gems/activerecord-4.0.0/lib/active_record/timestamp.rb:70:in `update_record'
from /root/Desktop/arc/system/gems/gems/activerecord-4.0.0/lib/active_record/persistence.rb:466:in `create_or_update'
from /root/Desktop/arc/system/gems/gems/activerecord-4.0.0/lib/active_record/callbacks.rb:299:in `block in create_or_update'
from /root/Desktop/arc/system/gems/gems/activesupport-4.0.0/lib/active_support/callbacks.rb:403:in `_run__31252317__save__callbacks'
from /root/Desktop/arc/system/gems/gems/activesupport-4.0.0/lib/active_support/callbacks.rb:80:in `run_callbacks'
from /root/Desktop/arc/system/gems/gems/activerecord-4.0.0/lib/active_record/callbacks.rb:299:in `create_or_update'
from /root/Desktop/arc/system/gems/gems/activerecord-4.0.0/lib/active_record/persistence.rb:106:in `save'
from /root/Desktop/arc/system/gems/gems/activerecord-4.0.0/lib/active_record/validations.rb:51:in `save'
from /root/Desktop/arc/system/gems/gems/activerecord-4.0.0/lib/active_record/attribute_methods/dirty.rb:32:in `save'
from /root/Desktop/arc/system/gems/gems/activerecord-4.0.0/lib/active_record/transactions.rb:270:in `block (2 levels) in save'
from /root/Desktop/arc/system/gems/gems/activerecord-4.0.0/lib/active_record/transactions.rb:326:in `block in with_transaction_returning_status'
from /root/Desktop/arc/system/gems/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract/database_statements.rb:202:in `block in transaction'
from /root/Desktop/arc/system/gems/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract/database_statements.rb:210:in `within_new_transaction'
from /root/Desktop/arc/system/gems/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract/database_statements.rb:202:in `transaction'
from /root/Desktop/arc/system/gems/gems/activerecord-4.0.0/lib/active_record/transactions.rb:209:in `transaction'
from /root/Desktop/arc/system/gems/gems/activerecord-4.0.0/lib/active_record/transactions.rb:323:in `with_transaction_returning_status'
from /root/Desktop/arc/system/gems/gems/activerecord-4.0.0/lib/active_record/transactions.rb:270:in `block in save'
from /root/Desktop/arc/system/gems/gems/activerecord-4.0.0/lib/active_record/transactions.rb:281:in `rollback_active_record_state!'
from /root/Desktop/arc/system/gems/gems/activerecord-4.0.0/lib/active_record/transactions.rb:269:in `save'
from /root/Desktop/arc/system/arachni-ui-web/app/models/dispatcher.rb:205:in `block in refresh'
from /root/Desktop/arc/system/gems/gems/arachni-rpc-em-0.2/lib/arachni/rpc/em/client/handler.rb:82:in `call'
from /root/Desktop/arc/system/gems/gems/arachni-rpc-em-0.2/lib/arachni/rpc/em/client/handler.rb:82:in `receive_response'
from /root/Desktop/arc/system/gems/gems/arachni-rpc-em-0.2/lib/arachni/rpc/em/protocol.rb:97:in `receive_object'
from /root/Desktop/arc/system/gems/gems/arachni-rpc-em-0.2/lib/arachni/rpc/em/protocol.rb:60:in `receive_data'
from /root/Desktop/arc/system/gems/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:in `run_machine'
from /root/Desktop/arc/system/gems/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:in `run'
from /root/Desktop/arc/system/gems/gems/thin-1.5.1/lib/thin/backends/base.rb:63:in `start'
from /root/Desktop/arc/system/gems/gems/thin-1.5.1/lib/thin/server.rb:159:in `start'
from /root/Desktop/arc/system/gems/gems/rack-1.5.2/lib/rack/handler/thin.rb:16:in `run'
from /root/Desktop/arc/system/gems/gems/rack-1.5.2/lib/rack/server.rb:264:in `start'
from /root/Desktop/arc/system/gems/gems/rack-1.5.2/lib/rack/server.rb:141:in `start'
from /root/Desktop/arc/system/gems/gems/rack-1.5.2/bin/rackup:4:in `<top (required)>'
from /root/Desktop/arc/bin/../system/gems/bin/rackup:23:in `load'
from /root/Desktop/arc/bin/../system/gems/bin/rackup:23:in `<main>'</code>
</pre></div>Ozhantag:support.arachni-scanner.com,2012-07-01:Comment/276588772013-07-08T17:14:04Z2013-07-08T17:14:27ZHow to use proxy on mac via Web UI<div><p>Yeah, as the welcome screen said, SQLite3 is the default DB but
that's so that you can get to try it before going to the trouble of
setting up a real DB like PostgreSQL.<br>
If you want to through some real loads at it, you'll be better off
with <a href=
"https://github.com/Arachni/arachni-ui-web/wiki/database#wiki-PostgreSQL">
PostgreSQL</a>.</p>
<p>Given everything, my best guess is that there's already a
process listening on that port, try changing the port of the proxy
and let me know how it works.</p></div>Tasos Laskostag:support.arachni-scanner.com,2012-07-01:Comment/276588772013-07-08T21:57:55Z2013-07-08T21:57:55ZHow to use proxy on mac via Web UI<div><p>Also, after you configure the proxy plugin, does it appear in
the list of plugins when viewing (not editing) the profile?</p></div>Tasos Laskostag:support.arachni-scanner.com,2012-07-01:Comment/276588772013-07-09T08:21:26Z2013-07-09T08:21:27ZHow to use proxy on mac via Web UI<div><p>Hi,</p>
<p>I switched to PostgreSQL.</p>
<p>The proxy plugin appears in the list of plugins when looking at
the default profile.</p>
<p>I am using firefox to go through proxy but it stuck at
connecting. Changed the port to 11871 but no solution.</p></div>Ozhantag:support.arachni-scanner.com,2012-07-01:Comment/276588772013-07-09T11:47:08Z2013-07-09T11:47:08ZHow to use proxy on mac via Web UI<div><p>Does the Instance start in a paused state?</p></div>Tasos Laskostag:support.arachni-scanner.com,2012-07-01:Comment/276588772013-07-09T12:23:41Z2013-07-09T12:23:43ZHow to use proxy on mac via Web UI<div><p>Yes, but no answer from proxy.</p></div>Ozhantag:support.arachni-scanner.com,2012-07-01:Comment/276588772013-07-09T12:32:44Z2013-07-09T12:32:44ZHow to use proxy on mac via Web UI<div><p>Are there any error logs under
<code>system/logs/framework</code>?</p></div>Tasos Laskostag:support.arachni-scanner.com,2012-07-01:Comment/276588772013-07-09T14:41:57Z2013-07-09T14:42:23ZHow to use proxy on mac via Web UI<div><p>Here you can find it as attachment :) There is something
definitely going wrong with proxy plugin.</p></div>Ozhantag:support.arachni-scanner.com,2012-07-01:Comment/276588772013-07-09T14:49:27Z2013-07-09T14:49:27ZHow to use proxy on mac via Web UI<div><p>What the hell...This should either happen to everyone or no-one,
doesn't make sense. What package did you download, for what
arch?</p></div>Tasos Laskostag:support.arachni-scanner.com,2012-07-01:Comment/276588772013-07-09T14:58:41Z2013-07-09T14:58:42ZHow to use proxy on mac via Web UI<div><p>I have the file from this URL yesterday.</p>
<p><a href=
"http://downloads.arachni-scanner.com/arachni-0.4.3-0.4.1-linux-x86_64.tar.gz">
http://downloads.arachni-scanner.com/arachni-0.4.3-0.4.1-linux-x86_...</a></p>
<p>This x86_64 is working on latest ubuntu 13.04, I also tried the
x86_32 one on kali linux.</p></div>Ozhantag:support.arachni-scanner.com,2012-07-01:Comment/276588772013-07-09T15:37:11Z2013-07-09T15:37:11ZHow to use proxy on mac via Web UI<div><p>I reproduced it, this code hasn't changed in a long time, no
idea why it only now started complaining -- and for some reason
this only happens when you use the packages. I'll fix it and you'll
be able to grab one of the nightlies in a few hours and get going
again.</p>
<p>Apologies for all the trouble.</p></div>Tasos Laskostag:support.arachni-scanner.com,2012-07-01:Comment/276588772013-07-09T15:42:27Z2013-07-09T15:42:29ZHow to use proxy on mac via Web UI<div><p>No worries neighbor :)</p>
<p>I really appreciate your effort and the work you done.</p>
<p>Is there anything that I can help you with arachni? You can look
my skills in my linked in profile. I would like to help this
project.</p></div>Ozhantag:support.arachni-scanner.com,2012-07-01:Comment/276588772013-07-09T15:49:34Z2013-07-09T15:49:34ZHow to use proxy on mac via Web UI<div><p>You've already started actually, testing and providing feedback
is one of the most important things in this process. And I've
started work on <a href=
"https://github.com/Arachni/arachni/issues?milestone=6&page=1&state=open">
v0.5</a> which will have loads of fresh code so testing it will be
pivotal.</p></div>Tasos Laskostag:support.arachni-scanner.com,2012-07-01:Comment/276588772013-07-09T16:08:24Z2013-07-09T16:08:24ZHow to use proxy on mac via Web UI<div><p>Sure, I'll be back with my feedbacks after the relase :)</p></div>Ozhantag:support.arachni-scanner.com,2012-07-01:Comment/276588772013-07-09T16:38:06Z2013-07-09T16:38:06ZHow to use proxy on mac via Web UI<div><p>Fix: <a href=
"https://github.com/Arachni/arachni/commit/841b8095a1e6d8d774c5ee13729658950c86ecb2">
https://github.com/Arachni/arachni/commit/841b8095a1e6d8d774c5ee137...</a></p>
<p>A class named <code>TemplateScope</code> was causing an
out-of-scope error...how's that for irony?</p>
<p>Will update this ticket once the nightlies are refreshed to you
can try it out.</p></div>Tasos Laskostag:support.arachni-scanner.com,2012-07-01:Comment/276588772013-07-09T18:29:02Z2013-07-09T18:29:02ZHow to use proxy on mac via Web UI<div><p>All done, give these a shot and let me know: <a href=
"http://downloads.arachni-scanner.com/nightlies/">http://downloads.arachni-scanner.com/nightlies/</a></p></div>Tasos Laskostag:support.arachni-scanner.com,2012-07-01:Comment/276588772013-07-10T11:02:07Z2013-07-10T11:02:11ZHow to use proxy on mac via Web UI<div><p>Hi Tasos,</p>
<p>Proxy is working fine now :)</p>
<p>I have some other errors with scans. I'll post later with
individual topics so you can track them later.</p>
<p>Have a nice day!</p></div>Ozhantag:support.arachni-scanner.com,2012-07-01:Comment/276588772013-07-10T12:06:24Z2013-07-10T12:06:24ZHow to use proxy on mac via Web UI<div><p>Hey Ozhan</p>
<p>Cool, would love to take a look at those, for scan errors though
this is the right place: <a href=
"https://github.com/Arachni/arachni/issues">https://github.com/Arachni/arachni/issues</a></p>
<p>Closing this and same to you too.</p></div>Tasos Laskostag:support.arachni-scanner.com,2012-07-01:Comment/276588772013-07-11T13:48:19Z2013-07-11T13:48:19ZHow to use proxy on mac via Web UI<div><p>Also, if you could let me know about those errors today that'd
be great as I'd like to push a bugfix release over the weekend.</p></div>Tasos Laskos