11 # ❌ 硬编码密码 12 DATABASE_PASSWORD = "admin123" 13 API_KEY = "sk-1234567890abcdef"
15 # ❌ 使用 DES 加密 16 from Crypto.Cipher import DES 17 def encrypt(data):
17 def encrypt(data): 18 cipher = DES.new(b'8bytekey', DES.MODE_ECB) 19 return cipher.encrypt(data)
22 def get_user(user_id): 23 query = "SELECT * FROM users WHERE id=%s" % user_id 24 return query
29 host = request.args.get('host', 'localhost')
30 os.system("ping -c 1 " + host)
31
35 expr = request.args.get('expr', '1+1')
36 return str(eval(expr))
37
39 # ❌ 调试模式开启 40 app.run(debug=True, host='0.0.0.0')
39 # ❌ 调试模式开启 40 app.run(debug=True, host='0.0.0.0')