Raikia / FiercePhish

FiercePhish is a full-fledged phishing framework to manage all phishing engagements. It allows you to track separate phishing campaigns, schedule sending of emails, and much more.

Home Page:https://github.com/Raikia/FiercePhish/wiki

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Docs on running second site on same domain

digininja opened this issue · comments

I might have set things up wrong to get in this position but I set the app up on targetdomain.com and now need to host some files on the domain so that I can direct the users to them.

I've moved the app out of the way and have now had to edit the laravel routes file to allow me to host some files in the root of the domain.

As an example I've added

Route::get('/amazon', function () {
    return 'Amazon landing page';
});


Route::get('/', function () {
    return Redirect::to('https://targetdomain.com/', 301); 
});

It would be nice to have a wiki page on how to do this correctly as this feels like a hack that will go wrong next time I update the app and you overwrite the routes/web.php file.

Yeah, I do agree with this. This is one of the reasons I actually like running FP on a different port as well, because it makes it a bit easier to handle (you can configure the port to run it on in the installer). That said, the installer is created to allow you to rerun it to reconfigure everything without breakage so that might be a solution for you.

But yeah, Laravel clobbers entire hosting directories, so the solution is really within the installer and configuration of Apache. I'll include this in v2.0, good feedback

You should be able to rerun the installer with no issues and not lose any data....

Or you can simply edit "/etc/apache2/sites-available/fiercephish.conf", change the :80 to :[port]

And then edit "/etc/apache2/ports.conf" and insert a "Listen [port]" line. (where [port] is a number)

Then restart Apache.

Yes, thats how I made it work. v2.0 will allow you to configure for multiple domains because thats a thing I didn't expect people to need to do frequently but turned out it is needed.