MoreFind:用于快速导出URL、Domain和IP的小工具

morefind
一款用于快速导出url、domain和ip的小工具
快速安装
方式一: 通过go包管理安装
go install github.com/mstxq17/morefind@latest  
方式二: 直接安装二进制文件
wget --no-check-certificate https://ghproxy.com/https://github.com/mstxq17/morefind/releases/download/v1.2.8/morefind_1.2.8_`uname -s`_`uname -m`.tar.gztar -xzvf morefind_1.2.8_`uname -s`_`uname -m`.tar.gzsudo mv ./morefind /usr/bin/morefind && chmod +x /usr/bin/morefind  
方式三: 本地编译
git clone https://github.com/mstxq17/morefind.gitchmod +x ./build.sh && ./build.sh  
用法说明
显示帮助信息
morefind -hmorefind is a very fast script for searching url、domain and ip from specified streamusage: morefind [flags] morefind [command]available commands: completion generate the autocompletion script for the specified shell help help about any command version print the semantic version number of morefindflags: -d, --domain search domain from stdin or file(搜索域名) --exclude exclude internal/private segment of ip when searching ip(排除内网ip) -f, --file string search the info in specified file(指定输入文件) --filter string[=js,css,json,png,jpg,html,xml,zip,rar] filter url with some useless ext(排除指定后缀的url) -h, --help help for morefind -i, --ip search ip from stdin or file(搜索ip) -l, --len string search specify the length of string, -l 35 == -l 0-35 (输出指定长度的行) -o, --output string output the result to specified file(指定输出文件) --root only output the rootdomain when searching domain(只显示主域名) -s, --show show the length of each line and summaries(输出统计信息) -u, --url search url from stdin or file(搜索url)use morefind [command] --help for more information about a command.  
下面以文件内容如下的1.txt文件说明该工具的用法
baidu.comhttp://baidu.com/hi.jpg?a=1http://baidu.com/xxx/hi.jpgkk.baidu.comhttp://x.kk.baidu.com/1.pnghttp://123.0.0.1/kkk/%2311127.0.0.1/kkkk111.230.198.123/2222/hellophp111.230.198.123/2222/hello.php192.168.1.1  
1)导出url
morefind -u# append --filter(default:js,css,json,png,jpg,html,xml,zip,rar) or --filter=png,jpg,xls,custom...# 通过添加参数 --filter(默认排除常见静态文件) 或者 通过 --filter=png,jpg 自定义需要排除的后缀morefind -u --filter=png  
2)导出域名
morefind -d# append -root param can only search rootdomain# 通过加上 --root 参数能够只显示根域名morefind -d --root# append --port param can retain domain:port format# 通过加上 --port 参数保留域名:端口的格式,搭配grepmorefind -d --port
3)导出ip
# 默认会搜索全部ipv4地址morefind -i# 加上--exclude 排除属于内网的ip, 存在bug,比如localhost, 127.0.0.1 这些回环ip没排除morefind -i --exclude
4)输出统计信息
morefind -s
5)筛选指定长度字符串
morefind -l 35 morefind -l 0-35
6)支持导出结果
morefind -u -d -i -o result.txt  
7)联动使用
echo -e 'baidu.com ccccxxxx 1.com'|morefind -d |morefind -l 5工具下载地址


我国智能门锁将迎来大爆发 产品质量应放第一位
三维扫描服务在工程管理施工项目的生命周期
LINARIX系列拉线编码器的直线测量方案
美研制出无需GPS导航的原子惯性传感器
刻录机常用的几种技术
MoreFind:用于快速导出URL、Domain和IP的小工具
bldc可以做伺服电机吗 bldc电机和fpa直驱电机哪个好
怎么看共漏级可以有反馈在里面?
谷歌Pixel 5 Pro真机已在网上现身
荣耀Note9最新消息,后置指纹解锁全面屏或搭载麒麟670?
【高压技术】异频(47.5~52.5)大地网测试过程及校准规范
电流检测电路原理图 三种低成本电流检测电路设计
一文汇总无人机基本知识
特斯拉计划降低电池成本,更大范围地普及电动汽车
骁龙888市场供不应求,骁龙870带来更多选择
如何利用ESP8266实现防雨物联网气象站的设计
三星在韩新开EUV晶圆代工产线V1,总投入将达60亿美元
上海电力人工智能工程技术研究中心已成功获批立项
东城奕东电子5G通讯设备及FPC组件的研发与生产项目
Nokia9PureView评测 为智能手机探索出了另一条影像之路