Created a meterpreter session and tried to get into a shell
Error shows: [ -] Error running command shell: ArgumentError wrong number of arguments (given 4, expected 5)

Tried this on HTB nibbles as you can see
I should get shell acces
Nothing, an error
Log output:
[03/12/2020 10:52:00] [e(0)] meterpreter: Error running command shell: ArgumentError wrong number of arguments (given 4, expected 5)
[03/12/2020 10:52:00] [d(0)] meterpreter: Call stack:
/usr/share/metasploit-framework/lib/rex/post/meterpreter/channels/pools/stream_pool.rb:36:in initialize'
/usr/share/metasploit-framework/lib/rex/post/meterpreter/extensions/stdapi/sys/process.rb:181:innew'
/usr/share/metasploit-framework/lib/rex/post/meterpreter/extensions/stdapi/sys/process.rb:181:in execute'
/usr/share/metasploit-framework/lib/rex/post/meterpreter/ui/console/command_dispatcher/stdapi/sys.rb:233:incmd_execute'
/usr/share/metasploit-framework/lib/rex/post/meterpreter/ui/console/command_dispatcher/stdapi/sys.rb:324:in cmd_shell'
/usr/share/metasploit-framework/lib/rex/ui/text/dispatcher_shell.rb:523:inrun_command'
/usr/share/metasploit-framework/lib/rex/post/meterpreter/ui/console.rb:105:in run_command'
/usr/share/metasploit-framework/lib/rex/ui/text/dispatcher_shell.rb:474:inblock in run_single'
/usr/share/metasploit-framework/lib/rex/ui/text/dispatcher_shell.rb:468:in each'
/usr/share/metasploit-framework/lib/rex/ui/text/dispatcher_shell.rb:468:inrun_single'
/usr/share/metasploit-framework/lib/rex/post/meterpreter/ui/console.rb:68:in block in interact'
/usr/share/metasploit-framework/lib/rex/ui/text/shell.rb:153:inrun'
/usr/share/metasploit-framework/lib/rex/post/meterpreter/ui/console.rb:66:in interact'
/usr/share/metasploit-framework/lib/msf/base/sessions/meterpreter.rb:583:in_interact'
/usr/share/metasploit-framework/lib/rex/ui/interactive.rb:51:in interact'
/usr/share/metasploit-framework/lib/msf/ui/console/command_dispatcher/core.rb:1365:incmd_sessions'
/usr/share/metasploit-framework/lib/rex/ui/text/dispatcher_shell.rb:523:in run_command'
/usr/share/metasploit-framework/lib/rex/ui/text/dispatcher_shell.rb:474:inblock in run_single'
/usr/share/metasploit-framework/lib/rex/ui/text/dispatcher_shell.rb:468:in each'
/usr/share/metasploit-framework/lib/rex/ui/text/dispatcher_shell.rb:468:inrun_single'
/usr/share/metasploit-framework/lib/msf/ui/console/command_dispatcher/exploit.rb:215:in cmd_exploit'
/usr/share/metasploit-framework/lib/rex/ui/text/dispatcher_shell.rb:523:inrun_command'
/usr/share/metasploit-framework/lib/rex/ui/text/dispatcher_shell.rb:474:in block in run_single'
/usr/share/metasploit-framework/lib/rex/ui/text/dispatcher_shell.rb:468:ineach'
/usr/share/metasploit-framework/lib/rex/ui/text/dispatcher_shell.rb:468:in run_single'
/usr/share/metasploit-framework/lib/rex/ui/text/shell.rb:158:inrun'
/usr/share/metasploit-framework/lib/metasploit/framework/command/console.rb:48:in start'
/usr/share/metasploit-framework/lib/metasploit/framework/command/base.rb:82:instart'
/usr/bin/msfconsole:49:in `
Framework Version: 5.0.79-dev
Linux 0X10001 5.4.0-kali4-amd64 #1 SMP Debian 5.4.19-1kali1 (2020-02-17) x86_64 GNU/Linux
What OS are you running Metasploit on?
Kali
Could be related to issue https://github.com/rapid7/metasploit-framework/issues/13060 and Fix PR https://github.com/rapid7/metasploit-framework/pull/13064
Same on ArchLinux with linux/x64/meterpreter/reverse_tcp
msfconsole --version
Framework Version: 5.0.79-dev
When I used shell it only returned Process 1372 created. Channel 1 created.. No cmd.exe expanded
This issue is resolved in Framework Version: 5.0.80-dev
Most helpful comment
This issue is resolved in Framework Version: 5.0.80-dev