login plugins check failed.

Joseph's Avatar

Joseph

27 Oct, 2016 05:29 AM

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. 1 Posted by Joseph on 27 Oct, 2016 05:43 AM

    Joseph's Avatar

    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. 2 Posted by Joseph on 27 Oct, 2016 05:49 AM

    Joseph's Avatar

    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. Support Staff 3 Posted by Tasos Laskos on 27 Oct, 2016 09:49 AM

    Tasos Laskos's Avatar

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

  4. 4 Posted by Joseph on 28 Oct, 2016 02:04 AM

    Joseph's Avatar

    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. 5 Posted by Joseph on 28 Oct, 2016 02:08 AM

    Joseph's Avatar

    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. Support Staff 6 Posted by Tasos Laskos on 28 Oct, 2016 09:01 AM

    Tasos Laskos's Avatar

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

  7. Support Staff 7 Posted by Tasos Laskos on 28 Oct, 2016 10:39 AM

    Tasos Laskos's Avatar

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

  8. 8 Posted by Joseph on 31 Oct, 2016 04:07 AM

    Joseph's Avatar

    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?

  9. 9 Posted by Joseph on 31 Oct, 2016 04:09 AM

    Joseph's Avatar

    Attachment file

  10. 10 Posted by Joseph on 04 Nov, 2016 05:23 AM

    Joseph's Avatar

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

  11. Support Staff 11 Posted by Tasos Laskos on 07 Nov, 2016 06:03 PM

    Tasos Laskos's Avatar

    Any chance I can be given access to the webapp?

  12. 12 Posted by Joseph on 11 Nov, 2016 08:35 AM

    Joseph's Avatar

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

  13. Support Staff 13 Posted by Tasos Laskos on 17 Nov, 2016 04:50 PM

    Tasos Laskos's Avatar

    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