Login check failed for login script

r.fernandes's Avatar


16 Jan, 2023 04:08 AM


I am trying to login to my app. I have the below code in "Login script.js file"
document.getElementById( 'signInFormUsername' ).value = '[email blocked]';
document.getElementById( 'signInFormPassword' ).value = 'password';
document.getElementsByName( 'signInSubmitButton' )[0].click();

Below is the command line that I tried:
arachni --plugin=login_script:script="login Script.js" --report-save-path=output.afr https:///dashboard check="Home" --scope-exclude-pattern=Logout --session-check-pattern="Home" --session-check-url="https:///dashboard"

When I execute the command line I get the error "The script was executed successfully, but the login check failed.."

The website uses "aws cognito". Can this impact the login?

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