Fixed proxychains output in OTS as well as multiple-line body on POST reqs

This commit is contained in:
kexkey
2020-03-22 22:30:58 -04:00
parent e9321b64f3
commit 0a5526e8b4
2 changed files with 8 additions and 7 deletions

View File

@@ -67,7 +67,8 @@ main() {
if [ ${step} -eq 1 ]; then
trace "[main] step=${step}"
if [ "${http_method}" = "POST" ]; then
read -n ${content_length} line
read -rd '' -n ${content_length} line
line=$(echo "${line}" | jq -c)
trace "[main] line=${line}"
fi
case "${cmd}" in