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

Error when starting faraday.py on Kali Rolling #146

Closed
x00TateSec opened this issue Oct 20, 2016 · 6 comments
Closed

Error when starting faraday.py on Kali Rolling #146

x00TateSec opened this issue Oct 20, 2016 · 6 comments

Comments

@x00TateSec
Copy link

Just updated Kali install, have new issue with Faraday still not starting. This is the latest output. Please advise, or if you need more info/output, let me know. Thanks.

uname -a:
Linux kali 4.5.0-kali1-amd64 #1 SMP Debian 4.5.5-1kali1 (2016-06-06) x86_64 GNU/Linux

||/ Name Version Architecture Description
+++-============================-===================-===================-==============================================================
ii python-faraday 2.1.0-0kali1 amd64 Collaborative Penetration Test IDE
ii ruby-faraday 0.9.2-3 all HTTP/REST API client library
ii couchdb 1.6.2~20151123-0kal amd64 RESTful document oriented database
ii python-couchdbkit 0.6.5-2 all Trying to improve couchdb experience in Python
un python2.7-couchdbkit (no description available)

_____ .___
/ _________ ____________ **| /** ..
\ \ * \ _ __ __ \ / __ | __ \ < | |
| | / __ _| | // __ / // | / __ ____ |
|
*| (
** /|| (__ /____ | (____ // ____|
/ / / / /

[[ Open Source Penetration Test IDE ]]
Where pwnage goes multiplayer

2016-10-20 13:07:11,446 - faraday.launcher - INFO - Starting Faraday IDE.
2016-10-20 13:07:11,446 - faraday.launcher - INFO - Dependencies met.
2016-10-20 13:07:11,446 - faraday.launcher - INFO - Checking configuration.
2016-10-20 13:07:11,446 - faraday.launcher - INFO - Setting up plugins.
2016-10-20 13:07:11,446 - faraday.launcher - INFO - Removing old plugins folder.
2016-10-20 13:07:11,483 - faraday.launcher - INFO - Setting up ZSH integration.
2016-10-20 13:07:11,491 - faraday.launcher - INFO - Setting up user configuration.
2016-10-20 13:07:11,491 - faraday.launcher - INFO - Using custom user configuration.
2016-10-20 13:07:11,492 - faraday.launcher - INFO - Setting up icons for GTK interface.
2016-10-20 13:07:11,499 - faraday.launcher - INFO - Setting configuration.
2016-10-20 13:07:11,836 - faraday.launcher - INFO - All done. Opening environment.
2016-10-20 13:07:11,957 - faraday.launcher - INFO - Main application ExceptHook enabled.
2016-10-20 13:07:11,960 - faraday.launcher - INFO - Starting main application.
Please config Couchdb for fancy HTML5 Dashboard (https://github.com/infobyte/faraday/wiki/Couchdb)

2016-10-20 13:07:11,960 - faraday - INFO - XMLRPC API server configured on ('localhost', 9876)
2016-10-20 13:07:11,968 - faraday - INFO - REST API server configured on ('localhost', 9977)

(faraday.py:1511): Gtk-WARNING **: Failed to get the GNOME session proxy: The name org.gnome.SessionManager is not owned

(faraday.py:1511): Gtk-WARNING **: Failed to get the Xfce session proxy: The name org.xfce.SessionManager is not owned

(faraday.py:1511): Gtk-WARNING **: Failed to get an inhibit portal proxy: The name org.freedesktop.portal.Desktop is not owned
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/share/python-faraday/utils/error_report.py", line 83, in exception_handler
model.guiapi.postCustomEvent(event)
File "/usr/share/python-faraday/model/guiapi.py", line 38, in postCustomEvent
receiver = getMainWindow()
File "/usr/share/python-faraday/model/guiapi.py", line 34, in getMainWindow
return __the_mainapp.getMainWindow()
AttributeError: 'NoneType' object has no attribute 'getMainWindow'

Original exception was:
Traceback (most recent call last):
File "/usr/share/python-faraday/gui/gtk/application.py", line 615, in do_startup
CONF.getLastWorkspace())
File "/usr/share/python-faraday/gui/gtk/mainwidgets.py", line 430, in init
self.workspaces = self.serverIO.get_workspaces_names()
File "/usr/share/python-faraday/gui/gtk/decorators.py", line 16, in wrapper
res = func(_args, *_kwargs)
File "/usr/share/python-faraday/gui/gtk/server.py", line 67, in get_workspaces_names
return models.get_workspaces_names()
File "/usr/share/python-faraday/persistence/server/models.py", line 479, in get_workspaces_names
return server.get_workspaces_names()['workspaces']
File "/usr/share/python-faraday/persistence/server/server.py", line 380, in get_workspaces_names
return _get("{0}/ws".format(_create_server_api_url()))
File "/usr/share/python-faraday/persistence/server/server.py", line 124, in _get
params=params))
File "/usr/share/python-faraday/persistence/server/server.py", line 90, in _unsafe_io_with_server
answer = server_io_function(server_url, *_payload)
File "/usr/lib/python2.7/dist-packages/requests/api.py", line 70, in get
return request('get', url, params=params, *_kwargs)
File "/usr/lib/python2.7/dist-packages/requests/api.py", line 56, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 461, in request
prep = self.prepare_request(req)
File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 394, in prepare_request
hooks=merge_hooks(request.hooks, self.hooks),
File "/usr/lib/python2.7/dist-packages/requests/models.py", line 294, in prepare
self.prepare_url(url, params)
File "/usr/lib/python2.7/dist-packages/requests/models.py", line 354, in prepare_url
raise MissingSchema(error)
requests.exceptions.MissingSchema: Invalid URL 'None/_api/ws': No schema supplied. Perhaps you meant http://None/_api/ws?
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/share/python-faraday/utils/error_report.py", line 83, in exception_handler
model.guiapi.postCustomEvent(event)
File "/usr/share/python-faraday/model/guiapi.py", line 38, in postCustomEvent
receiver = getMainWindow()
File "/usr/share/python-faraday/model/guiapi.py", line 34, in getMainWindow
return __the_mainapp.getMainWindow()
AttributeError: 'NoneType' object has no attribute 'getMainWindow'

Original exception was:
Traceback (most recent call last):
File "/usr/share/python-faraday/gui/gtk/application.py", line 676, in do_activate
self.window = AppWindow(self.sidebar,
AttributeError: 'GuiApp' object has no attribute 'sidebar'
2016-10-20 13:07:12,394 - faraday - INFO - Closing Faraday...

@micabot
Copy link
Contributor

micabot commented Oct 20, 2016

Hi @gettingstarted247! Thanks for your feedback.

Did you make any modifications to your installation? We strongly recommend reading our First Steps manual page before using the tool.

Could you please send us the content of ~/.faraday/config/server.ini and ~/.faraday/config/user.xml blocking your private data like passwords and certificates?

Cheers!

@x00TateSec
Copy link
Author

No mods before install, was installed with Kali already. Did pull down the git and run install.sh to ensure that all other dependencies/packages were installed.

user@kali:/usr/share/python-faraday$ cat ~/.faraday/config/server.ini
[faraday_server]
port=5985
bind_address=localhost

[ssl]
port=6985
certificate=
keyfile=
;keyfile_pwd=''

[couchdb]
host=localhost
port=5984
ssl_port=6984
user=
password=
protocol=http

user@kali:/usr/share/python-faraday$ cat ~/.faraday/config/user.xml

<api_con_info_host>localhost</api_con_info_host>
<api_con_info_port>9876</api_con_info_port>
<api_restful_con_info_port>9977</api_restful_con_info_port>
Faraday - Penetration Test IDE
0
<auto_share_workspace>1</auto_share_workspace>
<config_path>/home/user/.faraday/</config_path>
<data_path>/home/user/.faraday/data</data_path>
<debug_status>0</debug_status>
<default_category>General</default_category>
<default_temp_path>/home/user/.faraday/temp/</default_temp_path>
-Misc-Fixed-medium-r-normal-*-12-100-100-100-c-70-iso8859-1
<home_path>/home/user/</home_path>
<host_tree_toggle />
<hstactions_path>/home/user/.faraday/hstactions.dat</hstactions_path>
<icons_path>/home/user/.faraday/images/icons/</icons_path>
<image_path>/home/user/.faraday/images/</image_path>
<log_console_toggle />
<network_location>LAN</network_location>
<persistence_path>/home/user/.faraday/persistence/</persistence_path>
<perspective_view>/home/user/.faraday/persistence/</perspective_view>
<repo_password />
<repo_url type="SVN" />
<repo_user>u</repo_user>
<report_path>/home/user/.faraday/report/</report_path>
<shell_maximized>0</shell_maximized>
<last_workspace>untitled</last_workspace>
<couch_uri />
<couch_is_replicated>True</couch_is_replicated>
<couch_replics />
1.0.20
<plugin_settings>{"Retina": {"settings": {}, "version": "Retina Network 5.19.2.2718", "name": "Retina XML Output Plugin", "plugin_version": "0.0.1", "description": ""}, "Openvas": {"settings": {}, "version": "2.0", "name": "Openvas XML Output Plugin", "plugin_version": "0.0.2", "description": ""}, "NexposeFull": {"settings": {}, "version": "Nexpose Enterprise 5.7.19", "name": "Nexpose XML 2.0 Report Plugin", "plugin_version": "0.0.1", "description": ""}, "Qualysguard": {"settings": {}, "version": "Qualysguard 2016 March ", "name": "Qualysguard XML Output Plugin", "plugin_version": "0.0.2", "description": ""}, "Arachni": {"settings": {}, "version": "1.3.2", "name": "Arachni XML Output Plugin", "plugin_version": "1.0.1", "description": ""}, "Acunetix": {"settings": {}, "version": "9", "name": "Acunetix XML Output Plugin", "plugin_version": "0.0.1", "description": ""}, "dig": {"settings": {}, "version": "9.9.5-3", "name": "DiG", "plugin_version": "0.0.1", "description": ""}, "Dnsenum": {"settings": {}, "version": "1.2.2", "name": "Dnsenum XML Output Plugin", "plugin_version": "0.0.1", "description": ""}, "netcat": {"settings": {}, "version": "1.0.0", "name": "Netcat", "plugin_version": "0.0.1", "description": ""}, "faraday": {"settings": {}, "version": "1.0.0", "name": "Faraday Output Plugin", "plugin_version": "0.0.2", "description": ""}, "Nessus": {"settings": {}, "version": "5.2.4", "name": "Nessus XML Output Plugin", "plugin_version": "0.0.1", "description": ""}, "Sqlmap": {"settings": {"Sqlmap path": "/root/tools/sqlmap"}, "version": "1.0.8.15#dev", "name": "Sqlmap", "plugin_version": "0.0.3", "description": ""}, "ftp": {"settings": {}, "version": "0.17", "name": "Ftp", "plugin_version": "0.0.1", "description": ""}, "Listurls": {"settings": {}, "version": "6.3", "name": "Listurls XML Output Plugin", "plugin_version": "0.0.1", "description": ""}, "Traceroute": {"settings": {}, "version": null, "name": "Traceroute", "plugin_version": "1.0.0", "description": ""}, "Beef": {"settings": {"Authkey": "xxx", "Host": "http://127.0.0.1:3000/", "Enable": "0"}, "version": "0.4.4.9-alpha", "name": "BeEF Online Service Plugin", "plugin_version": "0.0.1", "description": ""}, "Wapiti": {"settings": {}, "version": "2.2.1", "name": "Wapiti XML Output Plugin", "plugin_version": "0.0.1", "description": ""}, "Netsparker": {"settings": {}, "version": "Netsparker 3.1.1.0", "name": "Netsparker XML Output Plugin", "plugin_version": "0.0.1", "description": ""}, "sshdefaultscan": {"settings": {}, "version": "1.0.0", "name": "sshdefaultscan", "plugin_version": "0.0.1", "description": ""}, "pasteAnalyzer": {"settings": {}, "version": null, "name": "pasteAnalyzer JSON Output Plugin", "plugin_version": "1.0.0", "description": ""}, "W3af": {"settings": {}, "version": "1.7.6", "name": "W3af XML Output Plugin", "plugin_version": "0.0.2", "description": ""}, "ping": {"settings": {}, "version": "1.0.0", "name": "Ping", "plugin_version": "0.0.1", "description": ""}, "Telnet": {"settings": {}, "version": "0.17", "name": "Telnet", "plugin_version": "0.0.1", "description": ""}, "Dnsmap": {"settings": {}, "version": "0.30", "name": "Dnsmap XML Output Plugin", "plugin_version": "0.0.2", "description": ""}, "Burp": {"settings": {}, "version": "1.6.05 BurpPro", "name": "Burp XML Output Plugin", "plugin_version": "0.0.2", "description": ""}, "arp-scan": {"settings": {}, "version": "1.8.1", "name": "arp-scan network scanner", "plugin_version": "0.0.1", "description": ""}, "Fierce": {"settings": {}, "version": "0.9.9", "name": "Fierce Output Plugin", "plugin_version": "0.0.1", "description": ""}, "X1": {"settings": {}, "version": "Onapsis X1 2.56", "name": "Onapsis X1 XML Output Plugin", "plugin_version": "0.0.1", "description": ""}, "Amap": {"settings": {}, "version": "5.4", "name": "Amap Output Plugin", "plugin_version": "0.0.3", "description": ""}, "Metasploit": {"settings": {}, "version": "4.7.2", "name": "Metasploit XML Output Plugin", "plugin_version": "0.0.1", "description": ""}, "Hydra": {"settings": {}, "version": "7.5", "name": "Hydra XML Output Plugin", "plugin_version": "0.0.1", "description": ""}, "Masscan": {"settings": {"Scan Technique": "-sS"}, "version": "1.0.3", "name": "Masscan Output Plugin", "plugin_version": "0.0.1", "description": ""}, "Sslcheck": {"settings": {}, "version": "0.30", "name": "Sslcheck XML Output Plugin", "plugin_version": "0.0.2", "description": ""}, "peepingtom": {"settings": {}, "version": "02.19.15", "name": "PeepingTom", "plugin_version": "0.0.1", "description": ""}, "Metagoofil": {"settings": {}, "version": "2.2", "name": "Metagoofil XML Output Plugin", "plugin_version": "0.0.1", "description": ""}, "Medusa": {"settings": {}, "version": "2.1.1", "name": "Medusa Output Plugin", "plugin_version": "0.0.1", "description": ""}, "Goohost": {"settings": {}, "version": "v.0.0.1", "name": "Goohost XML Output Plugin", "plugin_version": "0.0.1", "description": ""}, "Theharvester": {"settings": {}, "version": "2.2a", "name": "Theharvester XML Output Plugin", "plugin_version": "0.0.1", "description": ""}, "Nikto": {"settings": {}, "version": "2.1.5", "name": "Nikto XML Output Plugin", "plugin_version": "0.0.2", "description": ""}, "Core Impact": {"settings": {}, "version": "Core Impact 2013R1", "name": "Core Impact XML Output Plugin", "plugin_version": "0.0.1", "description": ""}, "whois": {"settings": {}, "version": "5.0.20", "name": "Whois", "plugin_version": "0.0.1", "description": ""}, "Reverseraider": {"settings": {}, "version": "0.7.6", "name": "Reverseraider XML Output Plugin", "plugin_version": "0.0.1", "description": ""}, "propecia": {"settings": {}, "version": "1.0", "name": "propecia port scanner", "plugin_version": "0.0.1", "description": ""}, "Dnsrecon": {"settings": {}, "version": "0.8.7", "name": "Dnsrecon XML Output Plugin", "plugin_version": "0.0.2", "description": ""}, "MetasploitOn": {"settings": {"Enable": "0", "Database": "msf3", "Wordspace": "%%", "Server": "localhost", "User": "msf3", "Password": "EKO-1919755b", "Port": "7337"}, "version": "Metasploit 4.10.0", "name": "Metasploit Online Service Plugin", "plugin_version": "0.0.3", "description": ""}, "Nmap": {"settings": {"Scan Technique": "-sS"}, "version": "6.40", "name": "Nmap XML Output Plugin", "plugin_version": "0.0.3", "description": ""}, "Skipfish": {"settings": {}, "version": "2.1.5", "name": "Skipfish XML Output Plugin", "plugin_version": "0.0.2", "description": ""}, "Ndiff": {"settings": {}, "version": "1.0.0", "name": "ndiff", "plugin_version": "0.0.1", "description": ""}, "wpscan": {"settings": {}, "version": "2.9.1", "name": "WPscan", "plugin_version": "0.0.1", "description": ""}, "Wcscan": {"settings": {}, "version": "0.30", "name": "Wcscan XML Output Plugin", "plugin_version": "0.0.2", "description": ""}, "Maltego": {"settings": {}, "version": "Maltego 3.6", "name": "Maltego MTGX Output Plugin", "plugin_version": "1.0.1", "description": ""}, "Dnswalk": {"settings": {}, "version": "2.0.2", "name": "Dnswalk XML Output Plugin", "plugin_version": "0.0.1", "description": ""}, "Nexpose": {"settings": {}, "version": "Nexpose Enterprise 5.7.19", "name": "Nexpose XML Output Plugin", "plugin_version": "0.0.1", "description": ""}, "Zap": {"settings": {}, "version": "2.4.3", "name": "Zap XML Output Plugin", "plugin_version": "0.0.3", "description": ""}, "Webfuzzer": {"settings": {}, "version": "0.2.0", "name": "Webfuzzer Output Plugin", "plugin_version": "0.0.2", "description": ""}}</plugin_settings>
<updates_uri>https://www.faradaysec.com/scripts/updates.php</updates_uri>
<tickets_uri>https://www.faradaysec.com/scripts/listener.php</tickets_uri>
<tickets_api>{}</tickets_api>
<tickets_template>{}</tickets_template>

@micabot
Copy link
Contributor

micabot commented Oct 20, 2016

@gettingstarted247 thanks for the files :)

Please replace <couch_uri /> for <couch_uri>http://127.0.0.1:5984</couch_uri> in ~/.faraday/config/user.xml.

Let me know if this works.

@x00TateSec
Copy link
Author

Got further. It brings the console up, but cant connect to the DB. System was listening on 5984. Restarted the system, manually started couchdb, and now get the following error after starting faraday-server.py and then running faraday.py:

2016-10-20 15:14:33,590 - faraday.GTK - ERROR - Couldn't get a valid response from the server when requesting to URL http://127.0.0.1:5984/_api/ws with parameters {'params': {}} and function <function get at 0x7f658f243668>.

@micabot
Copy link
Contributor

micabot commented Oct 20, 2016

Sorry about that, I sent the wrong configuration, you should change the URL in ~/.faraday/config/user.xml from <couch_uri>http://127.0.0.1:5984</couch_uri> to <couch_uri>http://127.0.0.1:5985</couch_uri>.

@x00TateSec
Copy link
Author

Up and Running. Thank you.

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

No branches or pull requests

2 participants