Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for ultra-ms-logon-2 authentication #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file removed example/client/debug
Binary file not shown.
5 changes: 3 additions & 2 deletions example/client/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ func main() {
ccfg := &vnc.ClientConfig{
SecurityHandlers: []vnc.SecurityHandler{
//&vnc.ClientAuthATEN{Username: []byte(os.Args[2]), Password: []byte(os.Args[3])}
&vnc.ClientAuthVNC{Password: []byte("12345")},
&vnc.ClientAuthNone{},
// &vnc.ClientAuthVNC{Password: []byte("12345")},
// &vnc.ClientAuthNone{},
&vnc.ClientAuthUltraMsAutoLogon2{Username: []byte(os.Args[2]), Password: []byte(os.Args[3])},
},
DrawCursor: true,
PixelFormat: vnc.PixelFormat32bit,
Expand Down
27 changes: 27 additions & 0 deletions example/client/ultra-ms-logon-2-encrypt/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
all: vnc2video.zip

ultra-ms-logon-2-encrypt: main.c d3des.h d3des.c
gcc -Os -o $@ -m64 main.c
strip $@

vnc2video: ../main.go ffmpeg
(cd .. && go build -o $@)
cp ../$@ .

vnc2video.zip: ultra-ms-logon-2-encrypt vnc2video ffmpeg
zip -9 $@ $^
sha256sum $@

ffmpeg:
rm -rf ffmpeg-*-static*
wget -q https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-64bit-static.tar.xz
tar xf ffmpeg-release-64bit-static.tar.xz
mv ffmpeg-*-static/ffmpeg .
chmod +x ffmpeg
rm -rf ffmpeg-*-static
./ffmpeg -version

clean:
rm -f vnc2video.zip vnc2video ultra-ms-logon-2-encrypt ffmpeg-*-static* ffmpeg *.mov

.PHONY: all clean
24 changes: 24 additions & 0 deletions example/client/ultra-ms-logon-2-encrypt/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# About

Encrypts a username and password as the ultra-vnc ms-auto-logon-2 plugin.

# Usage

Build:

```bash
make clean all
```

Then use it like:

```bash
./vnc2video example1.windows.com:5900 vagrant vagrant
```

## Source Code

Most of the included source code came from:

* https://github.com/TigerVNC/tigervnc/blob/8c6c584377feba0e3b99eecb3ef33b28cee318cb/common/rfb/d3des.h
* https://github.com/TigerVNC/tigervnc/blob/8c6c584377feba0e3b99eecb3ef33b28cee318cb/common/rfb/d3des.c
Loading