Codebase list python-faraday / 470a246
Import new upstream release Sophie Brun 7 years ago
2 changed file(s) with 20 addition(s) and 13 deletion(s). Raw diff Collapse all Expand all
0 python-faraday (1.0.21-0kali1) kali-dev; urgency=medium
1
2 * Import new upstream release
3
4 -- Sophie Brun <[email protected]> Fri, 17 Jun 2016 11:04:18 +0200
5
06 python-faraday (1.0.20-0kali1) kali-dev; urgency=medium
17
28 * Import new upstream release
00 --- a/faraday.py
11 +++ b/faraday.py
2 @@ -129,10 +129,6 @@ def getParserArgs():
2 @@ -131,10 +131,6 @@ def getParserArgs():
33 default=False,
44 help="Ignore python dependencies resolution.")
55
1010 parser.add_argument('--cert', action="store", dest="cert_path",
1111 default=None,
1212 help="Path to the valid CouchDB certificate")
13 @@ -202,45 +198,6 @@ def query_user_bool(question, default=Tr
13 @@ -204,45 +200,6 @@ def query_user_bool(question, default=Tr
1414 "(or 'y' or 'n').\n")
1515
1616
2626 - try:
2727 - import pip
2828 - modules = []
29 - f = open(CONST_REQUIREMENTS_FILE)
29 - f = open(FARADAY_REQUIREMENTS_FILE)
3030 - for line in f:
3131 - if not line.find('#'):
3232 - break
5656 def startProfiler(app, output, depth):
5757 """Profiler handler.
5858
59 @@ -520,40 +477,6 @@ _/ ____\_____ ____________ __| _/__
59 @@ -522,40 +479,6 @@ _/ ____\_____ ____________ __| _/__
6060 logger.info("Starting Faraday IDE.")
6161
6262
7777 - uri = getInstanceConfiguration().getUpdatesUri()
7878 - resp = u"OK"
7979 - try:
80 - f = open(CONST_VERSION_FILE)
80 - f = open(FARADAY_VERSION_FILE)
8181 -
8282 - getInstanceConfiguration().setVersion(f.read().strip())
8383 - getInstanceConfiguration().setAppname("Faraday - Penetration Test IDE Community")
9797 def checkCouchUrl():
9898 import requests
9999 try:
100 @@ -569,29 +492,6 @@ def checkCouchUrl():
100 @@ -571,30 +494,6 @@ def checkCouchUrl():
101101 # Non fatal error
102102 pass
103103
104104 -def checkVersion():
105105 - try:
106 - f = open(CONST_VERSION_FILE)
106 - f = open(FARADAY_VERSION_FILE)
107107 - f_version = f.read().strip()
108108 - if not args.update:
109109 - if getInstanceConfiguration().getVersion() != None and getInstanceConfiguration().getVersion() != f_version:
116116 -
117117 - doc = {"ver": getInstanceConfiguration().getVersion()}
118118 -
119 - if os.path.isfile(CONST_CONFIG):
120 - os.remove(CONST_CONFIG)
121 - with open(CONST_CONFIG, "w") as doc_file:
119 - if os.path.isfile(FARADAY_CONFIG):
120 - os.remove(FARADAY_CONFIG)
121 - with open(FARADAY_CONFIG, "w") as doc_file:
122122 - json.dump(doc, doc_file)
123123 - except Exception as e:
124124 - getLogger("launcher").error("It seems that something's wrong with your version\nPlease contact customer support")
125125 - sys.exit(-1)
126126 -
127
127 -
128128 def init():
129129 """Initializes what is needed before starting.
130 @@ -618,20 +518,12 @@ def main():
131 """
130
131 @@ -622,20 +521,12 @@ def main():
132 os.chdir(FARADAY_BASE)
132133
133134 init()
134135 - if checkDependencies():