login plugins check failed.

We are trying to get login script working with a website we are testing.
where loginScript.js is:

response = http.post( 'http://192.168.70.15/designs/imm/index.php',
    parameters:     {
        'user'   => 'USERID',
        'password' => 'PASSW0RD'
    },
    mode:           :sync,
    update_cookies: true
)

framework.options.session.check_url     = to_absolute( response.headers.location, response.url )
framework.options.session.check_pattern = /Log out/

On our windows 10 pc it failed to log in because of a check failed error, how can I to correct the login script?

  1. Sorry! Just the filename extension description was wrong.
    It's .rb not .js!
    loginScript.rb is:
    response = http.post( 'http://192.168.70.15/designs/imm/index.php',
    parameters: { 'user' => 'USERID', 'password' => 'PASSW0RD' }, mode: :sync, update_cookies: true )

    framework.options.session.check_url = to_absolute( response.headers.location, response.url )
    framework.options.session.check_pattern = /Log out/

  2. We have also use autologin to tried:
    arachni http://192.168.70.15/ --plugin=autologin:url=http://192.168.70.15/designs/imm/index.php,parameters="user=US... out"
    But after execute it will keep in "Autologin: Logging in, please wait." then don't continue......

  3. Can you please retry with --output-debug=3 and upload the output?

  4. Thank you for your reply.
    We have use autologin to tried:
    C:\arachni-2.0dev-1.0dev-windows-x86_64\bin>arachni http://192.168.70.15/ --plugin=autologin:url=http://192.168.70.15/designs/imm/index.php,parameters="user=US... out" --output-debug=3

    After 12 hours still stuck in this message(Please refer to the attachment file "autologin02.jpg".)
    Connection: Closed because: [Arachni::Reactor::Connection::Error::Closed] end of file reached

  5. After 12 hours I retested
    arachni http://192.168.70.15/ --plugin=autologin:url=http://192.168.70.15/designs/imm/index.php,parameters="user=US... out" --output-debug=3

    It stuck in another message(Please refer to the attachment file "autologin03.jpg".)

  6. I think I know what's going on, pushing nightlies now with the fix.
    Will let you know once they're up.

  7. Windows nightly is up, please retry and it you get the same behavior please re-enable debugging and show me the messages.

  8. Thank you for your reply.
    I've used nightlies(arachni-2.0dev-1.0dev-windows-x86_64) to test.
    And got the scan report and logged error.(Please refer to the attachment file)
    But how do I know the scanner has successful login my web app?

    • 192.168.70.15_2016-10-31_11_18_53__0800.afr.zip (available to support staff) 529 KB
  9. Attachment file

  10. Hi Tasos
    Could you help me check error log as attatchment file that on nightly build test.
    Thanks!

  11. Any chance I can be given access to the webapp?

  12. Hi Tasos
    So sorry...
    I can't give you access the webapp.

  13. Was the machine under a lot of stress at the time?
    Were you running multiple scans?

  14. Tasos Laskos closed this discussion on 14 Dec, 2016 02:12 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? 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