Rapid7 Vulnerability & Exploit Database

X11 Keyboard Command Injection

Back to Search

X11 Keyboard Command Injection

Disclosed
07/10/2015
Created
05/30/2018

Description

This module exploits open X11 servers by connecting and registering a virtual keyboard. The virtual keyboard is used to open an xterm or gnome terminal and type and execute the specified payload.

Author(s)

  • xistence <xistence@0x90.nl>

Platform

Unix

Architectures

cmd

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/unix/x11/x11_keyboard_exec
msf exploit(x11_keyboard_exec) > show targets
    ...targets...
msf exploit(x11_keyboard_exec) > set TARGET < target-id >
msf exploit(x11_keyboard_exec) > show options
    ...show and set options...
msf exploit(x11_keyboard_exec) > exploit

Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.

– Jim O’Gorman | President, Offensive Security

;