⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 config.py

📁 honeyd1.0的源代码 希望对大家有用
💻 PY
字号:
import timeimport supportfrom htmltmpl import TemplateManager, TemplateProcessorself.send_response(200)self.send_header("Content-Type", "text/html")self.send_nocache()self.end_headers()# Process commands given to usmessage = support.parse_query(self.query)# Compile or load already precompiled template.template = TemplateManager().prepare(self.root+"/templates/index.tmpl")tproc = TemplateProcessor(0)# Set the title.tproc.set("title", "Honeyd Configuration Interface")content = "Welcome to the Honeyd Configuration Interface.<p>"content += support.config_table()content += "<p>"content += support.config_ips(self.root)if message:    tproc.set("message", message)tproc.set("content", content)tproc.set("uptime", support.uptime())# Print the processed template.self.wfile.write(tproc.process(template))

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -