msf运行ruby脚本报/usr/lib/ruby/2.7.0/rubygems/dependency.rb:311:in `to_specs': Could not find 'rex-text' (>= 0) among 78 total gem(s) (Gem::MissingSpecError)错误时处理方式:
使用msf自带的ruby(/opt/metasploit-framework/embedded/bin/ruby)执行脚本,如/opt/metasploit-framework/embedded/bin/ruby pattern_create.rb -l 1000
引自:https://github.com/rapid7/metasploit-framework/issues/13411