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
Error building Server #254
Comments
@SJHsimkaur The logging out put is stating the port that the King Phisher is trying to bind to is already in use. Please see the Socket Bind Failure FAQ section. You will need to see what program or service is already using the port and turn that service off. As the FAQ states using As for the second issues I've been unable to reproduce that issue. Can you please provide me more information on what steps you are taking to create this issue.
|
@wolfthefallen Thanks for your quick turnaround but there is nothing else running on port 80 as below. Not sure what i am missing on. root@king-phiser:~# netstat -tulpn | grep 80 Thanks |
The output your netstat is showing, is that there Is something running on port that is what the LISTEN is stating.. It is a python program so there is a chance you already have King Phisher running. |
Yes the server is running ( as mentioned in the first email but client is not connecting) but my ask is if the below output is as expected from below command. How can we resolve traceback error? root@king-phiser:/opt/king-phiser# ./KingPhisherServer -f -L DEBUG server_config.yml root@king-phiser:~# sudo systemctl status king-phisher Jan 04 11:59:26 king-phiser systemd[1]: Starting King Phisher Server... |
@SJHsimkaur As long as the server is running you should be able to then start the King Phisher client |
While running "./KingPhisherServer -f -L DEBUG server_config.yml -f " looks like its stuck at DEBUG step and still continuing root@king-phiser:/opt/king-phiser# ./KingPhisherServer -f -L DEBUG server_config.yml -f Below is the output while launching CLIENT: |
There server output is what is expected and running correctly. The client is the only part that appears to be having an issue. what steps did you take to install King Phisher on your system? |
I followed below steps to install king-phiser: [root@localhost ~]# apt-get install –y git Thanks |
sweet from the King Phisher folder please provide me the top entry of the command 'git log' it should look something like:
|
Sorry I am didnt get that. you mean to say in /opt/king-phiser/ but i dont see any. |
yes from the
|
Thanks, here you go. kphiser@king-phiser:/opt/king-phiser$ git log
|
Somehow missed the numbers. kphiser@king-phiser:/opt/king-phiser$ git log
|
kphiser@king-phiser:/opt/king-phiser$ git log
|
Yup that is the information I need, Github auto shortens the commit numbers into links for us |
please provide me the auto put of a |
Oh i see. I was going crazy with that. kphiser@king-phiser:/opt/king-phiser$ git status
no changes added to commit (use "git add" and/or "git commit -a") |
do a |
@wolfthefallen is correct, but to clarify that is showing us that there are changes we haven't published to that file. It looks like it somehow got corrupted. |
Still not able to launch client after running the git stash command. root@king-phiser:/opt/king-phiser# git stash
|
You are running in a graphical environment right? Like a full blown graphical GNOME desktop, because I'm confused due to the issue stating that it can't connect to |
I apologize for the confusion and missing the imp piece. I am not able to launch KP client from ssh terminal as well. |
You're not supposed to be able to launch the client from an SSH terminal. It's a graphical application that requires a GUI environment in order to operate. You might be able to run it by X11 forwarding but I don't think I've ever done that so your mileage may vary. |
What are other possible options to launch KP client? Looks like Ubuntu desktop is not working for me. |
Ubuntu GNOME is what we recommend, you just can't do it over SSH. Fedora Workstation and Windows are the other two most widely supported options for the client. |
I am able to launch client successfully with GNOME desktop. Thank you @zeroSteiner @wolfthefallen for all your help. |
Issue Description
There are several issues but lets start one by one:
i followed instructions to build KP server but debugging config file throws below error:
DEBUG king phisher version: 1.9.0 python version: 3.5.2
ERROR failed to bind server to address (socket error #98)
ERROR socket error #98 (Address already in use)
Traceback (most recent call last):
File "/opt/king-phiser/king_phisher/server/build.py", line 145, in server_from_config
server = KingPhisherServer(config, plugin_manager, handler_klass, addresses=addresses, ssl_certfile=ssl_certfile, ssl_keyfile=ssl_keyfile)
File "/opt/king-phiser/king_phisher/server/server.py", line 843, in init
super(KingPhisherServer, self).init(handler_klass, *args, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/advancedhttpserver.py", line 1780, in init
server = server_klass((address[0], address[1]), handler_klass, config=self.__config)
File "/usr/local/lib/python3.5/dist-packages/advancedhttpserver.py", line 703, in init
super(ServerNonThreaded, self).init(*args, **kwargs)
File "/usr/lib/python3.5/socketserver.py", line 440, in init
self.server_bind()
File "/usr/local/lib/python3.5/dist-packages/advancedhttpserver.py", line 771, in server_bind
super(ServerNonThreaded, self).server_bind(*args, **kwargs)
File "/usr/lib/python3.5/http/server.py", line 138, in server_bind
socketserver.TCPServer.server_bind(self)
File "/usr/lib/python3.5/socketserver.py", line 454, in server_bind
self.socket.bind(self.server_address)
OSError: [Errno 98] Address already in use
CRITICAL server failed to build with error: socket error #98 (Address already in use)
INFO unloading 0 plugins
Reproduction Steps
Environment Details
Host OS: Ubuntu 16.04 GNOME, etc.
King Phisher Version: 1.9.0
Error Details / Stack Trace
KP server is running on port 80. I disabled Apache on the server.
Details from /var/log/king-phisher.log
2018-01-04 12:02:06,275 KingPhisher.Server.CLI CRITICAL server failed to build with error: socket error Failed to authenticate to the SMTP server #98 (Address already in use)
Unable to launch client from same KP server
Traceback (most recent call last):
File "./KingPhisher", line 49, in
from king_phisher.client import application
File "/opt/king-phiser/king_phisher/client/application.py", line 52, in
from king_phisher.client import assistants
File "/opt/king-phiser/king_phisher/client/assistants/init.py", line 33, in
from .campaign import *
File "/opt/king-phiser/king_phisher/client/assistants/campaign.py", line 36, in
from king_phisher.client import gui_utilities
File "/opt/king-phiser/king_phisher/client/gui_utilities.py", line 517
elif len(error.args) > 1:
^
SyntaxError: invalid syntax
Please advice.
The text was updated successfully, but these errors were encountered: