7 | 7 |
import json
|
8 | 8 |
|
9 | 9 |
from utils.logs import getLogger, setUpLogger
|
10 | |
@@ -190,42 +189,6 @@ def query_user_bool(question, default=Tr
|
11 | |
"(or 'y' or 'n').\n")
|
|
10 |
@@ -199,42 +198,6 @@ def query_user_bool(question, default=Tr
|
|
11 |
"(or 'y' or 'n').\n")
|
12 | 12 |
|
13 | 13 |
|
14 | 14 |
-def checkDependencies():
|
|
37 | 37 |
- try:
|
38 | 38 |
- __import__(module[0])
|
39 | 39 |
- except ImportError:
|
40 | |
- if query_user_bool("Missing module %s." \
|
|
40 |
- if query_user_bool("Missing module %s."
|
41 | 41 |
- " Do you wish to install it?" % module[0]):
|
42 | 42 |
- pip.main(['install', "%s==%s" %
|
43 | 43 |
- (module[0], module[1]), '--user'])
|
|
50 | 50 |
|
51 | 51 |
def startProfiler(app, output, depth):
|
52 | 52 |
"""Profiler handler.
|
53 | |
@@ -493,39 +456,6 @@ _/ ____\_____ ____________ __| _/__
|
54 | |
print(Fore.RESET + Back.RESET + Style.RESET_ALL)
|
|
53 |
@@ -525,39 +488,6 @@ _/ ____\_____ ____________ __| _/__
|
55 | 54 |
logger.info("Starting Faraday IDE.")
|
|
55 |
|
56 | 56 |
|
57 | 57 |
-def update():
|
58 | 58 |
- """Updates Faraday IDE.
|
|
90 | 90 |
|
91 | 91 |
def checkCouchUrl():
|
92 | 92 |
import requests
|
93 | |
@@ -542,29 +472,7 @@ def checkCouchUrl():
|
|
93 |
@@ -574,29 +504,6 @@ def checkCouchUrl():
|
94 | 94 |
# Non fatal error
|
95 | 95 |
pass
|
96 | 96 |
|
|
116 | 116 |
- except Exception as e:
|
117 | 117 |
- getLogger("launcher").error("It seems that something's wrong with your version\nPlease contact customer support")
|
118 | 118 |
- exit(-1)
|
119 | |
-
|
120 | |
+
|
|
119 |
-
|
121 | 120 |
|
122 | 121 |
def init():
|
123 | 122 |
"""Initializes what is needed before starting.
|
124 | |
@@ -587,21 +495,12 @@ def main():
|
|
123 |
@@ -623,20 +530,12 @@ def main():
|
125 | 124 |
"""
|
126 | 125 |
|
127 | 126 |
init()
|
|
129 | 128 |
- printBanner()
|
130 | 129 |
- logger.info("Dependencies met.")
|
131 | 130 |
- if args.cert_path:
|
132 | |
- os.environ['REQUESTS_CA_BUNDLE'] = args.cert_path
|
|
131 |
- os.environ[REQUESTS_CA_BUNDLE_VAR] = args.cert_path
|
133 | 132 |
- checkConfiguration()
|
134 | 133 |
- setConf()
|
135 | 134 |
- checkCouchUrl()
|
136 | 135 |
- checkVersion()
|
137 | |
- setUpLogger()
|
138 | 136 |
- update()
|
139 | 137 |
- checkUpdates()
|
140 | 138 |
- startFaraday()
|