zlacker
[return to "Detecting the use of "curl | bash" server-side"]
◧
1. Pawamo+qx3
[view]
[source]
2018-07-31 00:44:02
>>rubyn0+(OP)
You could prevent the detection by wrapping contents in a block, so Bash reads it entirely before evaluating it: `safe_curl() { printf "{\n"; curl "$@"; printf " \n}"; }`
◧◩
2. dTal+qy3
[view]
[source]
2018-07-31 00:55:15
>>Pawamo+qx3
Quite a sensible precaution anyway, as network interruption may otherwise leave you with a partially executed script.
[go to top]