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 -h
MoreFind is a very fast script for searching URL、Domain and Ip from specified stream
Usage:  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 MoreFind
Flags:  -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