tag:support.arachni-scanner.com,2012-07-01:/discussions/questions/13088-cant-get-login-script-to-workArachni: Discussion 2016-11-28T15:21:37Ztag:support.arachni-scanner.com,2012-07-01:Comment/412838442016-11-22T18:31:34Z2016-11-22T18:31:37ZCant get login script to work.<div><p>I have been trying to get my login_script to work on the arachni
GEM but keep getting this error(Screenshot).</p>
<p>The script works when using the
arachni-1.4-0.5.10-linux-x86_64.tar.gz files, but on the gem it
does not work.</p>
<pre>
<code>browser.goto 'https://secure.nuuvem.local/account/login'
form = browser.section( id: 'login').form( id: 'new_customer' )
form.text_field( name: 'customer[login]' ).set 'some@email.com'
form.text_field( name: 'customer[password]' ).set 'somepass123'
form.submit
# You can also configure the session check from the script, dynamically,
# if you don't want to set static options via the user interface.
framework.options.session.check_url = browser.url
framework.options.session.check_pattern = /.*/</code>
</pre>
<p>Any help would be usefull. Thanks</p></div>Camillotag:support.arachni-scanner.com,2012-07-01:Comment/412838442016-11-22T21:46:08Z2016-11-22T21:46:08ZCant get login script to work.<div><p>Is there a reason you're using the GEM rather than the
packages?</p></div>Tasos Laskostag:support.arachni-scanner.com,2012-07-01:Comment/412838442016-11-23T18:51:26Z2016-11-23T18:51:28ZCant get login script to work.<div><p>The reason is we want to be able to just bundle install the gem
in a gemfile and be able to use our commands to check our
plataform.</p>
<p>It works, but i am having this problem regarding the login.</p></div>Camillotag:support.arachni-scanner.com,2012-07-01:Comment/412838442016-11-23T18:53:07Z2016-11-23T18:53:07ZCant get login script to work.<div><p>Did you try verifying your login script with the packages?</p></div>Tasos Laskostag:support.arachni-scanner.com,2012-07-01:Comment/412838442016-11-23T18:55:32Z2016-11-23T18:55:33ZCant get login script to work.<div><p>Yes, i have tried the login script before on the packages, and
worked.</p>
<p>That´s why i´m not so sure what could be the
problem. Dis a research but did not find a solution.</p></div>Camillotag:support.arachni-scanner.com,2012-07-01:Comment/412838442016-11-23T18:58:50Z2016-11-23T18:58:50ZCant get login script to work.<div><p>It can be about a thousand different things, that's why you
should be using the packages, they provide a tested env that's
known to work.<br>
It will be a little more trouble in your case, but at least you'll
get something reliable.</p>
<p>If you really need the Gem though, my first thought would be
checking what PhantomJS verison you have, the current Gem depends
on PhantomJS 1.9.2.</p></div>Tasos Laskostag:support.arachni-scanner.com,2012-07-01:Comment/412838442016-11-23T19:07:51Z2016-11-23T19:07:52ZCant get login script to work.<div><p>I added it to the gemfile, and still having the same error.</p></div>Camillotag:support.arachni-scanner.com,2012-07-01:Comment/412838442016-11-23T19:08:52Z2016-11-23T19:08:52ZCant get login script to work.<div><p>This is an env issue, I don't think I can help you, you better
stick with the packages.</p></div>Tasos Laskostag:support.arachni-scanner.com,2012-07-01:Comment/412838442016-11-23T19:10:17Z2016-11-23T19:10:20ZCant get login script to work.<div><p>Testing the script again on the packages, and im getting a wierd
"freeze"...after the login actually happens(the console from the
app shows the login and redirect) the login script
just...waits...and never finish.</p></div>Camillotag:support.arachni-scanner.com,2012-07-01:Comment/412838442016-11-23T19:11:15Z2016-11-23T19:11:15ZCant get login script to work.<div><p>Can you give the <a href="http://downloads.arachni-scanner.com/nightlies/">nightlies</a> a
shot and see if they fix the issue please?</p></div>Tasos Laskostag:support.arachni-scanner.com,2012-07-01:Comment/412838442016-11-23T19:14:31Z2016-11-23T19:14:35ZCant get login script to work.<div><p>On the nightlies it worked great.</p></div>Camillotag:support.arachni-scanner.com,2012-07-01:Comment/412838442016-11-23T19:15:28Z2016-11-23T19:15:28ZCant get login script to work.<div><p>Must be a bug that has been fixed then, you should keep using
the nightlies since it works there.</p></div>Tasos Laskos