项目作者: numaru

项目描述 :
A tiny SOCKS4 proxy server.
高级语言: Python
项目地址: git://github.com/numaru/socksy.git
创建时间: 2017-03-07T08:12:28Z
项目社区:https://github.com/numaru/socksy

开源协议:GNU General Public License v3.0

下载


Socksy

A tiny SOCKS proxy server. It support SOCKS4 and provide received messages throught callbacks.

Callbacks

The followings callbacks are availables:

  • on_client_message(thread_id, socket_from, socket_to, data) When a message arrive from client
  • on_server_message(thread_id, socket_from, socket_to, data) When a message arrive from server
  • on_open(thread_id, socket_client, socket_server) When a connection is opened
  • on_close(thread_id) When a connection is closed

Socksy CLI

A small example which print the received packets to the standard output.

  1. python socksy_cli.py [port_number]

The default port number is 1080.