coding_giants

tightVNC hac

Oct 19th, 2023
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Updating apt-get package
  2. sudo apt-get update
  3.  
  4. # installing libc6-dev package
  5. # this might require deleting the previous version of the package
  6. sudo apt-get -y install libc6-dev
  7.  
  8. # DO ONLY IF the command above doesn't work and then retry the command above
  9. apt-get remove binutils
  10.  
  11. # installing tight server-a (if it asks for any permissions, agree)
  12. sudo apt install tightvncserver
  13.  
  14. # after installation modify the file - you might need to change the word 'kali' if someone changed the user or the user is root
  15.  
  16. nano /home/kali/.vnc/xstartup
  17.  
  18. # delete everything from the file above and paste what's below - we won't have an image without it
  19. # when copying, it's best to use the mouse and after deleting everything right click and paste
  20. # save using ctrl + x and, press Y key and Enter
  21.  
  22. #!/bin/sh
  23. unset SESSION_MANAGER
  24. unset DBUS_SESSION_BUS_ADDRESS
  25. startxfce4 &
  26. [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
  27. [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
  28. xsetroot -solid grey &
  29. vncconfig -iconic &
  30.  
  31. # changing access permissions to the file and allow running it (this wave is a tilde - right under escape key)
  32.  
  33. chmod +x ~/.vnc/xstartup
  34.  
  35. # launching (during first launch it will ask for a password which you will have to REMEMBER)
  36.  
  37. vncserver
  38.  
  39. # finishing server operation
  40.  
  41. vncserver -kill :1
Add Comment
Please, Sign In to add comment