Skip to main content

disabling Redhat 6.1 DHCP

More
19 years 9 months ago #7101 by MaXiMuS
I believe there is a much easier way to get root access on a linux machine by logging in via the single user mode.

For LILO
All u gotta do is type "linux single" or "linux 1" and boot

For GRUB
1) Press e to edit
2) Select the kernel line.Press e to edit ,enter value as single or 1 .
3) Press enter again.
4) Press b to boot.

If you are asked for a password here ,then this trick won't work but if you get to a prompt ,simply type passwd and change it to whatever you like.

Note: Even after obtaining the shell you may encounter few errors ,if that is so ,tell me the exact error message and i'll help you out
More
19 years 9 months ago #7399 by necronian
Our access to this server has been curtailed for the moment, so I have been unable to try your ideas. I wanted to say thank you, however, for the advice and help. Should I get the chance to try them, I will let you know how it goes.

Again, thanks. :)
More
19 years 9 months ago #7400 by sahirh
Hmm since you've got an account, as well as a really old version, may I suggest a local privilege escalation exploit...

Chances are you'll find a load of old binaries that are vulnerable... and if not, the older kernel version definetely is...

Should be a snap to compile some code and get root.

Sahir Hidayatullah.
Firewall.cx Staff - Associate Editor & Security Advisor
tftfotw.blogspot.com
More
19 years 8 months ago #7514 by necronian
Root achieved. :twisted: Regrettably, my problem still exists. It seems that dhcp is located somewhere other than the directories suggested and I am simply incapable of finding it.

Since it is proving problematic in removal, perhaps I should simply correct it's configuration and assign its DHCP in a different range? I realize this is a "can't beat 'em, join 'em" solution, but I am trying to keep costs at a minimum.

Killing the process is possible, but the very next reboot, they return. Trying the "greek solution" that NSKE suggested resulted in "No such file or directory."

I appreciate the continued advice. :) Learning about Red Hat the hard way is better than not at all.
More
19 years 8 months ago #7515 by LooseCannon
Hey necronian, I don't know if you gave this a shot as it was sort of hinted at earlier but the startup script for the dhcp daemon should be located in /etc/rc3.d (I believe that is the full directory, I've been using Solaris a lot recently so it is hard to remember). Regardless the directory "rc3.d" is located in /etc somewhere.

Try an "ls -ail /etc/rc3.d | grep dhcpd*" to see if there is a dhcpd script in that directory. If nothing found just take out the piped grep command and look through the listing manually. If you find it in there delete it and reboot the machine. That will stop the service from starting automatically. Then you just do a "/etc/init.d/dhcpd start" to run it manually in case you need it up again.

Hope that helps,
LC
Time to create page: 0.127 seconds