- Notifications
You must be signed in to change notification settings - Fork1
License
NotificationsYou must be signed in to change notification settings
fofapro/vulfocus-go
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Vulfocus API
is theRESUFul API
interface provided byVulfocus
for development, allowing Developers integrateVulfocus
in their own projects.
TheGO
version ofSDK
written based on theVulfocus API
makes it easy forGolang
developers to quickly integrateVulfocus
into their projects.
go get github.com/fofapro/vulfocus-go
field | description |
---|---|
addr | Vulfocus URL |
username | User loginVulfocus userboxusername |
licence | Please go to thepersonal center to viewAPI licence |
package mainimport ("fmt""github.com/fofapro/vulfocus-go")const (addr="http://vulfocus.fofa.so"username=""licence="")funcmain() {client:=vulfocus.NewClient(addr,username,licence)err,images:=client.GetImages()iferr!=nil {return }fmt.Printf("get %d images",len(images))iflen(images)==0 {return }}
package mainimport ("fmt""github.com/fofapro/vulfocus-go")const (addr="http://vulfocus.fofa.so"username=""licence="")funcmain() {client:=vulfocus.NewClient(addr,username,licence)err,images:=client.GetImages()iferr!=nil {return }fmt.Printf("get %d images",len(images))iflen(images)==0 {return }err,exposed:=client.Start(images[0].Name)iferr!=nil {return }println(exposed.Host,exposed.Port)}
package mainimport ("fmt""github.com/fofapro/vulfocus-go")const (addr="http://vulfocus.fofa.so"username=""licence="")funcmain() {client:=vulfocus.NewClient(addr,username,licence)err,images:=client.GetImages()iferr!=nil {return }fmt.Printf("get %d images",len(images))iflen(images)==0 {return }err=client.Stop(images[0].Name)iferr!=nil {return }}
package mainimport ("fmt""github.com/fofapro/vulfocus-go")const (addr="http://vulfocus.fofa.so"username=""licence="")funcmain() {client:=vulfocus.NewClient(addr,username,licence)err,images:=client.GetImages()iferr!=nil {return }fmt.Printf("get %d images",len(images))iflen(images)==0 {return }err=client.Delete(images[0].Name)iferr!=nil {return }}
2021-11-25
- Version release
About
No description or website provided.
Topics
Resources
License
Stars
Watchers
Forks
Packages0
No packages published