Connects to an RPA Tech Mobile Mouse server, starts an application and sends a sequence of keys to it. Any application that the user has access to can be started and the key sequence is sent to the application after it has been started.
The Mobile Mouse server runs on OS X, Windows and Linux and enables remote control of the keyboard and mouse from an iOS device. For more information: http://mobilemouse.com/
The script has only been tested against OS X and will detect the remote OS and abort unless the OS is detected as Mac.
The application which is to be started at the server
Delay in seconds to wait before sending the key sequence. (default: 3 seconds)
The password needed to connect to the mobile mouse server
The key sequence to send to the started application
unittest.runSee the documentation for the unittest library.
nmap -p 51010 <host> --script mmouse-exec \ --script-args application='/bin/sh',keys='ping -c 5 127.0.0.1'
PORT STATE SERVICE REASON 51010/tcp open unknown syn-ack | mmouse-exec: |_ Attempted to start application "/bin/sh" and sent "ping -c 5 127.0.0.1"
Author: Patrik Karlsson