LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 08-31-2009, 04:05 PM   #1
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561

Rep: Reputation: 57
misc questions about port scans and rootkits


my nmap is giving:

Code:
Not shown: 1705 closed ports
PORT     STATE SERVICE
21/tcp   open  ftp
111/tcp  open  rpcbind
139/tcp  open  netbios-ssn
445/tcp  open  microsoft-ds
631/tcp  open  ipp
2049/tcp open  nfs
2628/tcp open  dict
5901/tcp open  vnc-1
6001/tcp open  X11:1
8080/tcp open  http-proxy

Nmap done: 1 IP address (1 host up) scanned in 0.092 seconds
I dont understand all those ports on my machine. particularly this 8080, and netbios-ssn and 445 and ipp 631.

I run the vnc its me.





Quote:

rching for zaRwT rootkit default files and dirs... nothing found
Searching for Madalin rootkit default files... nothing found
Searching for Fu rootkit default files... nothing found
Searching for ESRK rootkit default files... nothing found
Searching for rootedoor... nothing found
Searching for ENYELKM rootkit default files... nothing found
Searching for common ssh-scanners default files... nothing found
Searching for anomalies in shell history files... nothing found
Checking `asp'... not infected
Checking `bindshell'... not infected
Checking `lkm'... You have 1 process hidden for readdir command
You have 1 process hidden for ps command
chkproc: Warning: Possible LKM Trojan installed
chkdirs:
nothing detected
Checking `rexedcs'... not found
Checking `sniffer'... lo: not promisc and no packet sniffer sockets
eth0: PACKET SNIFFER(/sbin/dhclient3[6034])
Checking `w55808'... not infected
Checking `wted'... chkwtmp: nothing deleted
Checking `scalper'... not infected
Checking `slapper'... not infected
Checking `z2'
Quote:
System checks summary
=====================

File properties checks...
Files checked: 127
Suspect files: 2

Rootkit checks...
Rootkits checked : 113
Possible rootkits: 0

Applications checks...
Applications checked: 5
Suspect applications: 0

The system checks took: 1 minute and 11 seconds

All results have been written to the logfile (/var/log/rkhunter.log)

One or more warnings have been found while checking the system.
Please check the log file (/var/log/rkhunter.log)



[23:40:47] /usr/sbin/tcpd [ OK ]
[23:40:47] /usr/sbin/unhide [ Warning ]
[23:40:47] Warning: The file '/usr/sbin/unhide' exists on the system, but it is not present in the rkhunter.dat fi
le.
[23:40:47] /usr/sbin/useradd [ OK ]
[23:40:47] /usr/sbin/userdel [ OK ]
[23:40:48] /usr/sbin/usermod [ OK ]
[23:40:48] /usr/sbin/vipw [ OK ]
[23:40:48] /usr/sbin/unhide-linux26 [ Warning ]
[23:40:48] Warning: The file '/usr/sbin/unhide-linux26' exists on the system, but it is not present in the rkhunte
r.dat file.

When I stop gdm, I get this:

nmap 192.168.2.101

Quote:
PORT STATE SERVICE
Not shown: 1708 closed ports
21/tcp open ftp
111/tcp open rpcbind
139/tcp open netbios-ssn
445/tcp open microsoft-ds
631/tcp open ipp
2049/tcp open nfs
2628/tcp open dict
the x has vncserver and skype running, and konsole, + gnome-panel

I dont see my SSH daemon anymore, running, why??


