Skip to content

基于Go实现的网络空间漏洞资产收集引擎第三方库

License

Notifications You must be signed in to change notification settings

N0el4kLs/cyberetrieve

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cyber-Retrieve

介绍

Cyber-Retrieve 是使用Go实现的网络空间搜索引擎的第三方包, 用于从中检索信息.

  1. 支持语法自动转换(部分)
  2. 支持多种搜索引擎,目前已经集成
是否集成 名称 地址
Quake https://quake.360.net
Fofa https://fofa.info

使用

安装

go get -u github.com/N0el4kLs/cyberetrieve

使用案例:

import (
    "fmt"

    "github.com/N0el4kLs/cyberetrieve"
    "github.com/N0el4kLs/cyberetrieve/sources"
)

func main() {
	query := sources.Query{
		Query:         `title:"login"`,
		NumberOfQuery: 5,
	}
	session := sources.Session{
		QuakeToken: "xxx-xxx-xxx",
		FofaKey:    "xxx-xxx-xxx",
	}

	engine := cyberetrieve.NewCyberRetrieveEngine(query, session,
		cyberetrieve.WithAutoGrammar(),
		cyberetrieve.WithFofaSearch(),
	)
	if rst, err := engine.RetrieveResult(); err != nil {
		fmt.Println("error:", err)
	} else {
		fmt.Println(rst)
	}
}

更多使用案例可以前往example查看

About

基于Go实现的网络空间漏洞资产收集引擎第三方库

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages