File size: 1,877 Bytes
7de20e6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
from flask import Flask, render_template_string
import os

app = Flask(__name__)

@app.route("/")
def index():
    return render_template_string("""
    <!DOCTYPE html>
    <html>
    <head>
        <title>Firefox VNC</title>
        <style>
            body {
                font-family: Arial, sans-serif;
                display: flex;
                justify-content: center;
                align-items: center;
                min-height: 100vh;
                margin: 0;
                background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            }
            .container {
                background: white;
                padding: 40px;
                border-radius: 8px;
                box-shadow: 0 10px 25px rgba(0,0,0,0.2);
                text-align: center;
                max-width: 500px;
            }
            h1 { color: #333; margin-top: 0; }
            p { color: #666; font-size: 16px; }
            .info { 
                background: #f9f9f9; 
                padding: 20px; 
                border-left: 4px solid #667eea;
                text-align: left;
                margin-top: 20px;
                border-radius: 4px;
            }
            .info p { margin: 10px 0; font-family: monospace; }
            .status { color: #28a745; font-weight: bold; }
        </style>
    </head>
    <body>
        <div class="container">
            <h1>🔥 Firefox VNC</h1>
            <p>Firefox VNC 服务运行中...</p>
            <div class="info">
                <p><strong>VNC 密码:</strong> 123456</p>
                <p><strong>端口:</strong> 7860</p>
                <p><strong>状态:</strong> <span class="status">✅ 运行中</span></p>
            </div>
        </div>
    </body>
    </html>
    """)

if __name__ == "__main__":
    app.run(host="0.0.0.0", port=7860, debug=False, threaded=True)