-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
批量读取导出功能 #23
Comments
给你举个例子首先给定的ip.txt文件内容为如下。 # cat ip.txt
1.1.1.1
2.2.2.2
3.3.3.3
4.4.4.4 那么可以利用sed命令或其他操作,在每行首添加 # sed 's/^/ip="&/g;s/$/&"/g' ip.txt > query.txt
# cat query.txt
ip="1.1.1.1"
ip="2.2.2.2"
ip="3.3.3.3"
ip="4.4.4.4" 下一步,就可以使用 # fofax -qf query.txt -ffi -fs 10
____ ____ _ __
/ __/____ / __/____ _| |/ /
/ /_ / __ \ / /_ / __ `/| /
/ __// /_/ // __// /_/ // |
/_/ \____//_/ \__,_//_/|_|
v0.1.42
https://fofax.xiecat.fun
2022/07/11 13:58:40 [SUCC] Fetch Data From FoFa: [10/25073]
2022/07/11 13:58:41 [SUCC] Fetch Data From FoFa: [10/15]
2022/07/11 13:58:42 [SUCC] Fetch Data From FoFa: [4/4]
2022/07/11 13:58:43 [SUCC] Fetch Data From FoFa: [2/2]
dns://xxx.suda.edu.cn:53
dns://boyavip78.com:53
http://samsungclouddev.com
http://multi.i618.com.cn
https://multi.i618.com.cn
http://xxx.yuceyi.com
http://www.jiay.shop
https://xxx.suda.edu.cn
https://www.yuecode.net
https://test.wsgtm3.com
https://test1.bigmen.cn
http://test1.bigmen.cn
https://xxx.yuceyi.com
https://test1.mydnspod.net
https://boyavip78.com
https://fyy.ch
http://yanhuoa.com
http://test.ntbna.gov.tw
http://dnstest.cfzq.com
http://xxx.suda.edu.cn
http://boyavip78.com
dns://1.1.1.1:53
... |
another way to solve this:
|
这种方式很赞,但是需要注意的是由于FOFA的查询是通过GET方法将查询语句传到后端,所以查询长度是有限制的。如果IP数量太多,通过这种一条查询语句的方式可能做不到。 不过我刚问了一下官方,现在FOFA已经支持了POST传参,后续FOFAX也会一并做修改,这种方式就可以完全支持了。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
师傅 提个建议,给了一大批ip,可以对ip.txt批量查询返回
The text was updated successfully, but these errors were encountered: