mirror of https://github.com/dnomd343/ProxyC
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
952 B
46 lines
952 B
#!/usr/bin/env python3
|
|
# -*- coding: utf-8 -*-
|
|
|
|
import time
|
|
from Builder import Builder
|
|
from Basis.Logger import logging
|
|
|
|
proxySS = {
|
|
'type': 'ss',
|
|
'info': {
|
|
'server': '127.0.0.1',
|
|
'port': 12345,
|
|
'passwd': 'dnomd343',
|
|
'method': 'aes-128-ctr',
|
|
'plugin': None
|
|
}
|
|
}
|
|
|
|
proxySSR = {
|
|
'type': 'ssr',
|
|
'info': {
|
|
'server': '127.0.0.1',
|
|
'port': 12345,
|
|
'passwd': 'dnomd343',
|
|
'method': 'aes-128-ctr',
|
|
'protocol': 'origin',
|
|
'protocolParam': '',
|
|
'obfs': 'plain',
|
|
'obfsParam': '',
|
|
}
|
|
}
|
|
|
|
client = Builder(proxySSR)
|
|
|
|
logging.critical(client.id)
|
|
logging.critical(client.proxyType)
|
|
logging.critical(client.proxyInfo)
|
|
logging.critical(client.socksAddr)
|
|
logging.critical(client.socksPort)
|
|
|
|
time.sleep(20)
|
|
logging.critical(client.status())
|
|
|
|
client.destroy()
|
|
logging.critical(client.status())
|
|
logging.critical('Client output:\n' + str(client.output))
|
|
|