Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ curl http://10.5.1.1/favicon.ico -o /dev/null
- exec 3<>/dev/tcp/google.com/80
- printf "GET /rnrn" >&3
- while IFS= read -r -u3 -t2 line || [[ -n "$line" ]]; do echo "$line"; done
- exec 3>&-
- exec 3<&-
- exec 3<>/dev/tcp/google.com/80
- curl http://10.5.1.1/message.txt --use-existing-socket-fd=3
- # ... do some other testing stuff ...
- wget http://10.5.1.1/message.txt --use-existing-socket-fd=3
- # ... do some other testing stuff ...
- http http://10.5.1.1/message.txt --use-existing-socket-fd=3
- exec 3>&-
- exec 3<&-
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement