Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. $ curl http://10.5.1.1/favicon.ico -o /dev/null
  2.  
  3. exec 3<>/dev/tcp/google.com/80
  4. printf "GET /rnrn" >&3
  5. while IFS= read -r -u3 -t2 line || [[ -n "$line" ]]; do echo "$line"; done
  6. exec 3>&-
  7. exec 3<&-
  8.  
  9. exec 3<>/dev/tcp/google.com/80
  10. curl http://10.5.1.1/message.txt --use-existing-socket-fd=3
  11. # ... do some other testing stuff ...
  12. wget http://10.5.1.1/message.txt --use-existing-socket-fd=3
  13. # ... do some other testing stuff ...
  14. http http://10.5.1.1/message.txt --use-existing-socket-fd=3
  15. exec 3>&-
  16. exec 3<&-
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement