Skip to content

Commit

Permalink
some ASAs are confused by stripping newlines from CSD response
Browse files Browse the repository at this point in the history
See #139 for report of this.

Using `curl --data-binary` instead of `--data` should avoid this issue.

Signed-off-by: Daniel Lenski <dlenski@gmail.com>
  • Loading branch information
dlenski committed May 6, 2020
1 parent 6ed6ff3 commit 8ac132f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trojans/csd-post.sh
Expand Up @@ -151,7 +151,7 @@ fi
COOKIE_HEADER="Cookie: sdesktop=$TOKEN"
CONTENT_HEADER="Content-Type: text/xml"
URL="https://$CSD_HOSTNAME/+CSCOE+/sdesktop/scan.xml?reusebrowser=1"
curl $PINNEDPUBKEY -H "$CONTENT_HEADER" -H "$COOKIE_HEADER" --data @$RESPONSE "$URL" > $RESULT
curl $PINNEDPUBKEY -H "$CONTENT_HEADER" -H "$COOKIE_HEADER" --data-binary @$RESPONSE "$URL" > $RESULT

cat $RESULT || :

Expand Down

0 comments on commit 8ac132f

Please sign in to comment.