a safe proxy over tls

Related tags

Networkingproxy
Overview

TlsProxys

基于TLS协议的http流量代理


安装

需要python3.7+

linux: python3.9 -m pip install TlsProxys
windows: pip install TlsProxys

基本用法

服务器端:

$ tpserver [command] [filename1[, filename2]]

客户端:

$ tpclient [command] [filename1[, filename2]]

命令行参数含义

  • -c : 手动指定配置文件
  • -g : 生成私钥-证书
  • -r : 递归文件搜索
  • -v : 版本信息
  • -h : 帮助信息

举例:

读取config.json作为配置文件:

tpclient -c config.json

生成 app.key app.crt 私钥-证书对:

tpclient -g app.key app.crt

在本目录下递归查找config.json:

tpclient -r config.json

无参数调用

若不带参数地调用tpclient/tpserver且当前目录下不存在config.json, TlsProxys会交互式地读取用户的输入并在本目录下生成一个config.json文件。

注意:客户端和服务器的配置文件略有不同

一般用法

本条目将给出一个比较完整的提示,一般用户可以参考本流程使用TlsProxys。

在本节所有示例中,tpclient运行在本地 ; tpserver运行在服务器端。

准备工作

首先,用户需要确保机器上安装有openssl库。可用如下命令测试:

openssl version

若打印版本信息,则openssl已经安装。

TlsProxys使用Tls协议传输数据, 服务器上需要私钥-证书对, 首先在本地生成一个私钥,并用它生成自签名证书:

tpclient -g app.key app.crt

TlsProxys会自动调用openssl, 按照提示输入信息。如果调用成功,本目录下会生成 app.key, app.crt两个文件。

在本地,把app.crt导入浏览器根证书列表;把app.keyapp.crt传输到远程服务器。

启动服务

在服务器上, cd到app.keyapp.crt的目录下, 执行:

tpserver

这会启动一个交互式的读取器, 输入示例如下:

server: 255.255.255.255
port: 8000
password: my_password
certificate: app.crt
private-key: app.key

若解释器没有抛出异常, 命令行应该打印:
255.255.255.255:8000 is serving

在本地, 执行:

tpclient

在交互式读取器内输入:

server: 255.255.255.255
port: 8000
password: my_password
local_port: 8080

若解释器没有抛出异常, 命令行应该打印:
127.0.0.1:8080 is serving

最后修改浏览器代理配置: 地址: 127.0.0.1
端口: 8080

Done.

LICENSE

GPLv3

Owner
Das man und...
A gRPC-Web implementation for Python

Sonora Sonora is a Python-first implementation of gRPC-Web built on top of standard Python APIs like WSGI and ASGI for easy integration. Why? Regular

Alex Stapleton 216 Dec 30, 2022
Linkedin Connection Automation

Why spend an hour+ a week, connecting with the correct people on LinkedIn when you can go for lunch and let your computer do the hard work?

1 Nov 29, 2021
Python Scrcpy Client - allows you to view and control android device in realtime

Python Scrcpy Client This package allows you to view and control android device in realtime. Note: This gif is compressed and experience lower quality

LengYue 126 Jan 02, 2023
Modern Denial-of-service ToolKit for python

💣 Impulse Modern Denial-of-service ToolKit 💻 Main window 📡 Methods: Method Target Description SMS PHONE Sends a massive amount of SMS messages and

1 Nov 29, 2021
A powerful framework for decentralized federated learning with user-defined communication topology

Scatterbrained Decentralized Federated Learning Scatterbrained makes it easy to build federated learning systems. In addition to traditional federated

Johns Hopkins Applied Physics Laboratory 7 Sep 26, 2022
A repository dedicated to IoT(internet of things ) and python scripts

📑 Introduction Week of Learning is a weekly program in which you will get all the necessary knowledge about Circuit-Building, Arduino and Micro-Contr

27 Nov 22, 2022
A benchmark for stateful fuzzing of network protocols

A benchmark for stateful fuzzing of network protocols

3 Apr 25, 2022
Automatic Proxy scraper and Proxy-rotating Nitro Generator.

Automatic Proxy scraper and Proxy-rotating Nitro Generator.

Tawren007 2 Nov 08, 2021
A fully automated, accurate, and extensive scanner for finding log4j RCE CVE-2021-44228

log4j-scan A fully automated, accurate, and extensive scanner for finding vulnerable log4j hosts Features Support for lists of URLs. Fuzzing for more

FullHunt 3.2k Jan 02, 2023
A Python tool used to automate the execution of the following tools : Nmap , Nikto and Dirsearch but also to automate the report generation during a Web Penetration Testing

📡 WebMap A Python tool used to automate the execution of the following tools : Nmap , Nikto and Dirsearch but also to automate the report generation

Iliass Alami Qammouri 274 Jan 01, 2023
Python Program to connect to different VPN servers autoatically using Windscribe VPN.

AutomateVPN What is VPN ? VPN stands for Virtual Private Network , it is a technology that creates a safe and encrypted connectionover a less secure n

Vivek 1 Oct 27, 2021
Public HTTPS access to Home Assistant with Dataplicity service

Custom component for public HTTPS access to Home Assistant with Dataplicity service. Should work on any Linux PC or ARM, not only Raspberry as Dataplicity service said. Don't work on Windows.

Alex X 70 Oct 03, 2022
syncio: asyncio, without await

syncio: asyncio, without await asyncio can look very intimidating to newcomers, because of the async/await syntax. Even experienced programmers can ge

David Brochart 10 Nov 21, 2022
A python socket.io client for Roboteur

Roboteur Client Example TODO Basic setup Install the requirements: $ pip install -r requirements.txt Run the application: $ python -m roboteur_client

Barry Buck 1 Oct 13, 2021
Simple DNS resolver for asyncio

Simple DNS resolver for asyncio aiodns provides a simple way for doing asynchronous DNS resolutions using pycares. Example import asyncio import aiodn

Saúl Ibarra Corretgé 471 Dec 27, 2022
A server and client for passing data between computercraft computers/turtles across dimensions or even servers.

ccserver A server and client for passing data between computercraft computers/turtles across dimensions or even servers. pastebin get zUnE5N0v client

1 Jan 22, 2022
Lightweight asyncio compatible utilities for consuming broker messages.

A simple asyncio compatible consumer for handling amqp messages.

Mehdi Kamani 3 Apr 10, 2022
Python tutorial for implementing Oxylabs' Residential Proxies with AIOHTTP

Integrating Oxylabs' Residential Proxies with AIOHTTP Requirements for the Integration For the integration to work you'll need to install aiohttp libr

Oxylabs.io 6 Sep 14, 2022
A library of functions that can be used to manage the download of claims from the LBRY network.

lbrytools A library of functions that can be used to manage the download of claims from the LBRY network. It includes methods to download claims by UR

13 Dec 03, 2022
Tool that creates a complete copy of your server

Discord-Server-Cloner Tool that creates a complete copy of your server Setup: Open run.bat If the file closes, open cmd And write: pip install -r requ

DEEM 3 Dec 13, 2021