After installing the metasploit ebuild on a stock system, the following error appears when msfconsole is launched. The missing Term::ReadKey package prevents tab completion from working correctly in the msfconsole interface. outernet ~ # msfconsole | | _) | __ `__ \ _ \ __| _` | __| __ \ | _ \ | __| | | | __/ | ( |\__ \ | | | ( | | | _| _| _|\___|\__|\__,_|____/ .__/ _|\___/ _|\__| _| + -- --=[ msfconsole v2.3 [51 exploits - 69 payloads] Can't ioctl TIOCGETP: Invalid argument Consider installing Term::ReadKey from CPAN site nearby at http://www.perl.com/CPAN Or use perl -MCPAN -e shell to reach CPAN. Falling back to 'stty'. If you do not want to see this warning, set PERL_READLINE_NOWARN in your environment. msf > Reproducible: Always Steps to Reproduce: 1. emerge metasploit 2. msfconsole 3. be annoyed that nobody checked this :-) Actual Results: outernet ~ # msfconsole | | _) | __ `__ \ _ \ __| _` | __| __ \ | _ \ | __| | | | __/ | ( |\__ \ | | | ( | | | _| _| _|\___|\__|\__,_|____/ .__/ _|\___/ _|\__| _| + -- --=[ msfconsole v2.3 [51 exploits - 69 payloads] Can't ioctl TIOCGETP: Invalid argument Consider installing Term::ReadKey from CPAN site nearby at http://www.perl.com/CPAN Or use perl -MCPAN -e shell to reach CPAN. Falling back to 'stty'. If you do not want to see this warning, set PERL_READLINE_NOWARN in your environment. msf > Expected Results: Dropped to a msf> shell without the above errors, additionally, tab completion show work (use <tab> should show a list of exploits). The easy fix is to just add Term::ReadKey as a dependency :-)
Created attachment 51183 [details] net-analyzer/metasploit ebuild with Term::ReadKey dep.
Fixed. Thanks for the report.