Skip to content

Instantly share code, notes, and snippets.

@xianminx
Last active April 7, 2016 08:06
Show Gist options
  • Save xianminx/23f1d4ba077816101f6c96ccffd7911e to your computer and use it in GitHub Desktop.
Save xianminx/23f1d4ba077816101f6c96ccffd7911e to your computer and use it in GitHub Desktop.
一些简单的Linux 工具 - netcat / nc
nc — arbitrary TCP and UDP connections and listens
➜ Downloads nc baidu.com 80
GET / HTTP/1.1
User-Agent: curl/7.38.0
Host: baidu.com
Accept: */*
HTTP/1.1 200 OK
Date: Thu, 07 Apr 2016 07:59:00 GMT
Server: Apache
Last-Modified: Tue, 12 Jan 2010 13:48:00 GMT
ETag: "51-47cf7e6ee8400"
Accept-Ranges: bytes
Content-Length: 81
Cache-Control: max-age=86400
Expires: Fri, 08 Apr 2016 07:59:00 GMT
Connection: Keep-Alive
Content-Type: text/html
<html>
<meta http-equiv="refresh" content="0;url=http://www.baidu.com/">
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment