Giter Club home page Giter Club logo

pyguacamole's Issues

A minor question with django

thanks for your project!

i'm using it with django, and an error occurred while I was running the program:bytes has no attribute encode 。so i changed the code of client.py at line 122.
before:

self.client.sendall(data.encode())

after:

if isinstance(data, bytes): self.client.sendall(data) elif isinstance(data, str): self.client.sendall(data.encode())

and then the program runs well.

i hope this issue will help

Socket report an error when handshake with SSH-2.0-OpenSSH

guac=GuacamoleClient(self.ip,self.port)
guac.handshake(self.protocol,ignore_cert="true")     # Exception:socket.timeout

this step in client.py:

 # 2. Receive `args` instruction
 instruction = self.read_instruction() ->Instruction.load(self.receive()) -> self.receive() -> self._buffer
print(self.buffer)  

# output:  
#   bytearray(b'')
#   bytearray(b'SSH-2.0-OpenSSH_7.4\r\n')
#   Exception inside application: timed out

# Exception:
#   ……
#   buf = self.client.recv(BUF_LEN)
#   socket.timeout: timed out

asking for help,thx

hello,when i according to tutor,
client.handshake(protocol='rdp', hostname='localhost', port=3389)
it returns an error:
AttributeError: 'NoneType' object has no attribute 'endswith'

all logs output:

from guacamole.client import GuacamoleClient
client = GuacamoleClient('127.0.0.1', 4822)
client.handshake(protocol='rdp', hostname='localhost', port=3389)
Traceback (most recent call last):
File "", line 1, in
File "/root/py/integrate-server/flask/lib/python3.6/site-packages/guacamole/client.py", line 159, in handshake
instruction = self.read_instruction()
File "/root/py/integrate-server/flask/lib/python3.6/site-packages/guacamole/client.py", line 127, in read_instruction
return Instruction.load(self.receive())
File "/root/py/integrate-server/flask/lib/python3.6/site-packages/guacamole/instruction.py", line 69, in load
if not instruction.endswith(INST_TERM):
AttributeError: 'NoneType' object has no attribute 'endswith'


thx for your help.

Pyguacamole logs

I am using pyguacamole on a django project and I can't see pyguacamole logs. Is there something I should do other than adding pyguacamole to my LOGGING section in setting.py of my project ? or could I be doing it wrong ?

Implementing an SSH/RDP Tunnel in Django for Interactive VM Sessions

Hello,

I’m working on a Django backend and looking to implement a tunneling mechanism that would allow the frontend to initiate interactive SSH/RDP sessions. The goal is for end-users to access their Linux/Windows VMs directly from my application.

Is it possible to create such a tunnel object within Django that facilitates WebSocket calls for this purpose? If so, could this be achieved using this module, or is there another recommended approach?

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.