xiecat / fofax

FOFAX是一个基于fofa.info的API命令行查询工具
https://fofax.xiecat.fun/
GNU General Public License v3.0
719 stars 74 forks source link

按时间段查询会报语法错误 #24

Closed ifofor closed 2 years ago

ifofor commented 2 years ago

比如说: echo 'after="2017-01-01" && before="2017-10-01"' | fofax.exe --debug 结果: 2022/07/18 11:45:38 [DEBUG] FoFa Size : 100 2022/07/18 11:45:38 [DEBUG] FoFa input Query of: after="2017-01-01" && before="2017-10-01" 2022/07/18 11:45:38 [DEBUG] https://fofa.info/api/v1/search/all?email=*****@*************&key=********************************&qbase64=YWZ0ZXI9IjIwMTctMDEtMDEiICYmIGJlZm9yZT0iMjAxNy0xMC0wMSI=&size=100&page=1&fields=host,port,ip,lastupdatetime 2022/07/18 11:45:38 [DEBUG] Resp Time: 343.00/millis 2022/07/18 11:45:38 [ERRO] FoFa Response ErrMsg: [820000] FOFA Query Syntax Incorrect

0xf4n9x commented 2 years ago

网页版FOFA查询这条语句正常,但是FOFA API不允许查询语句中同时拥有afterbefore两个关键词。

ifofor commented 2 years ago

网页版FOFA查询这条语句正常,但是FOFA API不允许查询语句中同时拥有afterbefore两个关键词。

哦哦好的,感谢!fofax很不错!