mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-09 19:45:13 +02:00
12 lines
270 B
Python
12 lines
270 B
Python
from flask import Flask, request
|
|||
import subprocess
|
|||
|
|||
app = Flask(__name__)
|
|||
|
|||
|
|||
@app.route('/shell_true_tainted')
|
|||
def shell_true_tainted():
|
|||
cmd = request.args.get('cmd')
|
|||
result = subprocess.run(cmd, shell=True, capture_output=True)
|
|||
return result.stdout.decode()
|