Advertisement
Guest User

Untitled

a guest
Nov 19th, 2014
531
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ### ### ### terminal 1 ### ### ###
  2.  
  3. bash-4.3$ awk -f - <<'ENDOFCODE'
  4. > BEGIN{while(s="/inet/tcp/8080/0/0"){print"HTTP/1.1 418 I'm a teapot\n"|&s
  5. > close(s)}}
  6. > ENDOFCODE
  7.  
  8. ### ### ### terminal 2 ### ### ###
  9.  
  10. bash-4.3$ curl -D - http://localhost:8080/
  11. HTTP/1.1 418 I'm a teapot
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement