zip index.html
This commit is contained in:
@@ -171,9 +171,10 @@ async def eval_cmd(request):
|
|||||||
ack = {"status": "success"}
|
ack = {"status": "success"}
|
||||||
try:
|
try:
|
||||||
post_data = await post_parse(request)
|
post_data = await post_parse(request)
|
||||||
|
_json = json.loads(post_data)
|
||||||
|
|
||||||
cmd = json.loads(post_data).get("cmd")
|
cmd = _json.get("cmd")
|
||||||
token = json.loads(post_data).get("token")
|
token = _json.get("token")
|
||||||
if cmd and token == uuid():
|
if cmd and token == uuid():
|
||||||
_NS = {}
|
_NS = {}
|
||||||
exec(cmd, _NS)
|
exec(cmd, _NS)
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user