
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
github.com/tiagomelo/go-clipboard
A cross-platform clipboard utility for Go.
It offers abilities for copying and pasting plain text.
go get github.com/tiagomelo/go-clipboard/clipboard
https://pkg.go.dev/github.com/tiagomelo/go-clipboard
OS | Supported copy tools | Supported paste tools |
---|---|---|
Darwin | pbcopy | pbpaste |
Windows | clip.exe | powershell |
Linux/FreeBSD/NetBSD/OpenBSD/Dragonfly | X11: xsel , xclip Wayland: wl-copy | X11: xsel , xclip Wayland: wl-paste |
Solaris | X11: xsel , xclip | X11: xsel , xclip |
Android (via Termux) | termux-clipboard-set | termux-clipboard-get |
package main
import (
"fmt"
"os"
clipboard "github.com/tiagomelo/go-clipboard/clipboard"
)
func main() {
text := "some text"
c := clipboard.New()
if err := c.CopyText(text); err != nil {
fmt.Println(err)
os.Exit(1)
}
fmt.Printf("text \"%s\" was copied into clipboard. Paste it elsewhere.\n", text)
}
package main
import (
"fmt"
"os"
clipboard "github.com/tiagomelo/go-clipboard/clipboard"
)
func main() {
c := clipboard.New()
text, err := c.PasteText()
if err != nil {
fmt.Println(err)
os.Exit(1)
}
fmt.Printf("text from clipboard: %v\n", text)
}
make test
run-tasks.bat test
FAQs
Unknown package
Did you know?
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.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.