惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Simon Willison's Weblog
Simon Willison's Weblog
P
Privacy International News Feed
www.infosecurity-magazine.com
www.infosecurity-magazine.com
T
Troy Hunt's Blog
Hacker News - Newest:
Hacker News - Newest: "LLM"
Attack and Defense Labs
Attack and Defense Labs
S
Secure Thoughts
V2EX - 技术
V2EX - 技术
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
O
OpenAI News
Cloudbric
Cloudbric
Google Online Security Blog
Google Online Security Blog
Schneier on Security
Schneier on Security
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Help Net Security
Help Net Security
Cyberwarzone
Cyberwarzone
G
GRAHAM CLULEY
L
Lohrmann on Cybersecurity
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Spread Privacy
Spread Privacy
NISL@THU
NISL@THU
N
News and Events Feed by Topic
T
Tenable Blog
S
Security @ Cisco Blogs
N
News and Events Feed by Topic
The Hacker News
The Hacker News
C
CXSECURITY Database RSS Feed - CXSecurity.com
宝玉的分享
宝玉的分享
月光博客
月光博客
酷 壳 – CoolShell
酷 壳 – CoolShell
美团技术团队
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Google DeepMind News
Google DeepMind News
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
T
Tailwind CSS Blog
V
Visual Studio Blog
P
Proofpoint News Feed
Webroot Blog
Webroot Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
博客园 - 三生石上(FineUI控件)
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Jina AI
Jina AI
雷峰网
雷峰网
T
The Blog of Author Tim Ferriss
Hugging Face - Blog
Hugging Face - Blog
腾讯CDC
L
LangChain Blog
The Register - Security
The Register - Security
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 聂微东

博客园 - 利刃

转载:指定浏览器打开指定的网页 返流性食管炎的治疗 ldap 导出、导入ldif数据 跨表批量查找匹配数据-转载(略有改动) 转载:通过yum查找并安装包 转载:dos批处理中路径获取 转载:双网卡添加默认路由,实现内外网同时访问 bandwagonhost.com (搬瓦工)机房网速比较 - 利刃 sftp无法连接问题 转载:Shell 脚本加密 - 略有修改 java ssl 连接AD域 sap快捷登录 转载(略有修改):Windows 8的承载网络设置方法(w8 创建无线网络/ap) 转载:Keytool 工具介绍 minecraft初探 linux图像界面连接-xdm 经典的始终经典(牛蛙) vmware install win8 and server2012 problem windows硬盘优化篇
命令行访问https(转载,略有改动)
利刃 · 2019-10-17 · via 博客园 - 利刃

由于现在很多的互联网页面开始使用https,造成telnet 的http方式无法访问(文档地址:用Telnet发送HTTP请求),特补充下文:

1、安装openssl。如链接失效,请自行找其它资源。

2、将openssl 的bin目录(D:\Program Files\OpenSSL-Win64\bin)加入系统环境变量Path中。

3、使用命令访问

openssl s_client -connect www.baidu.com:443

  返回证书信息类似下文:

CONNECTED(000001A0)
depth=1 C = BE, O = GlobalSign nv-sa, CN = GlobalSign Organization Validation CA - SHA256 - G2
verify error:num=20:unable to get local issuer certificate
verify return:1
depth=0 C = CN, ST = beijing, L = beijing, OU = service operation department, O = "Beijing Baidu Netcom Science Technology Co., Ltd", CN = baidu.com
verify return:1
---
Certificate chain
0 s:C = CN, ST = beijing, L = beijing, OU = service operation department, O = "Beijing Baidu Netcom Science Technology Co., Ltd", CN = baidu.com
i:C = BE, O = GlobalSign nv-sa, CN = GlobalSign Organization Validation CA - SHA256 - G2
1 s:C = BE, O = GlobalSign nv-sa, CN = GlobalSign Organization Validation CA - SHA256 - G2
i:C = BE, O = GlobalSign nv-sa, OU = Root CA, CN = GlobalSign Root CA
---
Server certificate.....

GET / HTTP/1.1
HOST: www.baidu.com /*这句话可不要*/

再连续按两次回车键,该命令表示向baidu索要首页根文件,使用的协议是HTTP的1.1版本。

返回网页代码如下:

HTTP/1.1 200 OK
Accept-Ranges: bytes
Cache-Control: no-cache
Connection: Keep-Alive
Content-Length: 14722
Content-Type: text/html
Date: Thu, 17 Oct 2019 08:52:58 GMT
P3p: CP=" OTI DSP COR IVA OUR IND COM "
P3p: CP=" OTI DSP COR IVA OUR IND COM "
Pragma: no-cache
Server: BWS/1.1
Set-Cookie: BAIDUID=DCFC93ADF1F24B901BE236D73D94F686:FG=1; expires=Thu, 31-Dec-37 23:55:55 GMT; max-age=2147483647; path=/; domain=.baidu.com
Set-Cookie: BIDUPSID=DCFC93ADF1F24B901BE236D73D94F686; expires=Thu, 31-Dec-37 23:55:55 GMT; max-age=2147483647; path=/; domain=.b...

其它内容可以参考 用Telnet发送HTTP请求