/python-proxy

Python Proxy Script

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

Python Socks5 Proxy

Date: 04/28 2016

Contents

简介

一个基于Python写的Socks5代理脚本。

使用

直接使用:

git clone https://github.com/LuoZijun/python-proxy
cd python-proxy
python -m proxy

assets/socks5.config.png

然后在你的浏览器当中的网络设置里,填上 代理地址: 127.0.0.1 ,端口: 1070 。

最后勾上 SOCKS 5 和 远程DNS 选项。

assets/socks5.png

在你的代码当中引用:

from proxy import Proxy

if __name__ == '__main__':
    host  = "0.0.0.0"
    port  = 1070
    proxy = Proxy(host=host, port=port)
    proxy.run()

参考

SOCKS:

SOCKS 5

SOCKS 4

HTTP 1.1:

HTTP 2.0:

TLS/SSL:

安全套接层 (英语:Secure Sockets Layer,缩写:SSL)为 传输层安全协议 (英语:Transport Layer Security,缩写:TLS)的前身。

TLS 基于 SSL 3.0 演化而来。

SSL 3.0

  • RFC 6101 , The Secure Sockets Layer (SSL) Protocol Version 3.0

TLS 1.0

  • RFC 2246 , The TLS Protocol Version 1.0
  • RFC 3546 , Transport Layer Security (TLS) Extensions
  • RFC 5746 , Transport Layer Security (TLS) Renegotiation Indication Extension
  • RFC 6176 , Prohibiting Secure Sockets Layer (SSL) Version 2.0
  • RFC 7465 , Prohibiting RC4 Cipher Suites
  • RFC 7507 , TLS Fallback Signaling Cipher Suite Value (SCSV): for Preventing Protocol Downgrade Attacks

TLS 1.1

  • RFC 4346 , The Transport Layer Security (TLS) Protocol Version 1.1
  • RFC 4366 , Transport Layer Security (TLS) Extensions
  • RFC 4680 , TLS Handshake Message for Supplemental Data
  • RFC 4681 , TLS User Mapping Extension
  • RFC 5746 , Transport Layer Security (TLS) Renegotiation Indication Extension
  • RFC 6176 , Prohibiting Secure Sockets Layer (SSL) Version 2.0
  • RFC 7465 , Prohibiting RC4 Cipher Suites
  • RFC 7507 , TLS Fallback Signaling Cipher Suite Value (SCSV): for Preventing Protocol Downgrade Attacks

TLS 1.2

  • RFC 5246 , The Transport Layer Security (TLS) Protocol Version 1.2
  • RFC 5746 , Transport Layer Security (TLS) Renegotiation Indication Extension
  • RFC 5878 , Transport Layer Security (TLS) Authorization Extensions
  • RFC 6176 , Prohibiting Secure Sockets Layer (SSL) Version 2.0
  • RFC 7465 , Prohibiting RC4 Cipher Suites
  • RFC 7507 , TLS Fallback Signaling Cipher Suite Value (SCSV): for Preventing Protocol Downgrade Attacks
  • RFC 7568 , Deprecating Secure Sockets Layer Version 3.0
  • RFC 7627 , Transport Layer Security (TLS) Session Hash and Extended Master Secret Extension
  • RFC 7685 , A Transport Layer Security (TLS) ClientHello Padding Extension

TLS 1.3

Note

TLS 1.3 目前处于草案阶段,最后更新是 2016/03/21