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

推荐订阅源

美团技术团队
D
DataBreaches.Net
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
D
Docker
N
Netflix TechBlog - Medium
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
C
Check Point Blog
腾讯CDC
Stack Overflow Blog
Stack Overflow Blog
V
Visual Studio Blog
IT之家
IT之家
月光博客
月光博客
U
Unit 42
K
Kaspersky official blog
T
Threatpost
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
GbyAI
GbyAI
P
Proofpoint News Feed
Last Week in AI
Last Week in AI
云风的 BLOG
云风的 BLOG
酷 壳 – CoolShell
酷 壳 – CoolShell
I
InfoQ
Engineering at Meta
Engineering at Meta
Recorded Future
Recorded Future
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
S
Security @ Cisco Blogs
MyScale Blog
MyScale Blog
大猫的无限游戏
大猫的无限游戏
Security Archives - TechRepublic
Security Archives - TechRepublic
Webroot Blog
Webroot Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Hacker News - Newest:
Hacker News - Newest: "LLM"
S
Schneier on Security
S
Secure Thoughts
The Register - Security
The Register - Security
B
Blog RSS Feed
The Last Watchdog
The Last Watchdog
P
Palo Alto Networks Blog
爱范儿
爱范儿
B
Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
N
News and Events Feed by Topic
阮一峰的网络日志
阮一峰的网络日志
L
LINUX DO - 热门话题
C
Cisco Blogs
Spread Privacy
Spread Privacy
F
Full Disclosure
博客园 - 聂微东
T
The Blog of Author Tim Ferriss

博客园 - 利刃

转载:指定浏览器打开指定的网页 返流性食管炎的治疗 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请求