Skip to content

Commit bd52f81

Browse files
committed
这是一个临时版本替换type字段
1 parent 0e6a262 commit bd52f81

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

internal/fofa/fofa_api.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ func (f *FoFa) fetchByFields(fields string, queryStr string) bool {
168168

169169
// FetchFullHostInfo 提取完整带协议的字段
170170
func (f *FoFa) FetchFullHostInfo(queryStr string) bool {
171-
return f.fetchByFields("protocol,ip,port,host,type", queryStr)
171+
return f.fetchByFields("protocol,ip,port,host,city", queryStr)
172172
}
173173

174174
// FetchOneField 提取指定的字段
@@ -183,12 +183,12 @@ func (f *FoFa) FetchField(field, queryStr string) bool {
183183

184184
// FetchTitlesOfDomain 提取 title
185185
func (f *FoFa) FetchTitlesOfDomain(queryStr string) bool {
186-
return f.fetchByFields("protocol,ip,port,host,type,title,country", queryStr)
186+
return f.fetchByFields("protocol,ip,port,host,city,title,country", queryStr)
187187
}
188188

189189
// FetchJarmOfDomain 提取 title
190190
func (f *FoFa) FetchJarmOfDomain(queryStr string) bool {
191-
return f.fetchByFields("protocol,ip,port,host,type,jarm,country", queryStr)
191+
return f.fetchByFields("protocol,ip,port,host,city,jarm,country", queryStr)
192192
}
193193

194194
func (f *FoFa) Fetch(queryStr string) bool {

internal/runner/run.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ func (r *Runner) Run() *sync.Map {
307307
r.resMap.LoadOrStore(strings.Join(fields[:len(fields)-1], r.options.FetchFieldsSplit), nil)
308308
return true
309309
}
310-
fo.FetchField(r.options.FetchFields+",type", fofaQuery)
310+
fo.FetchField(r.options.FetchFields+",city", fofaQuery)
311311
} else {
312312
fo.FetchFn = func(fields []string, allSize int32) bool {
313313
fullUrl, err := utils.NewFixUrl(strings.TrimSpace(fields[0]))

0 commit comments

Comments
 (0)