Codebase list python-faraday / 6b96150
Import new upstream release Sophie Brun 7 years ago
5 changed file(s) with 23 addition(s) and 21 deletion(s). Raw diff Collapse all Expand all
0 python-faraday (1.0.22-0kali1) kali-dev; urgency=medium
1
2 * Import new upstream release
3 * Add depends: python-twisted, python-sqlalchemy
4 * Update installation: drop wget in debian/rules and debian/control
5
6 -- Sophie Brun <[email protected]> Thu, 07 Jul 2016 12:04:20 +0200
7
08 python-faraday (1.0.21-0kali1) kali-dev; urgency=medium
19
210 * Import new upstream release
11 Section: python
22 Priority: optional
33 Maintainer: Sophie Brun <[email protected]>
4 Build-Depends: debhelper (>= 9), dh-python, python, wget, ca-certificates
4 Build-Depends: debhelper (>= 9), dh-python, python
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
16 python-sip, zsh | zsh-beta, python-twisted, python-sqlalchemy
1717 Recommends: couchdb
1818 Description: Collaborative Penetration Test IDE
1919 Faraday introduces a new concept (IPE) Integrated Penetration-Test Environment
1919 utils/ usr/share/python-faraday/
2020 views/ usr/share/python-faraday/
2121 zsh/ usr/share/python-faraday/
22 __init__.py usr/share/python-faraday/
22 *.py usr/share/python-faraday/
2323 default.keytab usr/share/python-faraday/
2424 faraday-terminal.zsh usr/share/python-faraday/
25 faraday.py usr/share/python-faraday/
2625 debian/helper-script/* usr/bin/
1010 parser.add_argument('--cert', action="store", dest="cert_path",
1111 default=None,
1212 help="Path to the valid CouchDB certificate")
13 @@ -204,45 +200,6 @@ def query_user_bool(question, default=Tr
13 @@ -204,44 +200,6 @@ def query_user_bool(question, default=Tr
1414 "(or 'y' or 'n').\n")
1515
1616
3131 - if not line.find('#'):
3232 - break
3333 - else:
34 - modules.append([line[:line.index('=')], (line[line.index('=')+2:]).strip()])
34 - modules.append(line.strip('\n'))
3535 - f.close()
3636 - pip_dist = [dist.project_name.lower() for dist in pip.get_installed_distributions()]
37 -
3837 - for module in modules:
39 - if module[0].lower() not in pip_dist:
38 - if module.lower() not in pip_dist:
4039 - try:
41 - __import__(module[0])
40 - __import__(module)
4241 - except ImportError:
4342 - if query_user_bool("Missing module %s."
44 - " Do you wish to install it?" % module[0]):
45 - pip.main(['install', "%s==%s" %
46 - (module[0], module[1]), '--user'])
43 - " Do you wish to install it?" % module):
44 - pip.main(['install', "%s" %
45 - module, '--user'])
4746 -
4847 - else:
4948 - return False
5655 def startProfiler(app, output, depth):
5756 """Profiler handler.
5857
59 @@ -522,40 +479,6 @@ _/ ____\_____ ____________ __| _/__
58 @@ -522,40 +480,6 @@ _/ ____\_____ ____________ __| _/__
6059 logger.info("Starting Faraday IDE.")
6160
6261
9796 def checkCouchUrl():
9897 import requests
9998 try:
100 @@ -571,30 +494,6 @@ def checkCouchUrl():
99 @@ -571,30 +495,6 @@ def checkCouchUrl():
101100 # Non fatal error
102101 pass
103102
128127 def init():
129128 """Initializes what is needed before starting.
130129
131 @@ -622,20 +521,12 @@ def main():
130 @@ -621,20 +521,12 @@ def main():
132131 os.chdir(FARADAY_BASE)
133132
134133 init()
137136 - logger.info("Dependencies met.")
138137 - if args.cert_path:
139138 - os.environ[REQUESTS_CA_BUNDLE_VAR] = args.cert_path
140 - checkConfiguration()
139 - checkConfiguration(args.gui)
141140 - setConf()
142141 - checkCouchUrl()
143142 - checkVersion()
148147 - logger.error("Dependencies not met. Unable to start Faraday.")
149148 + printBanner()
150149 + logger.info("Dependencies met.")
151 + checkConfiguration()
150 + checkConfiguration(args.gui)
152151 + setConf()
153152 + checkCouchUrl()
154153 + startFaraday()
1212 elif [ "$(DEB_HOST_ARCH)" = "i386" ] ; then \
1313 rm $(PACKAGE_DIR)/_helpers.so.amd64 $(PACKAGE_DIR)/_helpers.so.darwin ; \
1414 fi
15 wget "https://www.faradaysec.com/down/faraday/lib-ubuntu13-10-$(UNAME_M).tgz" -O lib-kali.tgz ; \
16 tar -xvzf lib-kali.tgz; \
17 mv lib-ubuntu13-10-*/ external_libs ; \
18 cp -R external_libs debian/python-faraday/usr/lib/python-faraday/ ; \
1915 rm -f /usr/share/python-faraday/shell/core/helpers.c /usr/share/python-faraday/shell/core/helpers.h
2016
2117 override_dh_shlibdeps: