Codebase list python-faraday / debian/2.0.0-0kali1
Add a .service to manage faraday-server and update the helper-script Sophie Brun 7 years ago
6 changed file(s) with 65 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
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
11
22 * Import new upstream release
33 * Upstream didn't support qt3 anymore: update debian/rules (no more external
44 library to download)
55 * 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
610
711 -- Sophie Brun <[email protected]> Thu, 18 Aug 2016 09:45:14 +0200
812
11 Section: python
22 Priority: optional
33 Maintainer: Sophie Brun <[email protected]>
4 Build-Depends: debhelper (>= 9), dh-python, python
4 Build-Depends: debhelper (>= 9), dh-python, python, dh-systemd
55 Standards-Version: 3.9.5
66 Homepage: http://faradaysec.com
77 Vcs-Git: git://git.kali.org/packages/python-faraday.git
1313 ipython, python-couchdbkit, python-mockito, python-whoosh,
1414 python-argparse, python-ipy, python-restkit, python-requests (>= 2.7.0),
1515 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)
1818 Description: Collaborative Penetration Test IDE
1919 Faraday introduces a new concept (IPE) Integrated Penetration-Test Environment
2020 a multiuser Penetration test IDE. Designed for distribution, indexation and
00 #!/bin/sh
11
2 systemctl start python-faraday
23 cd /usr/share/python-faraday && ./faraday.py "$@"
4 systemctl stop python-faraday
77 if [ "$1" = "configure" ] && dpkg --compare-versions "$2" lt 2.0.0-0kali1; then
88 rm -rf /usr/share/python-faraday/shell
99 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
1013 fi
1114
1215 #DEBHELPER#
0 [Unit]
1 Description=python-faraday Server
2 Requires=couchdb.service
3 After=couchdb.service
4 ConditionPathExists=/root/.faraday/config/server.ini
5
6 [Service]
7 Type=simple
8 ExecStart=/usr/share/python-faraday/faraday-server.py
9
10 [Install]
11 WantedBy=multi-user.target