login_script login check failed

Celine's Avatar


14 Mar, 2019 06:47 AM

When I try to scan with plugin “login_script”, I get the error "[components/plugins/login_script#set_status:99] Login script: The script was executed successfully, but the login check failed." I don't know how to deal with.
Here is command line:
arachni --plugin=login_script:script="D:\arachni\arachni-1.5.1-0.5.12-windows-x86_64\bin\example.rb" --report-save-path=output.afr http://testfire.net/bank/login.aspx

Here is my script:
response = http.post( 'http://testfire.net/bank/login.aspx',
parameters: { 'uid' => 'jsmith', 'passw' => 'Demo1234' }, mode: :sync, update_cookies: true )

framework.options.session.check_url = to_absolute( '/bank/main.jsp', 'http://testfire.net/bank/main.jsp' )
framework.options.session.check_pattern = /Sign Off|MY ACCOUNT/

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac