LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 10-08-2013, 11:36 PM   #1
cbider
LQ Newbie
 
Registered: May 2010
Posts: 21

Rep: Reputation: 2
nmap returns 5900/tcp open vnc, have I been hacked??


Nmap -sT -O returned "5900/tcp open vnc. Never saw this before. I googled it and found it may mean someone remotely viewing my box. Running SL6 with small KVM based virtual network. "/sbin/service vnc status" returns "unrecognized service", "/etc/init.d/vnc" returns "no such file or directory" "rpm -q vnc" returns "package vnc not installed". Prior to this I yum installed telnet to use xhost to access a gui on my old dell box running fc12. No luck, I gave up for the time being. This only occurs when I have a vm up and running. Did my xhost experiment do this or have I been cracked. Never saw this before on many installs of both host and guest machines. Any help would be greatly appreciated. Thanks in advance folks. cbider
 
Old 10-09-2013, 01:14 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
- Unless you enabled service checking (-sV) nmap uses its own static service mapping, kind of like /etc/services, to simply match ports with service names.
- Some virtualization methods come with built-in VNC capabilities.
- A port being bound by a service does not automagically mean it's cracked, nonetheless you should not (need to) run stale, unmaintained, vulnerable Fedora releases and neither should you prefer telnet over SSH.
* Try to connect to the port when the VM is up to determine what service it actually is.
 
Old 10-10-2013, 10:27 PM   #3
Doug G
Member
 
Registered: Jul 2013
Posts: 749

Rep: Reputation: Disabled
If you're using some redhat derivative you want to use service vncserver status but as mentioned many other programs can provide vnc server services. For example, kvm and virt-manager use vnc to show virtual machine consoles. You can use netstat -aln to identify the process that's listening on 5900.
 
Old 10-13-2013, 06:43 AM   #4
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,333
Blog Entries: 3

Rep: Reputation: 3729Reputation: 3729Reputation: 3729Reputation: 3729Reputation: 3729Reputation: 3729Reputation: 3729Reputation: 3729Reputation: 3729Reputation: 3729Reputation: 3729
netstat

What is listening on that port?

Code:
sudo netstat -nltp
Once you know the name of the program you can trace back to which package it came from.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
UDP & TCP Port Communication is Filtered/Open in nmap benderan Linux - Networking 8 01-21-2009 05:15 PM
nmap reports 5190/tcp to be open GSMD Linux - Networking 2 08-20-2008 03:57 PM
An open, ominous tcp port 666 revealed by nmap desmond33 Linux - Networking 1 02-01-2007 01:35 AM
Open port 5900 or 59 for VNC jamiguel77 Linux - Security 5 01-08-2005 03:04 AM
Nmap showed 6000/tcp open X11. How do I keep this from starting? jdruin Linux - Security 2 11-22-2003 07:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 10:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration