Skip to content

Latest commit

History

11 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

VMKey

vm_key.py is an usefull tool write in Python to send keystrokes on VMware virtual machine throught vSphere API.

Requirements

  • vSphere 6.5 or higher
  • argparse
  • pyvmomi

Usage

vm_key.py -h
positional arguments:
host vSphere IP or Hostname
username vSphere Username
password vSphere Password
virtual_machine VM Name
optional arguments:
-h, --help show this help message and exit
--port PORT alternative TCP port to communicate with vSphere API (default: 443)
--timeout TIMEOUT timeout for VSphere API connection (default: 10s)
--debug enable debug mode
--key key to passed to VM
--string STRING string to passed to VM (Standard ASCII characters only)

Examples

vm_key.py host username password virtual_machine --string "Hello World !"
vm_key.py host username password virtual_machine --key CTRL_ALT_DEL

Notes

Available keys are listed in HIDCode variable.

About

VMKey is an usefull tool to send keystrokes on VMware virtual machine throught vSphere API.

Resources

Stars

5 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages