tag:support.arachni-scanner.com,2012-07-01:/discussions/problems/4099-arachni-gets-stuck-after-running-a-login_scriptArachni: Discussion 2016-09-25T12:56:34Ztag:support.arachni-scanner.com,2012-07-01:Comment/407749952016-09-17T09:58:02Z2016-09-17T09:58:02ZArachni gets stuck after running a login_script<div><p>Hello,</p>
<p>Does this happen at the beginning (i.e. the first time the
script runs) or during the scan (i.e. after a logout)?<br>
Also, a more detailed debugging output
(<code>--output-debug=3</code>) using the nightlies would help.</p>
<p>Cheers</p></div>Tasos Laskostag:support.arachni-scanner.com,2012-07-01:Comment/407749952016-09-19T20:34:45Z2016-09-19T20:34:45ZArachni gets stuck after running a login_script<div><p>Hi Tasos. Sorry for the delay. I reran the scans on Saturday and
Sunday without any issues. However when I ran them on Monday I ran
in to the issues again. Not sure if this points to internal/network
(not Arachni) issues...</p>
<p>Below are selected details from the logs. Not sure I will be
able to share the complete set of logs, but let me know if you need
anything else to help troubleshoot.</p>
<p>arachni scan initiated<br>
login_script starts</p>
<p>All steps in login script are completed<br>
- Verified PhantomJS authenticates successfully (screenshots and
cookies saved to files) - Arachni does not display "Login script:
Execution completed." nor the cookies</p>
<p>dozens of seemingly residual requests/responses for application
being tested<br></p>
<pre>
<code> [!!!] [http/proxy_server/connection#handle_response:169] SSLInterceptor: Sending response.
[!!!] [http/proxy_server/connection#on_flush:200] SSLInterceptor: Response sent.
[!!!] [http/proxy_server/tunnel#on_read:47] Tunnel: <- Forwarding 165 bytes to client.
[!!] [browser#wait_for_timers:1118] Browser: ...done.
[!!] [browser#wait_for_pending_requests:1400] Browser: Waiting for 3 requests to complete...<br><br>
<br>=!=!=!=!=long wait=!=!=!=!=<br><br>
<br>[!!!] [http/proxy_server/connection#on_close:178] Connection: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/ssl_interceptor#on_close:34] SSLInterceptor: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file
[!!!] [http/proxy_server/connection#on_close:178] Connection: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/connection#on_close:178] Connection: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/connection#on_close:178] Connection: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/connection#on_close:178] Connection: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/connection#on_close:178] Connection: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/connection#on_close:178] Connection: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/connection#on_close:178] Connection: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/connection#on_close:178] Connection: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/connection#on_close:178] Connection: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/connection#on_close:178] Connection: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/connection#on_close:178] Connection: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/connection#on_close:178] Connection: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/connection#on_close:178] Connection: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/connection#on_close:178] Connection: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/ssl_interceptor#on_close:34] SSLInterceptor: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/ssl_interceptor#on_close:34] SSLInterceptor: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/ssl_interceptor#on_close:34] SSLInterceptor: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/ssl_interceptor#on_close:34] SSLInterceptor: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/ssl_interceptor#on_close:34] SSLInterceptor: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/ssl_interceptor#on_close:34] SSLInterceptor: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/ssl_interceptor#on_close:34] SSLInterceptor: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/ssl_interceptor#on_close:34] SSLInterceptor: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/ssl_interceptor#on_close:34] SSLInterceptor: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/ssl_interceptor#on_close:34] SSLInterceptor: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/ssl_interceptor#on_close:34] SSLInterceptor: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/connection#on_close:178] Connection: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/connection#on_close:178] Connection: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/connection#on_close:178] Connection: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/connection#on_close:178] Connection: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/connection#on_close:178] Connection: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/connection#on_close:178] Connection: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/connection#on_close:178] Connection: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/connection#on_close:178] Connection: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/connection#on_close:178] Connection: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/connection#on_close:178] Connection: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/connection#on_close:178] Connection: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/connection#on_close:178] Connection: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/connection#on_close:178] Connection: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/connection#on_close:178] Connection: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/connection#on_close:178] Connection: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/connection#on_close:178] Connection: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/connection#on_close:178] Connection: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/connection#on_close:178] Connection: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/connection#on_close:178] Connection: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/connection#on_close:178] Connection: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/connection#on_close:178] Connection: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/connection#on_close:178] Connection: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/connection#on_close:178] Connection: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/connection#on_close:178] Connection: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/connection#on_close:178] Connection: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/connection#on_close:178] Connection: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/ssl_interceptor#on_close:34] SSLInterceptor: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/ssl_interceptor#on_close:34] SSLInterceptor: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/ssl_interceptor#on_close:34] SSLInterceptor: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/ssl_interceptor#on_close:34] SSLInterceptor: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/ssl_interceptor#on_close:34] SSLInterceptor: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/ssl_interceptor#on_close:34] SSLInterceptor: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/ssl_interceptor#on_close:34] SSLInterceptor: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/ssl_interceptor#on_close:34] SSLInterceptor: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/ssl_interceptor#on_close:34] SSLInterceptor: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/ssl_interceptor#on_close:34] SSLInterceptor: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/ssl_interceptor#on_close:34] SSLInterceptor: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/ssl_interceptor#on_close:34] SSLInterceptor: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/ssl_interceptor#on_close:34] SSLInterceptor: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/ssl_interceptor#on_close:34] SSLInterceptor: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/ssl_interceptor#on_close:34] SSLInterceptor: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/ssl_interceptor#on_close:34] SSLInterceptor: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/ssl_interceptor#on_close:34] SSLInterceptor: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/ssl_interceptor#on_close:34] SSLInterceptor: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/ssl_interceptor#on_close:34] SSLInterceptor: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/ssl_interceptor#on_close:34] SSLInterceptor: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/ssl_interceptor#on_close:34] SSLInterceptor: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/ssl_interceptor#on_close:34] SSLInterceptor: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/ssl_interceptor#on_close:34] SSLInterceptor: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/ssl_interceptor#on_close:34] SSLInterceptor: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/ssl_interceptor#on_close:34] SSLInterceptor: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/ssl_interceptor#on_close:34] SSLInterceptor: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached</code>
</pre>
Long pause (one order of several minutes)...<br>
<pre>
<code> [!!!] [http/proxy_server/connection#initialize:33] Connection: Starting new connection: 70184012892840<br> [!!!] [http/proxy_server/connection#initialize:38] Connection: Incoming request.
[!!!] [http/proxy_server/connection#initialize:51] Connection: Request received: CONNECT redacted-appHost:443<br><br>
<br>=!=!=!=!=!=!=!=!=!=
=!=!=!=!=Additional requests/responses to application being tested=!=!=!=!=
=!=!=!=!=!=!=!=!=!=<br><br>
<br>[!!!] [http/proxy_server/connection#handle_response:169] SSLInterceptor: Sending response.
[!!!] [http/proxy_server/connection#on_flush:200] SSLInterceptor: Response sent.
[!!!] [http/proxy_server/tunnel#on_read:47] Tunnel: <- Forwarding 693 bytes to client.
[!!!] [http/proxy_server/connection#on_close:178] Connection: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/ssl_interceptor#on_close:34] SSLInterceptor: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/connection#on_close:178] Connection: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/connection#on_close:178] Connection: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/connection#on_close:178] Connection: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/connection#on_close:178] Connection: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/connection#on_close:178] Connection: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/ssl_interceptor#on_close:34] SSLInterceptor: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/ssl_interceptor#on_close:34] SSLInterceptor: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/ssl_interceptor#on_close:34] SSLInterceptor: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/ssl_interceptor#on_close:34] SSLInterceptor: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/connection#on_close:178] Connection: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/connection#on_close:178] Connection: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/connection#on_close:178] Connection: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/connection#on_close:178] Connection: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/ssl_interceptor#on_close:34] SSLInterceptor: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/ssl_interceptor#on_close:34] SSLInterceptor: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/ssl_interceptor#on_close:34] SSLInterceptor: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached
[!!!] [http/proxy_server/ssl_interceptor#on_close:34] SSLInterceptor: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached</code>
</pre>
Nothing more is output...
<p>When I do a Ctrl + c...<br></p>
<pre>
<code>[*] Aborting...
[~] Please wait while the system cleans up.
[!!] [http/proxy_server#shutdown:68] ProxyServer: Shutting down..
[!!] [http/proxy_server#shutdown:68] ProxyServer: Shutting down..
[!!!] [http/proxy_server/connection#on_close:178] Connection: Closed because: [NilClass]
[!!] [http/proxy_server#shutdown:73] ProxyServer: Shutdown.
```</code>
</pre></div>testertag:support.arachni-scanner.com,2012-07-01:Comment/407749952016-09-20T07:51:26Z2016-09-20T07:51:26ZArachni gets stuck after running a login_script<div><p>Were you using the nightlies?</p></div>Tasos Laskostag:support.arachni-scanner.com,2012-07-01:Comment/407749952016-09-25T12:55:18Z2016-09-25T12:55:18ZArachni gets stuck after running a login_script<div><p>Hi Tasos. The issue seems to have been resolved using the
nightlies. I suspect it was due to issues related to the
application itself.</p>
<p>It's weird... the login script was working using v1.4-0.5.10,
but not the nightly. Now it's only working with the nightlies.
Thanks again for your support.</p></div>testertag:support.arachni-scanner.com,2012-07-01:Comment/407749952016-09-25T12:56:30Z2016-09-25T12:56:30ZArachni gets stuck after running a login_script<div><p>Strange but fair enough.</p></div>Tasos Laskos