You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

github.com/und3f/vnc-screencapture

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/und3f/vnc-screencapture

v0.1.4
Source
Go
Version published
Created
Source

Go Reference

vnc-screencapture

Go VNC screen capture API and CLI.

Command line utility

Install with go install:

go install github.com/und3f/vnc-screencapture/cmd/vnc-screencapture
vnc-screencapture -vnc localhost:5900

API

Example of API usage for capturing few seconds from VNC connection:

conn, _ := net.Dial("tcp", "localhost:5900")

recorder, _ := screencapture.Connect(context.Background(), conn)

defer recorder.Close()

doneCh := make(chan any)
go func() {
    time.Sleep(2 * time.Second)
    doneCh <- struct{}{}
}()

recorder.Record(doneCh)

f, _ := os.Create("out.gif")
defer f.Close()

gifData, _ := recorder.RenderGIF()
gif.EncodeAll(f, gifData)

FAQs

Package last updated on 19 Jun 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.