转储 ssl client/server 与 tcpdump 交换
Dump ssl client/server exchange with tcpdump
我正在 python3 使用请求模块编写一些代码。
我向服务器发送 https 请求,但我需要转储服务器和客户端之间的执行更改。
我知道如何用 firefox 转储 ssl 密钥并用它用 whireshark 解密数据但是如何用 python 程序做同样的事情?
我需要第三个程序,例如 ssldump 或者我可以在 python 代码中完成?
def get_city_id(city_name):
result = requests.get(url+'/json/ac-geo', params='q=' + city_name, headers=header)
return(result)
def search_annonce(criteres):
result = requests.post(url+'/annonce', headers=header, data=criteres)
print(get_city_id('draveil').json())
city_id = get_city_id('versailles').json()
criteres = {'produit': 'vente', 'geo_objets_ids': city_id[0]['id'], 'typesbien[]': 'appartement', 'surface[min]': 40, 'prix[max]': '', 'nb_pieces[list][]': 2, 'recherche': 1, 'reference_courte': ''}
如果您想解密来自无法导出 SSLKEYLOGFILE 的客户端的 HTTPS 流量,您将需要使用 TLS 代理。我们有一个名为 PolarProxy 的免费工具,它充当透明代理端,将解密的流量作为纯 HTTP 转储到可以在 Wireshark 中打开的 PCAP 文件。
我正在 python3 使用请求模块编写一些代码。 我向服务器发送 https 请求,但我需要转储服务器和客户端之间的执行更改。
我知道如何用 firefox 转储 ssl 密钥并用它用 whireshark 解密数据但是如何用 python 程序做同样的事情?
我需要第三个程序,例如 ssldump 或者我可以在 python 代码中完成?
def get_city_id(city_name):
result = requests.get(url+'/json/ac-geo', params='q=' + city_name, headers=header)
return(result)
def search_annonce(criteres):
result = requests.post(url+'/annonce', headers=header, data=criteres)
print(get_city_id('draveil').json())
city_id = get_city_id('versailles').json()
criteres = {'produit': 'vente', 'geo_objets_ids': city_id[0]['id'], 'typesbien[]': 'appartement', 'surface[min]': 40, 'prix[max]': '', 'nb_pieces[list][]': 2, 'recherche': 1, 'reference_courte': ''}
如果您想解密来自无法导出 SSLKEYLOGFILE 的客户端的 HTTPS 流量,您将需要使用 TLS 代理。我们有一个名为 PolarProxy 的免费工具,它充当透明代理端,将解密的流量作为纯 HTTP 转储到可以在 Wireshark 中打开的 PCAP 文件。