Vulnerability & Exploit Database

Back to search

VNC Keyboard Remote Code Execution

This module exploits VNC servers by sending virtual keyboard keys and executing a payload. On Windows systems a command prompt is opened and a PowerShell or CMDStager payload is typed and executed. On Unix/Linux systems a xterm terminal is opened and a payload is typed and executed.

Free Metasploit Download

Get your copy of the world's leading penetration testing tool

 Download Now

Module Name

exploit/multi/vnc/vnc_keyboard_exec

Authors

  • xistence <xistence [at] 0x90.nl>

References

Targets

  • Automatic
  • VNC Windows / Powershell
  • VNC Windows / VBScript CMDStager
  • VNC Linux / Unix

Platforms

  • windows
  • unix

Architectures

  • x86
  • cmd

Reliability

Development

Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':

msf > use exploit/multi/vnc/vnc_keyboard_exec msf exploit(vnc_keyboard_exec) > show targets ...targets... msf exploit(vnc_keyboard_exec) > set TARGET <target-id> msf exploit(vnc_keyboard_exec) > show options ...show and set options... msf exploit(vnc_keyboard_exec) > exploit