MCPcopy Create free account
hub / github.com/SourceCode-AI/aura / menu

Function menu

tests/files/pyt_examples/command_injection_with_aliases.py:13–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11
12@app.route('/menu', methods=['POST'])
13def menu():
14 param = request.form['suggestion']
15 command = 'echo ' + param + ' >> ' + 'menu.txt'
16
17 os.system(command)
18 myos.system(command)
19 system(command)
20 mysystem(command)
21 mycall(command)
22 mypopen(command)
23
24 with open('menu.txt', 'r') as f:
25 menu_ctx = f.read()
26
27 return render_template('command_injection.html', menu=menu_ctx)
28
29
30if __name__ == '__main__':

Callers

nothing calls this directly

Calls 1

readMethod · 0.80

Tested by

no test coverage detected