2018-03-23 14:27:42 +00:00
|
|
|
import sys
|
|
|
|
import zmq
|
2018-03-27 15:05:27 +00:00
|
|
|
import tornado
|
2018-03-23 14:27:42 +00:00
|
|
|
from tornado.ioloop import IOLoop
|
|
|
|
|
|
|
|
from sql_injection_fsm import SQLInjectionFSM
|
2018-04-06 14:05:52 +00:00
|
|
|
from tfw.networking import TFWServer
|
2018-03-25 14:34:31 +00:00
|
|
|
from tfw.config import TFWENV
|
2018-03-23 14:27:42 +00:00
|
|
|
from tfw.config.logs import logging
|
2018-04-06 13:22:14 +00:00
|
|
|
|
2018-03-27 15:09:14 +00:00
|
|
|
LOG = logging.getLogger(__name__)
|
2018-03-23 14:27:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
2018-03-27 15:09:14 +00:00
|
|
|
TFWServer(SQLInjectionFSM).listen(TFWENV.WEB_PORT)
|
|
|
|
LOG.debug('Python version: %s', sys.version[:5])
|
|
|
|
LOG.debug('Tornado version: %s', tornado.version)
|
|
|
|
LOG.debug('ZeroMQ version: %s', zmq.zmq_version())
|
|
|
|
LOG.debug('PyZMQ version: %s', zmq.pyzmq_version())
|
|
|
|
LOG.info('Tornado application listening on port %s', TFWENV.WEB_PORT)
|
2018-03-23 14:27:42 +00:00
|
|
|
IOLoop.instance().start()
|