Jump to content

Recommended Posts

Posted

Hi,friend:

       Recently, the VNC connection was implemented on Autoit. The DLL VNCX was available on the forum. However, it was found that the keyboard information was transmitted in conflict with the local hotkey. I wanted to use the VNC RFB protocol for TCP communication. I searched for documents for several days. Currently, the version can be determined according to the protocol, however, the DES encryption interaction is always incorrect. I don't think the request is right, but I only have AOtu. Can someone help you transcode the code?

Mycode:

#Include "DES.au3"

Func _ECB($InString)
    local $Key = Binary('mypass')
    local $Data = Binary($InString)

    Local $KEYS=_DesEncryptKey($Key)
    Local $KESYEN=_DesDecryptKey($Key)
    local $Encrypt = _DesCryptECB($KEYS, $Data)
    local $Decrypt = _DesCryptECB($KESYEN, $Encrypt)
    ConsoleWrite('=== Encrypt Two Block With DES ECB Mode ===' & @CRLF)
    ConsoleWrite('Encrypt: ' & $Encrypt & @CRLF & 'Decrypt: ' & $Decrypt & @CRLF & @CRLF)
    Return $Encrypt
EndFunc

Trying to use this will not solve the problem;

This is the protocol document:

https://github.com/rfbproto/rfbproto/blob/master/rfbproto.rst

https://www.vidarholen.net/contents/junk/vnc.html

https://www.vidarholen.net/contents/junk/VNCEncrypt.java

https://gitlab.yam-it.net/yam-it/bearmetal_console/commit/c539e4dcdadc79819ed56a57b5a70c3c4c4e31a7

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...