Add a .service to manage faraday-server and update the helper-script
Sophie Brun
7 years ago
0 | From Faraday version 2.0.0, Faraday is composed of Faraday Server and Faraday Client. | |
1 | Couchdb is mandatory. | |
2 | ||
3 | ||
4 | BEFORE RUNNING FARADAY FOR THE FIRST TIME WITH COUCHDB | |
5 | ||
6 | 1. Launch faraday server | |
7 | /usr/share/python-faraday/faraday-server.py | |
8 | This will fail but it created config files in ~/.faraday | |
9 | ||
10 | 2. Configure couchdb | |
11 | Start couchdb: systemctl start couchdb | |
12 | Go to http://127.0.0.1:5984/_utils | |
13 | Create an admin (click on "Everyone is admin. Fix This" or "Sign up" | |
14 | on the bottom right) | |
15 | ||
16 | 3. Configure Faraday server with user and password you set up in couchdb | |
17 | The admin name and password must be copied in the config file | |
18 | ~/.faraday/config/server.ini in section [couchdb] | |
19 | Reminder: This file exists only if you have already launched faraday-server.py once. | |
20 | ||
21 | 4. Launch faraday with menu or command python-faraday | |
22 | This will start the server (systemd managed service) and start python-faraday | |
23 | A pop up window will inform you that the client can't connect to Faraday Server, | |
24 | you will have to choose "Change server IP?" and then set up server IP with | |
25 | user and password are the one you chose in step 2: | |
26 | http://user:[email protected]:5985 | |
27 | ||
28 | The port 5985 is the default port for Faraday in kali (see the note below) | |
29 | ||
30 | You can also configure the server IP in the config file | |
31 | ~/.faraday/config/user.xml before launching faraday. | |
32 | <couch_uri>http://user:[email protected]:5985</couch_uri> | |
33 | ||
34 | ||
35 | IMPORTANT NOTE: the ports are inverted between kali and faraday wiki | |
36 | (https://github.com/infobyte/faraday/wiki/First-steps) | |
37 | Port of couchdb is 5984 in kali , 5985 mentioned on the wiki | |
38 | Port of faraday is 5985 in kali , 5984 mentioned on the wiki | |
39 | In kali we kept the default port configured in couchdb |
0 | python-faraday (2.0.0-0kali1) kali-dev; urgency=medium | |
0 | python-faraday (2.0.0-0kali1) kali-experimental; urgency=medium | |
1 | 1 | |
2 | 2 | * Import new upstream release |
3 | 3 | * Upstream didn't support qt3 anymore: update debian/rules (no more external |
4 | 4 | library to download) |
5 | 5 | * Add a patch to change the default ports of server |
6 | * Add couchdb in depends | |
7 | * Add a .service to manage faraday-server and update the helper-script to | |
8 | use this | |
9 | * Add a debian/README.debian to explain how to configure | |
6 | 10 | |
7 | 11 | -- Sophie Brun <[email protected]> Thu, 18 Aug 2016 09:45:14 +0200 |
8 | 12 |
1 | 1 | Section: python |
2 | 2 | Priority: optional |
3 | 3 | Maintainer: Sophie Brun <[email protected]> |
4 | Build-Depends: debhelper (>= 9), dh-python, python | |
4 | Build-Depends: debhelper (>= 9), dh-python, python, dh-systemd | |
5 | 5 | Standards-Version: 3.9.5 |
6 | 6 | Homepage: http://faradaysec.com |
7 | 7 | Vcs-Git: git://git.kali.org/packages/python-faraday.git |
13 | 13 | ipython, python-couchdbkit, python-mockito, python-whoosh, |
14 | 14 | python-argparse, python-ipy, python-restkit, python-requests (>= 2.7.0), |
15 | 15 | python-tornado, python-flask (>= 0.10.1), python-colorama, python-psycopg2, |
16 | python-sip, zsh | zsh-beta, python-twisted, python-sqlalchemy, python-openssl | |
17 | Recommends: couchdb | |
16 | python-sip, zsh | zsh-beta, python-twisted, python-sqlalchemy, python-openssl, | |
17 | couchdb (>=1.6.2~20151123-0kali3) | |
18 | 18 | Description: Collaborative Penetration Test IDE |
19 | 19 | Faraday introduces a new concept (IPE) Integrated Penetration-Test Environment |
20 | 20 | a multiuser Penetration test IDE. Designed for distribution, indexation and |
0 | 0 | #!/bin/sh |
1 | 1 | |
2 | systemctl start python-faraday | |
2 | 3 | cd /usr/share/python-faraday && ./faraday.py "$@" |
4 | systemctl stop python-faraday |
7 | 7 | if [ "$1" = "configure" ] && dpkg --compare-versions "$2" lt 2.0.0-0kali1; then |
8 | 8 | rm -rf /usr/share/python-faraday/shell |
9 | 9 | rm -f /usr/share/python-faraday/external_libs |
10 | if [ ! -e /root/.faraday/config/server.ini ]; then | |
11 | /usr/bin/python /usr/share/python-faraday/faraday-server.py || true | |
12 | fi | |
10 | 13 | fi |
11 | 14 | |
12 | 15 | #DEBHELPER# |