Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PLS HELP HOW DO I GET KING PHISHER TO WORK i CANT UNDERSTAND THE PROCESS OF PROGRESQL LOGIN #136

Closed
cyberleox opened this issue Jul 22, 2016 · 14 comments
Assignees
Labels

Comments

@cyberleox
Copy link

cyberleox commented Jul 22, 2016

Issue Description

i cant seem to get King phisher to sign in i have been trying to do it with most of the examples on here but i need a detailed information on setting up the database proper with progresql what options do i have and what are the correct way to do it from scratch,i know am asking for much but i will be glad to have someone mentor me through this A-z
screenshot from 2016-07-22 02-06-00

@zeroSteiner
Copy link
Collaborator

Please refer to the documentation provided in the wiki.

Specifically note the FAQ section on there not being default credentials, in addition to the entire page dedicated to the database.

@cyberleox
Copy link
Author

Hello Thank you for your response but i couldnt find anything that helped i even removed and re-installed it back changed the user and password for postgresqls,it is really a bit of a confusion as i havent really done anything with ssh before i would like and appreciate if you could walk me through it.Regards Sir.

@y4utj4
Copy link
Contributor

y4utj4 commented Jul 22, 2016

Cyber Leon,
First, King Phisher defines it's own username and password for postgresql during setup. You'll have to run the setup again.

Next, you have to make sure ssh is installed and running g on your server. The credentials you use are your ssh credentials.

Out of the box, this is how it works

Thanks

Sent from my T-Mobile 4G LTE Device

-------- Original message --------
From: cyberleox notifications@github.com
Date: 7/22/16 05:31 (GMT-05:00)
To: securestate/king-phisher king-phisher@noreply.github.com
Subject: Re: [securestate/king-phisher] PLS HELP HOW DO I GET KING PHISHER TO WORK i CANT UNDERSTAND THE PROCESS OF PROGRESQL LOGIN (#136)

Hello Thank you for your response but i couldnt find anything that helped i even removed and re-installed it back changed the user and password for postgresqls,it is really a bit of a confusion as i havent really done anything with ssh before i would like and appreciate if you could walk me through it.Regards Sir.

You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com//issues/136#issuecomment-234498917, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AHYH4R5klsFg9S16U8LyiHORmZ36T5lCks5qYI3vgaJpZM4JSYuQ.

@cyberleox
Copy link
Author

Hi i am trying to change the postgresql user and password but getting this errors
cyberleox@cyberleox:/etc/ssh$ sudo update-rc.d -f ssh enable 2 3 4 5
cyberleox@cyberleox:/etc/ssh$ sudo nano /etc/motd
cyberleox@cyberleox:/etc/ssh$ sudo service postgresql start
cyberleox@cyberleox:/etc/ssh$ sudo -su postgres
postgres@cyberleox:/etc/ssh$ createuser cyberleox -P -S -R -D
Enter password for new role:
Enter it again:
createuser: could not connect to database postgres: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
postgres@cyberleox:/etc/ssh$
screenshot from 2016-07-22 11-36-14

@y4utj4
Copy link
Contributor

y4utj4 commented Jul 22, 2016

You aren't supposed to mess with the postgresql configuration including usernames and passwords. The setup script does all of the work for you. You authenticate purely through ssh.... You'll have to Rerun the setup script.

The steps used to set up king phisher are documented thoroughly in the wiki.

Sent from my T-Mobile 4G LTE Device

-------- Original message --------
From: cyberleox notifications@github.com
Date: 7/22/16 06:37 (GMT-05:00)
To: securestate/king-phisher king-phisher@noreply.github.com
Cc: "Jeremy J. Schoeneman" jschoeneman@securestate.com, Comment comment@noreply.github.com
Subject: Re: [securestate/king-phisher] PLS HELP HOW DO I GET KING PHISHER TO WORK i CANT UNDERSTAND THE PROCESS OF PROGRESQL LOGIN (#136)

Hi i am trying to change the postgresql user and password but getting this errors
cyberleox@cyberleox:/etc/ssh$ sudo update-rc.d -f ssh enable 2 3 4 5
cyberleox@cyberleox:/etc/ssh$ sudo nano /etc/motd
cyberleox@cyberleox:/etc/ssh$ sudo service postgresql start
cyberleox@cyberleox:/etc/ssh$ sudo -su postgres
postgres@cyberleox:/etc/ssh$ createuser cyberleox -P -S -R -D
Enter password for new role:
Enter it again:
createuser: could not connect to database postgres: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
postgres@cyberleox:/etc/ssh$
[screenshot from 2016-07-22 11-36-14]https://cloud.githubusercontent.com/assets/20588413/17054746/af575aca-5000-11e6-97d3-a43fc45d7b8f.png

You are receiving this because you commented.
Reply to this email directly, view it on GitHubhttps://github.com//issues/136#issuecomment-234512162, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AHYH4aPKaIoypQlCX0kKmf8q65G11eaTks5qYJ10gaJpZM4JSYuQ.

@cyberleox
Copy link
Author

ok Thanks i will go try again and report back what i find,you guys are been very helpful here...by the way would like a means of reaching you..would like some mentoring as i am on the learning part.

@cyberleox
Copy link
Author

this was the error message i got after installing king-phisher again and it tried to start
screenshot from 2016-07-22 12-06-10

@wolfthefallen wolfthefallen reopened this Jul 22, 2016
@wolfthefallen
Copy link
Contributor

@cyberleox this error generally occurs when the postgresql database has not been initialized after installation to correct this issue please run sudo postgresql-setup --initdb then rerun tools/install.sh script.

@cyberleox
Copy link
Author

postgresql-setup Command Not Found

@wolfthefallen
Copy link
Contributor

cyberleox you ill need to verify that you have the postgresql database initialized. Once that is completed please stop all service running on port 80. Then rerun the tools/install.sh to have king-phisher installed correctly on your system.

@wolfthefallen
Copy link
Contributor

@cyberleox have you resolved your issues with initializing the PostgreSQL database and successfully installing King Phisher with the tools/install.sh script?

@zeroSteiner
Copy link
Collaborator

This hasn't been updated in over a week so I'm going to close it.

@r1ckyr4y
Copy link

Wow, this program really sucks. Why would Kali include it at all and not a program that actually works?

@hwac121
Copy link

hwac121 commented Nov 17, 2021

Wow, this program really sucks. Why would Kali include it at all and not a program that actually works?

Just because you have no idea what you are doing does not mean the program sucks...
This is one of the best phishing campaign programs built actually. A lot of work goes into this app, it is complicated, and open source so BE GRATEFUL!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants