phishcatch icon indicating copy to clipboard operation
phishcatch copied to clipboard

[enhancement] Adding Parameter in config for better Username Detection.

Open 0xMirasio opened this issue 4 years ago • 1 comments

Add a new parameters in debug configuration which taking as input a string : idusername This string should be the value of the id on the MainPage, to detect the username.

for example, a main login page with the html code : <input class="mdc-text-field__input pwd" type="password" id="pwd_pass" size="25" name="password" value="">

The Parameter isUsername should be pwd_pass, then the extension can automatically take the username when logging and store it for better logging/information.

New code should have for example in content.js

function runUsernameScraper() { const username = <HTMLInputElement>document.getElementById(IdUsername) if (username != null) { return username.value }

0xMirasio avatar Jul 06 '21 10:07 0xMirasio

👍 Great feedback. Will add this.

carbureted avatar Jul 07 '21 09:07 carbureted