1 Star 0 Fork 10

豌豆多多 / python-websocket-shell

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
test.py 489 Bytes
一键复制 编辑 原始数据 按行查看 历史
zhulangren 提交于 2015-09-07 23:06 . 项目初始化提交,从git迁移
#-*- coding:utf-8 -*-
from websocket_server import WebsocketServer
import subprocess
import os
import time
import json
# Called for every client connecting (after handshake)
#logstr="%s account:%s ip:%s cmd:%s" %( time.strftime( ISOTIMEFORMAT,time.localtime(time.time())),client['account'],client['address'],cmd_dic[message])
f = file("web/config.json");
s = json.load(f)
f.close
print s['servershell']['1']
print("time:%s" % (time.strftime('%Y-%m-%d %X',time.localtime(time.time()))));
Python
1
https://gitee.com/wandouduoduo/python-websocket-shell.git
git@gitee.com:wandouduoduo/python-websocket-shell.git
wandouduoduo
python-websocket-shell
python-websocket-shell
master

搜索帮助