eshaan7 / Flask-Shell2HTTP

Execute shell commands via HTTP server (via flask's endpoints).
https://flask-shell2http.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
170 stars 28 forks source link

[New Feature] intercepting arguments before command execution #57

Open eshaan7 opened 8 months ago

eshaan7 commented 8 months ago

Discussed in https://github.com/eshaan7/Flask-Shell2HTTP/discussions/56

Originally posted by **tomvanderputte** November 6, 2023 Is it possible to intercept and change the dynamic arguments before the command is triggered? The reason is: the arguments point to input/output files in a certain location. The application that sends the POST requests is not aware of this location (nor do I want it to be), so it sends only the filename. So I want to edit the arguments/parameters to predfix the sent arguments with the correct path. How could I achieve this?