New upstream version 2.7.2
Sophie Brun
6 years ago
6 | 6 |
|
7 | 7 |
New features in the latest update
|
8 | 8 |
=====================================
|
|
9 |
|
|
10 |
April 10, 2018:
|
|
11 |
---
|
|
12 |
* Fix bug with tornado version 5.0 and GTK client.
|
9 | 13 |
|
10 | 14 |
November 17, 2017:
|
11 | 15 |
---
|
24 | 24 |
|
25 | 25 |
_plugin_controller_api = None
|
26 | 26 |
_http_server = None
|
27 | |
|
28 | |
|
|
27 |
ioloop_instance = None
|
29 | 28 |
def startServer():
|
30 | 29 |
global _http_server
|
|
30 |
global ioloop_instance
|
31 | 31 |
if _http_server is not None:
|
32 | |
IOLoop.instance().start()
|
|
32 |
ioloop_instance.start()
|
33 | 33 |
|
34 | 34 |
|
35 | 35 |
def stopServer():
|
36 | 36 |
global _http_server
|
|
37 |
global ioloop_instance
|
37 | 38 |
if _http_server is not None:
|
38 | |
IOLoop.instance().stop()
|
|
39 |
ioloop_instance.stop()
|
39 | 40 |
_http_server.stop()
|
40 | 41 |
|
41 | 42 |
|
42 | 43 |
def startAPIs(plugin_controller, model_controller, hostname, port):
|
43 | 44 |
global _rest_controllers
|
44 | 45 |
global _http_server
|
|
46 |
global ioloop_instance
|
45 | 47 |
_rest_controllers = [PluginControllerAPI(plugin_controller), ModelControllerAPI(model_controller)]
|
46 | 48 |
|
47 | 49 |
app = Flask('APISController')
|
48 | 50 |
|
|
51 |
ioloop_instance = IOLoop.current()
|
49 | 52 |
_http_server = HTTPServer(WSGIContainer(app))
|
50 | 53 |
while True:
|
51 | 54 |
try:
|
|
74 | 77 |
logging.getLogger("tornado.access").addHandler(logger.getLogger(app))
|
75 | 78 |
logging.getLogger("tornado.access").propagate = False
|
76 | 79 |
threading.Thread(target=startServer).start()
|
77 | |
|
78 | |
def stopAPIs():
|
79 | |
stopServer()
|
80 | 80 |
|
81 | 81 |
|
82 | 82 |
class RESTApi(object):
|
1 | 1 |
<faraday>
|
2 | 2 |
|
3 | 3 |
<appname>Faraday - Penetration Test IDE</appname>
|
4 | |
<version>2.7.1</version>
|
|
4 |
<version>2.7.2</version>
|
5 | 5 |
<debug_status>0</debug_status>
|
6 | 6 |
<font>-Misc-Fixed-medium-r-normal-*-12-100-100-100-c-70-iso8859-1</font>
|
7 | 7 |
<home_path>~/</home_path>
|
8 | 8 |
from sqlalchemy.ext.declarative import declarative_base
|
9 | 9 |
|
10 | 10 |
|
11 | |
SCHEMA_VERSION = 'W.2.7.1'
|
|
11 |
SCHEMA_VERSION = 'W.2.7.2'
|
12 | 12 |
|
13 | 13 |
Base = declarative_base()
|
14 | 14 |
|