Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

Recently, I've been getting semi-regular VNC connection attempts on my computer. It's most likely from the domain I set up a while back, but it appears to be mostly individual connection attempts, as opposed to a bot or similar. (For example, something in Beijing is trying to log into SSH as Root 24/7.)

Since this is most likely some punk script kiddie who heard that "VNC lets you remotely control computers", and immediately used his super-leet nslookup to begin "collecting IPs to hack", I'd like to know if there's any way to configure a VNC server to display a static image (e.g., a "No Tresspassing" sign, a shock image, etc.) instead of the usual desktop.

I'm thinking something built into the VNC server itself, as opposed to, for example, a bare-bones window manager that displays nothing but a wallpaper, in case I need to start a graphical session on the computer in question.

share|improve this question
    
Don't waste your time. Block his Ip address in your firewall and don't give it a second thought. –  slm May 24 '13 at 8:35
    
@slm It's not always the some IP, or even the same ISP. I thing that every time a new script kiddie comes along, he decides to make an attempt or two. I'd really like to put up some sort of offensive or humorous image, to ward off (or irritate) any future VNC'ers. –  JamesTheAwesomeDude May 24 '13 at 17:27
    
As you probably could guess, this problem is experienced by many users with network exposed machines. Normally, it is solved by temporarily blocking the offending ip based on malicious behavior pattern (such as unsuccessful login retries). Consider this nice small utility for example: fail2ban.org/wiki/index.php/Main_Page –  oakad Jan 10 at 0:20
add comment

1 Answer 1

up vote 1 down vote accepted

It is obviously possible and even rather easy to display a static image (but you definitely should not use this for the purposes you're describing). Take Xvnc for example: if you run it without any client connected, it will essentially always send a static image (as defined by root window content) to the vnc pipe. To set the root window to the desired image, use any X11 client which can set root window content, such as the venerable xloadimage.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.