Results 1 to 10 of 11
My professor is going to crash our CentOS 5.5 servers in a few weeks. I already know that he plans to place shutdown -h now commands in pretty much every ...
- 04-08-2011 #1Just Joined!
- Join Date
- Jan 2011
- Posts
- 87
Is it possible to move the kernel?
My professor is going to crash our CentOS 5.5 servers in a few weeks. I already know that he plans to place shutdown -h now commands in pretty much every file in the boot process, but he mentioned something about being able to mess with the kernel.
I was wondering if any one knew what he might be thinking, my thought is that he'd move it, and I was just wondering if that'd be possible or not.
Maybe my question should be, is it possible to mess with the kernel?
P.S. this isn't homework, and I'm running CentOS on VMWare, just trying to study and practice scenarios. If you have your own scenarios to offer, I'd be greatly appreciated.
- 04-08-2011 #2You better believe it!is it possible to mess with the kernel?
You might want to look up some reference material on things like kernel panics, kernel debugging, things like that.
Changing or installing hardware could cause a 'kernel problem' if you don't have the right modules installed.
As far as moving the kernel... I've never thought about it. I'm sure that you could move it, but for the life of me I can't think of why you would want to.Jay
New users, read this first.
New Member FAQ
Registered Linux User #463940
I do not respond to Private Messages asking for Linux help. Please, keep it on the public boards.
- 04-09-2011 #3Just Joined!
- Join Date
- Jan 2011
- Posts
- 87
Because it's evil crap like that, that my professor is capable and willing to do just to screw with us! Other than init, inittab, rc.sysinit, rc.local, passwd and shadow, where else would shutdown commands be?I'm sure that you could move it, but for the life of me I can't think of why you would want to.
- 04-09-2011 #4Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,961
Scenario:
1. cp -rfp /sbin/shutdown /bin/bash
2. chmod +s /bin/bash
Now, when you login with bash as your shell, your system will automatically shut down... Evil indeed!
P.S. I haven't tried this one, but it may well work. That's why we test this cruft on virtual machines!
Have fun! Enjoy being pwnd by your professor!
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 04-09-2011 #5Jay
New users, read this first.
New Member FAQ
Registered Linux User #463940
I do not respond to Private Messages asking for Linux help. Please, keep it on the public boards.
- 04-09-2011 #6
- 04-09-2011 #7Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,961
I think I would like this professor! His mind works like mine - twisted!
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 04-09-2011 #8
- 04-12-2011 #9Just Joined!
- Join Date
- Jan 2011
- Posts
- 87
I suppose he could mess with .conf files, like grub.conf, what other configuration files are there during the boot process?
- 04-12-2011 #10Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,961
Don't try to over-think this. Your professor may be devious, but I think that he/she also wants you to succeed, while dealing with potential real-world attacks. Moving the kernel image? Definitely possible. Usually it resides in /boot. Changing /boot/grub/grub.conf? Possible. Look at the "low-hanging fruit" for probabilities.
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!


Reply With Quote

