vesche / sickserv Goto Github PK
View Code? Open in Web Editor NEWclient/server wrapper & framework for fast, encrypted comms
License: MIT License
client/server wrapper & framework for fast, encrypted comms
License: MIT License
Nest function calls for performance gain.
Very simple MUD, move around a static map. Multiplayer, chat, etc.
Very simple cli-based chat client/server example.
From setup.py
Catch this in unprocess_payload
class DecryptionError(Exception):
pass
This is in base64 encode/decode which now expects strings.
https://www.python-httpx.org/
https://www.python-httpx.org/async/
Swap out requests & websocket-client with httpx? Might be awesome.
unprocess_payload should output str instead of bytes
Just realized that keys in python dictionaries don't necessarily have to be strings. This should be a simple fix:
>>> d = {os.urandom(16):'foo'}
>>> d
{b'\xf1\x1c\xe7\xf5\xd8k\xb8}\x8e\xed\th\xa4\xb5mt': 'foo'}
see example/03-chat
/rekey -> /quit -> reconnect results in decrypt error
Need to clear out key_table on client disconnect.
Currently the payloads must be flat. This is probably a place to use a generator, need to iterate thru a nested python dictionary for base64 encoding: https://stackoverflow.com/a/10756615
import sickserv
in setup.py makes a pip install error out if the dependencies aren't installed
Support data like this:
>>> import json
>>> data = {'foo':[{'a':'b'}]}
>>> print(json.dumps(data, indent=2))
{
"foo": [
{
"a": "b"
}
]
}
Figure out sanic/websocket-client keep alive issue. The ws expires after initial connection.
Very simple RAT with command execution.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.