Created
November 29, 2016 00:24
-
-
Save brianswisher/7af09791c284b2fcf39a832014dc55a0 to your computer and use it in GitHub Desktop.
Console Agent
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.name=` | |
()=>{ | |
const i=0 | |
function step(num){window.name = window.name.split('i='+num).join('i='+(num+1))} | |
const commands=[ | |
()=>{ | |
step(0) | |
document.forms[0].username.value = 'username' | |
document.forms[0].password.value = 'password' | |
}, | |
()=>{ | |
step(1) | |
document.getElementById('submit').click() | |
}, | |
()=>{ | |
step(2) | |
document.querySelector('#filterOverview').click() | |
} | |
] | |
commands[i]() | |
} | |
` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment