Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
github.com/wenlng/go-captcha-assets
Go Captcha presets some default embedded resources and stores them in the Go file format. In addition, you can also configure the captcha according to your own needs.
$ go get -u github.com/wenlng/go-captcha-assets@latest
import "github.com/wenlng/go-captcha-assets/bindata/chars"
func Demo() {
chars := chars.GetChineseChars()
}
import "github.com/wenlng/go-captcha-assets/bindata/chars"
func Demo() {
chars := chars.GetAlphaChars()
}
import "github.com/wenlng/go-captcha-assets/resources/fonts/fzshengsksjw"
import "github.com/wenlng/go-captcha-assets/resources/fonts/yrdzst"
func Demo() {
fonts, err := fzshengsksjw.GetFont()
if err != nil {
log.Fatalln(err)
}
// OR
fonts, err := yrdzst.GetFont()
if err != nil {
log.Fatalln(err)
}
}
import "github.com/wenlng/go-captcha-assets/resources/images"
func Demo() {
imgs, err := images.GetImages()
if err != nil {
log.Fatalln(err)
}
}
import "github.com/wenlng/go-captcha-assets/resources/shapes"
func Demo() {
shapeMaps, err := shapes.GetShapes()
if err != nil {
log.Fatalln(err)
}
}
import "github.com/wenlng/go-captcha-assets/resources/thumb"
func Demo() {
imgs, err := thumb.GetImages()
if err != nil {
log.Fatalln(err)
}
}
import "github.com/wenlng/go-captcha-assets/resources/tiles"
func Demo() {
graphs, err := tiles.GetTiles()
if err != nil {
log.Fatalln(err)
}
// slide
var newGraphs = make([]*slide.GraphImage, 0, len(graphs))
for i := 0; i < len(graphs); i++ {
graph := graphs[i]
newGraphs = append(newGraphs, &slide.GraphImage{
OverlayImage: graph.OverlayImage,
MaskImage: graph.MaskImage,
ShadowImage: graph.ShadowImage,
})
}
}
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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.