LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-31-2002, 04:17 AM   #1
NSKL
Senior Member
 
Registered: Jan 2002
Location: Rome, Italy ; Novi Sad, Srbija; Brisbane, Australia
Distribution: Ubuntu / ITOS2008
Posts: 1,207

Rep: Reputation: 47
Hacked? Out of memory? Exploit? What?


I need help, as soon as possible since my Linux box is quite unusable at the moment.
I was playing with it yesterday, and Opera crashed as it does occasionally, so i started konqueror to continue browsing, then closed it and started Galeon, which didnt want to start, instead my memory started jumping very high, and in 20 seconds, almost all of it (1GB, 500mb RAm and 500 Swap) was eaten according to gkrellm and top, so to prevent a lockup i quickly issued a reboot.
When the system came up after the reboot again, it wouldn't start syslogd, instead it froze and after a while started spitting a bunch of:
Out of memory! Killed process 59 (syslog)
So i thought i was hacked or something. I used a rescue disk and removed the execute bit from rc.syslog to attempt to start the system, but this time the same thing happened, except it was with lpd not syslogd, in other words a process always ate all the memory, and it was a different process. I also tried different kernels, but no change.
I then went ahead and wiped out all trhe parttitions except /home since i already wanted to reinstall for some time, so i reintsalled, booted, and configured most of the system, recompiled the kernel and booted the new kernel, went ahead and modyfied some rc. files and setup XF86Config, and noticed that when i type startx nothing happens:
root@localhost:/$startx

It just sits there. I even tried different XF86Configs, but nothing, althoug whne i press ctrl-c i can hear the disk working and after 2 secs or so im back at the prompt, so since i have a dualhead card and only one monitor at the moment, i halted the system and connected the monitor to the other port on the card, thinking maybe X is started via that port for some strange reason. I booted the fresh install again, and....
I got the old Out of memory: killed process 59 (syslogd) message, so im back to where i was 4 hours ago....
The only thing that i can thing of is that .xinitrc was tweaked (i didnt check it yet) and caused some buffer overflow or memory problem, i have no idea what to do to fix this, i can only use a rescue disk on that computer, and windows...
Please, does anybody have any clue what the hell is happening!? 1GB of memory eaten up in less than 30 seconds!
Thanks you in advance for any help you can provide
-NSKL
 
Old 12-31-2002, 09:35 AM   #2
niknah
Member
 
Registered: Dec 2002
Location: In front of a computer
Distribution: UPS, DHL, FedEx
Posts: 466

Rep: Reputation: 38
linux will randomly kill anything(lpd, syslog, etc) when it's desperate for memory.

you need to watch "top" and look at the MEM column to see which process is eating up the 1gig of memory.
 
Old 12-31-2002, 10:50 AM   #3
NSKL
Senior Member
 
Registered: Jan 2002
Location: Rome, Italy ; Novi Sad, Srbija; Brisbane, Australia
Distribution: Ubuntu / ITOS2008
Posts: 1,207

Original Poster
Rep: Reputation: 47
Well, if i can't login, i can't monitor the memory usage, although one time when i did login (and only one time) it seemed hostname was eating all the memory, which is very weird. Anyway i reinstalled everyhing completely, butr im very curious to find out what caused this trouble...
thanks
-NSKL
 
Old 12-31-2002, 10:58 AM   #4
AxeZ
Member
 
Registered: Sep 2002
Location: Novi Sad, Vojvodina
Distribution: Slackware, FreeBSD
Posts: 386

Rep: Reputation: 32
Have you tried booting into single user mode?
 
Old 12-31-2002, 04:01 PM   #5
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Maybe a glitch in your memory? Or a bad stick? www.memtest86.com

That truly sucks though.
 
Old 01-01-2003, 08:56 AM   #6
NSKL
Senior Member
 
Registered: Jan 2002
Location: Rome, Italy ; Novi Sad, Srbija; Brisbane, Australia
Distribution: Ubuntu / ITOS2008
Posts: 1,207

Original Poster
Rep: Reputation: 47
I thought it would be bad memory since i disconected both computers and let them collecting dust for two weeks while i was on vacation, but memtest86 didnt find any problems. I did boot into single user mode, looked through logs and found something like:
unathorized access from <IPADD> port(get_connect)
which is why i thought it might be a hack, but i still don't understand how it could mess up the system so bad, after all i was surfing the net as a user, not as root, which means limited permissions.
I reinstalled everyhting this time, wiping my /home too, and now everything is back to normal, bit im clueless as to what could have happened...
Thanks for the help everyone
-NSKL
 
Old 01-01-2003, 01:49 PM   #7
jetblackz
Member
 
Registered: Mar 2002
Location: Debian Galaxy
Distribution: Debian
Posts: 711

Rep: Reputation: 30
Security forum is more appropriate for this kind of question.

http://freshmeat.net/projects/chkrootkit/?topic_id=43

Install chkrootkit on ANOTHER Linux and check the "buggy" Linux with

mount /dev/hda2 /mnt/tmp
./chkrootkit -r /mnt/tmp
 
Old 01-01-2003, 02:17 PM   #8
nautilus_1987
Member
 
Registered: Aug 2002
Distribution: Slackware 8.1
Posts: 750

Rep: Reputation: 30
Well, NSKL, i wan't a good present for a new year
But anyway, you know when I chkrootkit my system, it also looks up if syslogd isn't infected. In your case exaclty SYSLOG daemon was infected, it means it was a sort of a rootkit ( I think it was it or some type of worm ) used the syslogd to crash your system. Youknow it is quite logical to infect exaclty syslogd. Well you can read this:
http://www.cs.wright.edu/people/facu...on/obrien.html

Good luck
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What exploit is this? Boss Hoss Linux - Security 6 06-11-2004 06:16 PM
EXPLOIT programmin darkseed2g3 Linux - Security 7 10-19-2003 09:31 AM
|more exploit Benamoz Linux - General 3 09-03-2003 04:59 AM
Help!?! RH 8 Memory Mapping -High Memory-Virtural Memory issues.. Merlin53 Linux - Hardware 2 06-18-2003 04:48 PM
Webalizer exploit??? pk21 Linux - Security 1 10-27-2002 04:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:28 AM.

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