Created
September 3, 2021 15:19
-
-
Save x43x61x69/93bbef2e73008142238f1681c06c45df to your computer and use it in GitHub Desktop.
ELF Auto CAPTCHA
This file contains hidden or 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
// ELF Auto CAPTCHA | |
// URL Pattern: | |
// - https://www.elf.com.tw/login.aspx | |
window.addEventListener('load', function () { | |
const formData = new FormData(); | |
formData.append('p', 'ELF_Identify'); | |
fetch('GetSession.ashx', { | |
method: 'POST', | |
body: formData | |
}) | |
.then(function(response) { | |
return response.text(); | |
}) | |
.then(function(code) { | |
console.log('CAPTCHA: ' + code); | |
document.getElementById('txtCaptcha').value = code; | |
}); | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment