Coder Social home page Coder Social logo

remote-connection-anywhere's Introduction

Remote-connection-anywhere

Short description

I created this project in order to create connections to an otherwise protected zone, through async means (shared folder, e-mail)

It shows also some tests when working with sockets.

Architecture

Communication client ⇆ Communication layer ⇆ Action server

Communication layers

Client ⇆ Session ⇆ Physical mean ⇆ Session ⇆ Server

Action clients / servers

Transverse

  • ✅ : Method to clean shared space

💡 : ideas

🚧 : in construction

✅ : complete

Credential managers

See src/remoteconanywhere/cred.py

  • ✅ .netrc file
  • ✅ local file

What to do next?

  • 💡 : commands to all/one servers:
    • redistribute capabilities (if cleaned by a client)
    • stop
    • display statistics (opened sessions, all sessions since start, etc)

How to run it

###### on the server side:

from remoteconanywhere.communication import *
from remoteconanywhere.pipe import *

# choose and configure one server
server = FolderCommServer('/path/to/folder')
# register action servers
server.registerCapability(GenericPipeActionServer())
server.registerCapability(PipeActionServer(sys.executable, '-i', '-u'))
server.registerCapability(PipeActionServer('/bin/bash', '-i'))
# start the server
server.serveForever()



###### on the client side:

# select the client to use
client = FolderCommClient('/path/to/folder')
# check server/capabilities
client.listServers()
client.capabilities('serverid')
# open a session, give it to the capability client
session = client.openSession('serverid', 'pipe')
PipeLineClient(session).start()

How to run it (old)

🚧 In construction, old API, kept here for the parameters, when a new bash api will be written

python3 test_socket.py asyncio 8910 www.google.com 443 &
wget --no-check-certificate https://127.0.0.1:8910
python3 remoteconanywhere.py --help
python3 remoteconanywhere.py imaptest --host imap.gmail.com:ssl

remote-connection-anywhere's People

Contributors

arglanir avatar

Watchers

 avatar

remote-connection-anywhere's Issues

Compatibility with pytest

test/configurationoftests.py must have everything. Or maybe if import error, use a mock in the tests.

To run pytest:
PYTHONPATH=src:test pytest

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.