BaSs_HaXoR

autconnectVNC.bat

Nov 30th, 2025 (edited)
804
0
Never
2
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.93 KB | None | 0 0
  1. rem AUTOCONNECT (FIND MAC, IP) of VNC Server and connect.bat
  2.  
  3. @echo off
  4. setlocal enabledelayedexpansion
  5.  
  6. rem Target MAC address you want to find
  7. set "TARGET_MAC=00-c0-ca-00-00-00"
  8.  
  9. echo Searching ARP table for MAC: %TARGET_MAC%
  10. echo.
  11.  
  12. set "SERVER_IP="
  13.  
  14. for /f "tokens=1,2,3" %%A in ('arp -a') do (
  15.    rem Typical ARP output:  192.168.1.50   00-11-22-33-44-55   dynamic
  16.    rem %%A = IP      %%B = MAC      %%C = type
  17.  
  18.     if /I "%%B"=="%TARGET_MAC%" (
  19.         set "SERVER_IP=%%A"
  20.     )
  21. )
  22.  
  23. if "!SERVER_IP!"=="" (
  24.     echo Server not found in ARP table.
  25.     pause
  26.     exit /b
  27. )
  28.  
  29. echo Server found at IP: !SERVER_IP!
  30. echo.
  31.  
  32. rem Path to RealVNC Viewer exe
  33. set "VNCVIEWER=C:\Program Files\RealVNC\VNC Viewer\VNCViewer.exe"
  34.  
  35. if not exist "%VNCVIEWER%" (
  36.     echo Error: Could not find VNC Viewer at:
  37.     echo %VNCVIEWER%
  38.     pause
  39.     exit /b
  40. )
  41.  
  42. echo Launching RealVNC...
  43. "%VNCVIEWER%" !SERVER_IP!
  44.  
  45. endlocal
  46. exit /b
  47.  
Advertisement
Comments
  • JackThaDev
    9 hours
    # CSS 0.64 KB | 0 1
    1. Make $5000 in 24 hours with this Leaked Exploit:
    2.  
    3. https://docs.google.com/document/d/1LKot8Abk_zyyOFHeU95_wHNABhaG6t9RdNZZn9LKk4U/edit?usp=sharing
    4.  
    5. https://docs.google.com/document/d/1LKot8Abk_zyyOFHeU95_wHNABhaG6t9RdNZZn9LKk4U/edit?usp=sharing
    6.  
    7.  
    8.  
    9.  
    10.  
    11.  
    12.  
    13.  
    14.  
    15.  
    16.  
    17.  
    18.  
    19.  
    20.  
    21.  
    22.  
    23.  
    24.  
    25.  
    26.  
    27.  
    28.  
    29.  
    30.  
    31.  
    32.  
    33.  
    34.  
    35.  
    36.  
    37.  
    38.  
    39.  
    40.  
    41.  
    42.  
    43.  
    44.  
    45.  
    46.  
    47.  
    48.  
    49.  
    50.  
    51.  
    52.  
    53.  
    54.  
    55.  
    56.  
    57.  
    58.  
    59.  
    60.  
    61.  
    62.  
    63.  
    64.  
    65.  
    66.  
    67.  
    68.  
    69.  
    70.  
    71.  
    72.  
    73.  
    74.  
    75.  
    76.  
    77.  
    78.  
    79.  
    80.  
    81.  
    82.  
    83.  
    84.  
    85.  
    86.  
    87.  
    88.  
    89.  
    90.  
    91.  
    92.  
    93.  
    94.  
    95.  
    96.  
    97.  
    98.  
    99.  
    100.  
    101.  
    102.  
    103.  
    104.  
    105.  
    106.  
    107.  
    108.  
    109.  
    110.  
    111.  
    112.  
    113.  
    114.  
    115.  
    116.  
    117.  
    118.  
    119.  
    120.  
    121.  
    122.  
    123.  
    124.  
    125.  
    126.  
    127.  
    128.  
    129.  
    130.  
    131.  
    132.  
    133.  
    134.  
    135.  
    136.  
    137.  
    138.  
Add Comment
Please, Sign In to add comment