Simplify configuration
* Add missing dependencies
* Drop user/password in config by default to simplify configuration
Sophie Brun
7 years ago
1 | 1 |
Couchdb is mandatory.
|
2 | 2 |
|
3 | 3 |
|
4 | |
BEFORE RUNNING FARADAY FOR THE FIRST TIME WITH COUCHDB
|
|
4 |
IF YOU WANT TO USE USER AND PASSWORD IN COUCHDB
|
5 | 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
|
|
6 |
1. Configure couchdb
|
11 | 7 |
Start couchdb: systemctl start couchdb
|
12 | 8 |
Go to http://127.0.0.1:5984/_utils
|
13 | 9 |
Create an admin (click on "Everyone is admin. Fix This" or "Sign up"
|
14 | 10 |
on the bottom right)
|
15 | 11 |
|
16 | |
3. Configure Faraday server with user and password you set up in couchdb
|
|
12 |
2. Configure Faraday server with user and password you set up in couchdb
|
17 | 13 |
The admin name and password must be copied in the config file
|
18 | 14 |
~/.faraday/config/server.ini in section [couchdb]
|
19 | |
Reminder: This file exists only if you have already launched faraday-server.py once.
|
|
15 |
Information: This file exists only if you have already launched faraday once.
|
20 | 16 |
|
21 | |
4. Launch faraday with menu or command python-faraday
|
|
17 |
3. Launch faraday with menu or command python-faraday
|
22 | 18 |
This will start the server (systemd managed service) and start python-faraday
|
23 | 19 |
A pop up window will inform you that the client can't connect to Faraday Server,
|
24 | 20 |
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:
|
|
21 |
user and password are the one you chose in step 1:
|
26 | 22 |
http://user:[email protected]:5985
|
27 | 23 |
|
28 | 24 |
The port 5985 is the default port for Faraday in kali (see the note below)
|
|
0 |
python-faraday (2.0.0-0kali3) kali-dev; urgency=medium
|
|
1 |
|
|
2 |
* Add missing dependencies
|
|
3 |
* Drop user/password in config by default to simplify configuration
|
|
4 |
|
|
5 |
-- Sophie Brun <[email protected]> Thu, 25 Aug 2016 14:18:50 +0200
|
|
6 |
|
0 | 7 |
python-faraday (2.0.0-0kali2) kali-experimental; urgency=medium
|
1 | 8 |
|
2 | 9 |
* Do not run farday-server in postinst
|
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 | 16 |
python-sip, zsh | zsh-beta, python-twisted, python-sqlalchemy, python-openssl,
|
17 | |
couchdb (>=1.6.2~20151123-0kali3)
|
|
17 |
couchdb (>=1.6.2~20151123-0kali3), curl, gir1.2-gtk-3.0, gir1.2-vte-2.91,
|
|
18 |
python-gobject
|
18 | 19 |
Description: Collaborative Penetration Test IDE
|
19 | 20 |
Faraday introduces a new concept (IPE) Integrated Penetration-Test Environment
|
20 | 21 |
a multiuser Penetration test IDE. Designed for distribution, indexation and
|
debian/patches/change-default-ports-for-server.patch
less
more
0 | |
Description: Change the initial configuration of server
|
1 | |
Use the default port of couchdb: port is 5984 and ssl_port is 6984.
|
2 | |
Author: Sophie Brun <[email protected]>
|
3 | |
Last-Update: 2016-08-18
|
4 | |
---
|
5 | |
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
|
6 | |
--- a/server/default.ini
|
7 | |
+++ b/server/default.ini
|
8 | |
@@ -1,17 +1,17 @@
|
9 | |
[faraday_server]
|
10 | |
-port=5984
|
11 | |
+port=5985
|
12 | |
bind_address=localhost
|
13 | |
|
14 | |
[ssl]
|
15 | |
-port=6984
|
16 | |
+port=6985
|
17 | |
certificate=
|
18 | |
keyfile=
|
19 | |
;keyfile_pwd=''
|
20 | |
|
21 | |
[couchdb]
|
22 | |
host=localhost
|
23 | |
-port=5985
|
24 | |
-ssl_port=6985
|
25 | |
+port=5984
|
26 | |
+ssl_port=6984
|
27 | |
user=faraday
|
28 | |
password=changeme
|
29 | |
protocol=http
|
|
0 |
Description: Change the initial configuration
|
|
1 |
Use the default port of couchdb: port is 5984 and ssl_port is 6984.
|
|
2 |
Configure by default couchdb and server without password and user
|
|
3 |
Author: Sophie Brun <[email protected]>
|
|
4 |
Last-Update: 2016-08-18
|
|
5 |
---
|
|
6 |
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
|
|
7 |
--- a/server/default.ini
|
|
8 |
+++ b/server/default.ini
|
|
9 |
@@ -1,18 +1,18 @@
|
|
10 |
[faraday_server]
|
|
11 |
-port=5984
|
|
12 |
+port=5985
|
|
13 |
bind_address=localhost
|
|
14 |
|
|
15 |
[ssl]
|
|
16 |
-port=6984
|
|
17 |
+port=6985
|
|
18 |
certificate=
|
|
19 |
keyfile=
|
|
20 |
;keyfile_pwd=''
|
|
21 |
|
|
22 |
[couchdb]
|
|
23 |
host=localhost
|
|
24 |
-port=5985
|
|
25 |
-ssl_port=6985
|
|
26 |
-user=faraday
|
|
27 |
-password=changeme
|
|
28 |
+port=5984
|
|
29 |
+ssl_port=6984
|
|
30 |
+user=
|
|
31 |
+password=
|
|
32 |
protocol=http
|
|
33 |
|
|
34 |
--- a/config/default.xml
|
|
35 |
+++ b/config/default.xml
|
|
36 |
@@ -30,7 +30,7 @@
|
|
37 |
<repo_url type="svn"></repo_url>
|
|
38 |
<repo_user>u</repo_user>
|
|
39 |
<repo_password></repo_password>
|
|
40 |
- <couch_uri/>
|
|
41 |
+ <couch_uri>http://127.0.0.1:5985</couch_uri>
|
|
42 |
<couch_is_replicated/>
|
|
43 |
<couch_replics/>
|
|
44 |
|
0 | 0 |
remove-unwanted-checks.diff
|
1 | 1 |
copy-images-directory.patch
|
2 | |
change-default-ports-for-server.patch
|
|
2 |
modify-configuration.patch
|
1 | 1 |
Description=python-faraday Server
|
2 | 2 |
Requires=couchdb.service
|
3 | 3 |
After=couchdb.service
|
4 | |
ConditionPathExists=/root/.faraday/config/server.ini
|
5 | 4 |
|
6 | 5 |
[Service]
|
7 | 6 |
Type=simple
|