cair / pyvnc Goto Github PK
View Code? Open in Web Editor NEWVNC Client Library for Python
VNC Client Library for Python
Line 23 in 04fb3c0
Client()
does not have a parameter gui_with_array
Windows Defender saying that there is a HackTool:SH/PythonKeylogger.B
Is it false positive or not?
Any idea on how to implement VNC over websockets automation ?
I couldn't find the implementation of the 'get_screen' method described in the example in the readme file in the Client.py file. Do I need to implement this code myself? And if so, how should I do it?"
from pygame.locals import K_KP_ENTER
from pyVNC.Client import Client
vnc = Client(host='211.93.21.225', port=5900)
vnc.start()
vnc.send_key(K_KP_ENTER)
vnc.join()
pygame 2.5.0 (SDL 2.28.0, Python 3.8.10)
Hello from the pygame community. https://www.pygame.org/contribute.html
Traceback (most recent call last):
File "C:\Users\User\PycharmProjects\VNCGrubber\VNCGrubber\test.py", line 7, in <module>
vnc.send_key(K_KP_ENTER)
File "C:\Users\User\PycharmProjects\VNCGrubber\VNCGrubber\pyVNC\Client.py", line 36, in send_key
self.screen.protocol.key_event(constants.KEYMAPPINGS[key], down=1)
AttributeError: 'NoneType' object has no attribute 'key_event'
python==3.8.10
pyVNC==0.1
pygame==2.5.0
Twisted==22.10.0
numpy==1.24.3
Hi!
I've tried to run example from the README file, but it fails with the following:
File "../lib/python3.6/site-packages/twisted/python/log.py", line 103, in callWithLogger
return callWithContext({"system": lp}, func, *args, **kw)
File "../lib/python3.6/site-packages/twisted/python/log.py", line 86, in callWithContext
return context.call({ILogContext: newCtx}, func, *args, **kw)
File "../lib/python3.6/site-packages/twisted/python/context.py", line 122, in callWithContext
return self.currentContext().callWithContext(ctx, func, *args, **kw)
File "../lib/python3.6/site-packages/twisted/python/context.py", line 85, in callWithContext
return func(*args,**kw)
--- <exception caught here> ---
File "../lib/python3.6/site-packages/twisted/internet/selectreactor.py", line 149, in _doReadOrWrite
why = getattr(selectable, method)()
File "../lib/python3.6/site-packages/twisted/internet/tcp.py", line 243, in doRead
return self._dataReceived(data)
File "../lib/python3.6/site-packages/twisted/internet/tcp.py", line 249, in _dataReceived
rval = self.protocol.dataReceived(data)
File "../recognition/pyVNC/rfb.py", line 494, in dataReceived
self._handler()
File "../recognition/pyVNC/rfb.py", line 504, in _handle_expected
self._expected_handler(block, *self._expected_args, **self._expected_kwargs)
File "../recognition/pyVNC/rfb.py", line 163, in _handle_vnc_auth
self.vnc_request_password()
File "../recognition/pyVNC/RFBToGUI.py", line 45, in vnc_request_password
self.send_password(self.factory.password)
File "../recognition/pyVNC/rfb.py", line 169, in send_password
des = RFBDes(pw)
File "../recognition/pyVNC/pyDes.py", line 410, in __init__
self.setKey(key)
File "../recognition/pyVNC/rfb.py", line 649, in setKey
super(RFBDes, self).setKey(newkey)
File "../recognition/pyVNC/pyDes.py", line 415, in setKey
self.__create_sub_keys()
File "../recognition/pyVNC/pyDes.py", line 463, in __create_sub_keys
key = self.__permutate(des.__pc1, self.__String_to_BitList(self.getKey()))
File "../recognition/pyVNC/pyDes.py", line 429, in __String_to_BitList
if ch & (1 << i) != 0:
builtins.TypeError: unsupported operand type(s) for &: 'str' and 'int'```
Are you going to support the library furthermore?
how to implement loop method and update_complete method in class Buffer?How to Display screen?
Traceback (most recent call last):
File "/vnc.py", line 12, in <module>
vnc.send_mouse() # Left Clicks at x=200, y=200
File "/Users/d/env/sgs/lib/python3.6/site-packages/pyVNC-0.1-py3.6.egg/pyVNC/Client.py", line 68, in send_mouse
AttributeError: 'NoneType' object has no attribute 'pointer_event'
Exception ignored in: <module 'threading' from '/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/threading.py'>
Traceback (most recent call last):
File "/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/threading.py", line 1294, in _shutdown
t.join()
File "/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/threading.py", line 1056, in join
self._wait_for_tstate_lock()
File "/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/threading.py", line 1072, in _wait_for_tstate_lock
elif lock.acquire(block, timeout):
KeyboardInterrupt
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.