This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| echo export TMOUT=1000000 >> /root/.bash_profile | |
| cat /root/.bash_profile | |
| source .bash_profile | |
| cp /etc/ssh/sshd_config /etc/ssh/sshd_config_bak | |
| echo ClientAliveInterval=60 >> /etc/ssh/sshd_config | |
| service sshd restart | |
| cat /etc/ssh/sshd_config | |
| service sshd restart | |
| exit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| from autobahn.resource import WebSocketResource, WSGIRootResource | |
| from autobahn.websocket import WebSocketServerFactory, WebSocketServerProtocol | |
| from flask import Flask, render_template | |
| from twisted.application import internet, service | |
| from twisted.internet import reactor | |
| from twisted.python.threadpool import ThreadPool | |
| from twisted.web.server import Site |