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.
https://github.com/Raikia/FiercePhish/wiki
GNU General Public License v3.0
1.29k stars 253 forks source link

Unable to login to Web portal #93

Open jamilahsan opened 2 years ago

jamilahsan commented 2 years ago

I have installed and configured FiercePhish. When I try to connect to http://my-public-ip:80 I am prompted for user name and password. When I enter admin as user name and my password which I entered in the configuration file, I get "Whoops, looks like something went wrong". Any suggestion - Idea?

mother2110 commented 1 year ago

I get the same thing

Raikia commented 1 year ago

Look in /var/www/fiercephish/storage/logs/laravel.log, that will direct you to what is wrong. It sounds like a service isn't starting (like mysql) or something causing that issue. Double check your mysql creds in /var/www/fiercephish/.env and make sure your system has enough RAM to run mysql

mother2110 commented 1 year ago

SQLSTATE[HY000] [1045] Access denied for user 'fiercephish'@'localhost' (using password: YES) in /var/www/fiercephish/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDO/Exception.php:18

Raikia commented 1 year ago

Yeah sounds like your mysql password is incorrect, check /var/www/fiercephish/.env and maybe try manually logging into the mysql server using the "mysql" cli

mother2110 commented 1 year ago

root@kphisher:~# mysqladmin -u root -p status Enter password: Uptime: 381 Threads: 2 Questions: 17 Slow queries: 0 Opens: 169 Flush tables: 3 Open tables: 88 Queries per second avg: 0.044

password does work

Raikia commented 1 year ago

that's logging in as root. If you want to do that, update the /var/www/fiercephish/.env DB_USERNAME and DB_PASSWORD variables to make sure its using the root user, then run "cd /var/www/fiercephish/; php artisan config:cache"

mother2110 commented 1 year ago

but in the .env, it shows fiercephish as the user

Does that need to be changed to root?

mother2110 commented 1 year ago

I think I got it. I was reusing the same config, and I think that was causing the issue. I rebuilt the server and re-ran the install and it works fine