Documentation ¶
Index ¶
- func AddAutoTimeBefore(ruleList []string, afterTime string) (withTimeruleList []string)
- func FofaSearch(proxy string, wg *sync.WaitGroup) (err error)
- func GenerateDynamicRules(rule autocode2.Rules) (err error, dynamicRulesList []string)
- func IsContain(items []string, item string) bool
- func ReplaceStringWithInfos(list []string, string2 string, infos string) (ruleList []string)
- func SearchRunner(interval float64, proxy string)
- type Fofa
- func (*Fofa) GenerateKeywords(list []autocode2.Rules) (err error, ruleList []string)
- func (ff *Fofa) Get(u string) ([]byte, error)
- func (fofa *Fofa) GetAPi() (err error)
- func (fofa *Fofa) GetRules() (err error, list []autocode2.Rules)
- func (ff *Fofa) QueryAsArray(page uint, args ...[]byte) (result FofaResults, err error)
- func (ff *Fofa) QueryAsJSON(page uint, args ...[]byte) ([]byte, error)
- func (*Fofa) RunTask()
- func (*Fofa) Runner(intervalTime float64, proxy string)
- func (*Fofa) SaveResult()
- func (ff *Fofa) UserInfo() (user *User, err error)
- type FofaResults
- type SearchResult
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddAutoTimeBefore ¶
func GenerateDynamicRules ¶
动态规则与配置信息匹配,生成规则
func ReplaceStringWithInfos ¶
将规则内占位符生成可用规则
func SearchRunner ¶
Types ¶
type Fofa ¶
func (*Fofa) GenerateKeywords ¶
func (*Fofa) QueryAsArray ¶
func (ff *Fofa) QueryAsArray(page uint, args ...[]byte) (result FofaResults, err error)
QueryAsArray make a fofa query and return array data as result echo 'domain="nosec.org"' | base64 - | xargs -I{} curl "https://fofa.so/api/v1/search/all?email=${FOFA_EMAIL}&key=${FOFA_KEY}&qbase64={}"
func (*Fofa) QueryAsJSON ¶
QueryAsJSON make a fofa query and return json data as result echo 'domain="nosec.org"' | base64 - | xargs -I{} curl "https://fofa.so/api/v1/search/all?email=${FOFA_EMAIL}&key=${FOFA_KEY}&qbase64={}" host title ip domain port country city
func (*Fofa) SaveResult ¶
func (*Fofa) SaveResult()
type FofaResults ¶
type FofaResults []result
Results fofa result set
func (*FofaResults) String ¶
func (r *FofaResults) String() string
type SearchResult ¶
type SearchResult struct { Results []string FofaResults []FofaResults // contains filtered or unexported fields }
func (*SearchResult) Add ¶
func (searchResult *SearchResult) Add(f interface{})
Click to show internal directories.
Click to hide internal directories.