Quote:
e# netstat -tlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 *:nfs *:* LISTEN -
tcp 0 0 *:dict *:* LISTEN 5791/0
tcp 0 0 localhost:submission *:* LISTEN 5896/sendmail: MTA:
tcp 0 0 *:47597 *:* LISTEN -
tcp 0 0 *:49743 *:* LISTEN 5839/rpc.mountd
tcp 0 0 *:sunrpc *:* LISTEN 5227/portmap
tcp 0 0 *:56691 *:* LISTEN 5243/rpc.statd
tcp 0 0 debian08.local:ipp *:* LISTEN 5732/cupsd
tcp 0 0 localhost:ipp *:* LISTEN 5732/cupsd
tcp 0 0 localhost:smtp *:* LISTEN 5896/sendmail: MTA:
tcp6 0 0 [::]:netbios-ssn [::]:* LISTEN 5854/smbd
tcp6 0 0 [::]:ftp [::]:* LISTEN 6074/proftpd: (acce
tcp6 0 0 [::]:microsoft-ds [::]:* LISTEN 5854/smbd

it seems that this 8080 is coming from skype.
strange, no?

Quote:
# cat .fluxbox/startup
#!/bin/sh
##amarok &
yakuake &
gnome-panel &
fbsetbg ~/.wallpaper
irexec &
cd
vncserver :1 &
skype &
cd
exec /usr/bin/fluxbox
# or if you want to keep a log:
# exec /usr/bin/fluxbox -log ~/.fluxbox/log
hmmm it seems that wireshack detects things:
[img=http://img90.imageshack.us/img90/6830/wireshark.jpg]

Last edited by frenchn00b; 08-31-2009 at 04:57 PM.
 
Old 08-31-2009, 06:31 PM   #2
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,142

Rep: Reputation: 434Reputation: 434Reputation: 434Reputation: 434Reputation: 434
frenchn00b,

Why are you posting to this thread?

What, exactly, is your question?
 
Old 08-31-2009, 09:08 PM   #3
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
frenchn00b, I've moved your post to a thread of its own. I can't figure out why you decided to post this in that other thread (which had been inactive for months). Also, I share tredegar's interest in learning what exactly it is that you're asking.

Last edited by win32sux; 08-31-2009 at 09:12 PM.
 
Old 09-01-2009, 06:26 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599
Quote:
Originally Posted by frenchn00b View Post
I dont understand all those ports on my machine. particularly this 8080, and netbios-ssn and 445 and ipp 631.
If you don't know what a service is first try finding information on your machine with default commands like 'getent services 445', 'whatis samba' and 'apropos samba'. If you don't need to provide NFS, run portmap, Internet Printing Protocol or a proxy then please stop those services and prohibit them from running. If you need to provide those services please look into tcp_wrappers, application-specific configurable access restrictions, iptables filtering and using an IDS like Snort to provide "early warning" and auditing capabilities.


Quote:
Originally Posted by frenchn00b View Post
Code:
Checking `lkm'... You have 1 process hidden for readdir command
You have 1 process hidden for ps command
chkproc: Warning: Possible LKM Trojan installed
Could be a false positive. See the Chkrootkit FAQ for more information about transient processes causing false positives.


Quote:
Originally Posted by frenchn00b View Post
Code:
[23:40:47] Warning: The file '/usr/sbin/unhide' exists on the system, but it is not present in the rkhunter.dat file.
[23:40:47] /usr/sbin/useradd [ OK ]
[23:40:47] /usr/sbin/userdel [ OK ]
[23:40:48] /usr/sbin/usermod [ OK ]
[23:40:48] /usr/sbin/vipw [ OK ]
[23:40:48] /usr/sbin/unhide-linux26 [ Warning ]
[23:40:48] Warning: The file '/usr/sbin/unhide-linux26' exists on the system, but it is not present in the rkhunter.dat file.
These are informational warnings, not evidence of a system compromise. This happens if you run RKH without updating (see the manual page and other docs about "--propupd").


Quote:
Originally Posted by frenchn00b View Post
I dont see my SSH daemon anymore, running, why??
I didn't see it running in the first place?


Quote:
Originally Posted by frenchn00b View Post
it seems that this 8080 is coming from skype.
strange, no?
I don't see no TCP/8080 nor anything related to Skype.


Quote:
Originally Posted by frenchn00b View Post
hmmm it seems that wireshack detects things
That's what it's made for. What it doesn't do is interprete things for you. What do you think you are seeing?


Quote:
Originally Posted by win32sux View Post
Also, I share tredegar's interest in learning what exactly it is that you're asking.
Me too. What exactly is it you're having trouble with?..
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
port scans - iptables epoo Linux - Security 9 07-19-2015 12:44 PM
unwanted port scans andy753421 Linux - Networking 1 09-28-2004 05:55 PM
Port scans!!! tarballedtux Linux - Security 4 10-29-2002 07:18 AM
Port scans KevStA Linux - Networking 2 05-27-2002 05:38 PM
Linux Port Scans or Attacks ? Bubba Linux - Security 4 04-04-2001 04:17 AM

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

All times are GMT -5. The time now is 09:11 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