On 2024-03-02 19:50, Jo-Philipp Wich wrote:
Hi.

You need a double backslash to escape the backslash itself.

"/usr/bin/find -L /dev -maxdepth 3 -type c -name lp\\[0-9\\]": ["exec"]

~ Jo

No go. Still 403.

Pretty sure I've tried all workable permutations in the js and JSON of escaping. Restarted rpcd and cleared browser cache between every new test.

JSON:

"/usr/bin/find -L /dev -maxdepth 3 -type c -name lp\\[0-9\\]": ["exec"]

JS
fs.exec_direct('/usr/bin/find', [ '-L', '/dev', '-maxdepth', '3', '-type', 'c', '-name', 'lp[0-9]' ])...

403


_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to