diff --git a/internal/fofa/fofa_api.go b/internal/fofa/fofa_api.go index e74ef0a..5284d2e 100644 --- a/internal/fofa/fofa_api.go +++ b/internal/fofa/fofa_api.go @@ -168,7 +168,7 @@ func (f *FoFa) fetchByFields(fields string, queryStr string) bool { // FetchFullHostInfo 提取完整带协议的字段 func (f *FoFa) FetchFullHostInfo(queryStr string) bool { - return f.fetchByFields("protocol,ip,port,host,type", queryStr) + return f.fetchByFields("protocol,ip,port,host,city", queryStr) } // FetchOneField 提取指定的字段 @@ -183,12 +183,12 @@ func (f *FoFa) FetchField(field, queryStr string) bool { // FetchTitlesOfDomain 提取 title func (f *FoFa) FetchTitlesOfDomain(queryStr string) bool { - return f.fetchByFields("protocol,ip,port,host,type,title,country", queryStr) + return f.fetchByFields("protocol,ip,port,host,city,title,country", queryStr) } // FetchJarmOfDomain 提取 title func (f *FoFa) FetchJarmOfDomain(queryStr string) bool { - return f.fetchByFields("protocol,ip,port,host,type,jarm,country", queryStr) + return f.fetchByFields("protocol,ip,port,host,city,jarm,country", queryStr) } func (f *FoFa) Fetch(queryStr string) bool { diff --git a/internal/runner/run.go b/internal/runner/run.go index 5daf3b0..e467a19 100644 --- a/internal/runner/run.go +++ b/internal/runner/run.go @@ -307,7 +307,7 @@ func (r *Runner) Run() *sync.Map { r.resMap.LoadOrStore(strings.Join(fields[:len(fields)-1], r.options.FetchFieldsSplit), nil) return true } - fo.FetchField(r.options.FetchFields+",type", fofaQuery) + fo.FetchField(r.options.FetchFields+",city", fofaQuery) } else { fo.FetchFn = func(fields []string, allSize int32) bool { fullUrl, err := utils.NewFixUrl(strings.TrimSpace(fields[0]))