Py学习  »  Python

从python输入呈现文本

Marawan • 3 年前 • 1103 次点击  

我需要从文本输入字段中呈现文本, 这是我的应用。py

@app.route("/")
@app.route("/",methods=['POST'])
def data():
    text = request.form['command']
    return render_template("exploit.html") + text

if __name__ == '__main__':
    app.run(debug=1)

这是我的功劳。html代码

<body>
<form action="POST">
    <label>Command: </label>
    <input type="text" name = "command"> 
    <input type = "submit" value = "send">
</form>

实际上,我正在尝试从文本输入执行远程代码

Python社区是高质量的Python/Django开发社区
本文地址:http://www.python88.com/topic/131148
 
1103 次点击  
文章 [ 1 ]  |  最新文章 3 年前