tag:support.arachni-scanner.com,2012-07-01:/discussions/problems/3853-login_script-plugin-usageArachni: Discussion 2015-09-30T14:54:52Ztag:support.arachni-scanner.com,2012-07-01:Comment/371618652015-06-18T15:35:35Z2015-06-18T15:35:35Zlogin_script plugin usage<div><p>Hey there,</p>
<p>There's no <code>browser</code> option for that plugin, it'll be
using PhantomJS.<br>
You've removed all the good stuff though, I'm afraid I'll need the
backtraces and everything.</p>
<p>A look into your script would be helpful as well.</p>
<p>Cheers</p></div>Tasos Laskostag:support.arachni-scanner.com,2012-07-01:Comment/371618652015-06-18T15:47:05Z2015-06-18T15:47:06Zlogin_script plugin usage<div><p>Ok, I tried the following command instead:<br></p>
<pre>
<code>./arachni --plugin=login_script:script=/home/cyber/login1.rb --report-save-path '/home/cyber/arachni.afr' [target URL]</code>
</pre>
I've attached the login script and full output.</div>Zehrtag:support.arachni-scanner.com,2012-07-01:Comment/371618652015-06-18T15:53:12Z2015-06-18T15:53:12Zlogin_script plugin usage<div><p>Your login script has an error at line 6, apparently
<code>form.select_list( id: 'form:console:0' ).select</code> is
missing an argument.</p>
<p>The encoding error is a bug in Arachni though, any chance you
can send me the details in private in order to reproduce it?<br>
I won't need to scan anything, just visiting the login page should
be enough.</p>
<p>Cheers</p></div>Tasos Laskostag:support.arachni-scanner.com,2012-07-01:Comment/371618652015-06-18T16:08:28Z2015-06-18T16:08:29Zlogin_script plugin usage<div><p>Ah, I see. I thought the missing argument was referring back to
the arachni command. I modified the script, I needed to use
<code>.set</code> rather than <code>.select</code> and I'm getting
a different error, but now I know it's with my script and I'll keep
working on it.</p>
<p>Interestingly, the encoding error did not reappear after making
that change. Unfortunately, I can't share the login page with you
because it's behind a VPN firewall.</p>
<p>Thanks for the help</p></div>Zehrtag:support.arachni-scanner.com,2012-07-01:Comment/371618652015-06-18T16:15:45Z2015-06-18T16:15:45Zlogin_script plugin usage<div><p>Doing a "Save as" and compressing the directory could work, if
you're allowed to share that.</p></div>Tasos Laskostag:support.arachni-scanner.com,2012-07-01:Comment/371618652015-09-30T14:54:51Z2015-09-30T14:54:51Zlogin_script plugin usage<div><p>Closing due to lack of feedback, please provide the requested
information if you'd like me to pursue this further.</p></div>Tasos Laskos