Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rem AUTOCONNECT (FIND MAC, IP) of VNC Server and connect.bat
- @echo off
- setlocal enabledelayedexpansion
- rem Target MAC address you want to find
- set "TARGET_MAC=00-c0-ca-00-00-00"
- echo Searching ARP table for MAC: %TARGET_MAC%
- echo.
- set "SERVER_IP="
- for /f "tokens=1,2,3" %%A in ('arp -a') do (
- rem Typical ARP output: 192.168.1.50 00-11-22-33-44-55 dynamic
- rem %%A = IP %%B = MAC %%C = type
- if /I "%%B"=="%TARGET_MAC%" (
- set "SERVER_IP=%%A"
- )
- )
- if "!SERVER_IP!"=="" (
- echo Server not found in ARP table.
- pause
- exit /b
- )
- echo Server found at IP: !SERVER_IP!
- echo.
- rem Path to RealVNC Viewer exe
- set "VNCVIEWER=C:\Program Files\RealVNC\VNC Viewer\VNCViewer.exe"
- if not exist "%VNCVIEWER%" (
- echo Error: Could not find VNC Viewer at:
- echo %VNCVIEWER%
- pause
- exit /b
- )
- echo Launching RealVNC...
- "%VNCVIEWER%" !SERVER_IP!
- endlocal
- exit /b
Advertisement
Comments
-
- Make $5000 in 24 hours with this Leaked Exploit:
- https://docs.google.com/document/d/1LKot8Abk_zyyOFHeU95_wHNABhaG6t9RdNZZn9LKk4U/edit?usp=sharing
- https://docs.google.com/document/d/1LKot8Abk_zyyOFHeU95_wHNABhaG6t9RdNZZn9LKk4U/edit?usp=sharing
Add Comment
Please, Sign In to add comment