我需要从文本输入字段中呈现文本,
这是我的应用。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>
实际上,我正在尝试从文本输入执行远程代码