After a Meterpreter session has been established, you can start an interactive shell on the target host using the shell command. In the shell, I'm trying to switch between previously entered commands using the up/down keys. However, the up-key gets translated to ^[[A and the down-key gets translated to ^[[B. My victim host is using Windows 10.

The only known workaround that I'm aware of is using rlwrap, but I'd like to get this to work with Metasploit. Is there a way to switch between historic commands when using the Meterpreter standard shell?

New contributor
ScriptingBerry is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.


Your Answer

ScriptingBerry is a new contributor. Be nice, and check out our Code of Conduct.

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.