
01-24-2005, 11:59 PM
|
|
Web Hosting Master
|
|
Join Date: Oct 2003
Location: Georgetown, Ontario
Posts: 1,761
|
|
So Their Server got hacked...
I'm talking to a fellow hosting company on AIM and they're asking me to fix their server. I know these guys, so I agree.
Anyways, their server got hacked, shadow file got messed up and ssh just closes connections right away, and telnet refuses a connection.
Anyway to "hack" back in without getting the datacenter involved?
__________________
·· Repeat after me... ProSupport is the best... Prosupport is... ··
ProSupport Host Support System - OUT NOW! Grab a copy yourself and see what the hype is about!
VertiHost Inc. - We run a quality business. Do you?
|

01-25-2005, 01:24 AM
|
|
Retired Moderator
|
|
Join Date: Mar 2004
Location: Singapore/Melbourne
Posts: 6,832
|
|
I won't recommend doing that, best to contact the datacenter and get the necessary access.
|

01-25-2005, 02:02 AM
|
|
Web Hosting Master
|
|
Join Date: Apr 2003
Location: NC
Posts: 2,911
|
|
Well if you have secured your server there should not be
If the server is that far gone a restore/reimage is probably a very good idea. Without an IDS you don't have any clue what is screwed up.
|

01-25-2005, 04:48 AM
|
|
Retired Moderator
|
|
Join Date: Sep 2004
Location: Flint, Michigan
Posts: 5,768
|
|
Somebody correct me if I am wrong but if the shadow file is messed up you are not going to be able to log in period. Format, re-image, start from scratch. Be sure to ask them where their remote backups are.
|

01-25-2005, 05:07 AM
|
|
Web Hosting Master
|
|
Join Date: Nov 2003
Location: Canada
Posts: 881
|
|
I agree, get them to re-install the entire OS. I also suggest getting it installed on a new drive, then mount the old drive and you can access data off that. This will let you examine what went wrong and it will also give you quick access to files. And makes sure you aren't missing anything from the remote backups.
Another possibility is to get the DC to put a new shadow file on the server. Its easy enough, just make sure they have a root entry. Although if you were hacked other things could have been left behind, a re-install might still be a better method.
Last edited by Captian_Spike; 01-25-2005 at 05:13 AM.
|

01-25-2005, 09:22 AM
|
|
Web Hosting Master
|
|
Join Date: Apr 2003
Location: NC
Posts: 2,911
|
|
Quote:
Originally posted by justadollarhostin
Somebody correct me if I am wrong but if the shadow file is messed up you are not going to be able to log in period. Format, re-image, start from scratch. Be sure to ask them where their remote backups are.
|
You can login as single user on the physical computer and reset the password if you had a kvm or something. Over the internet you would have to exploit the server but if you had physical access would be easy.
|

01-25-2005, 11:06 AM
|
|
Newbie
|
|
Join Date: Jun 2004
Posts: 20
|
|
If there's no IDS installed that will block IPs then you could try port scanning the machine to see if the hacker has left SSH running on a different port and then try and login through that port.
There may however be a root kit installed that will spawn after each login is completed (eg a trojan attached to /bin/login) but you may still get some access to the box and at least get some data off it before a rebuild.
Just an idea.
Chris
|

01-25-2005, 03:41 PM
|
|
Web Hosting Master
|
|
Join Date: Oct 2003
Location: Georgetown, Ontario
Posts: 1,761
|
|
Some of you are hinting towards this being our server. It's not. Our servers are secure. This was another companies server, and I don't have anything to do with how it was secured or kept secure.
Their server is tomsyer, and their response times are VERY slow. That's why I was wondering if there was any way I could get back into the server without logining in. Seems not.
Looks like they'll have to get an OS reinstall on a new drive in that case.
__________________
·· Repeat after me... ProSupport is the best... Prosupport is... ··
ProSupport Host Support System - OUT NOW! Grab a copy yourself and see what the hype is about!
VertiHost Inc. - We run a quality business. Do you?
|

01-25-2005, 05:07 PM
|
|
WHT Addict
|
|
Join Date: Nov 2003
Posts: 136
|
|
Quote:
Originally posted by belowzero
If there's no IDS installed that will block IPs then you could try port scanning the machine to see if the hacker has left SSH running on a different port and then try and login through that port.
There may however be a root kit installed that will spawn after each login is completed (eg a trojan attached to /bin/login) but you may still get some access to the box and at least get some data off it before a rebuild.
Just an idea.
Chris
|
Sorry, but this just irks me.  IDS is detection, not prevention. Granted, there are some IDS solutions that come with minimal blocking capabilities, but these are minimal at best. If they had access to destroy the shadow file, that means it was a root compromise, and no telling what happened. I would go with the above suggestion to get the OS reinstalled from scratch and mount the old HD so that they can try to get some data back.
Pheaton: looks like you replied as I hit post reply. Good luck. I've had some issues with Savvis, as well as with Tomsyer.
|

01-25-2005, 05:42 PM
|
|
Newbie
|
|
Join Date: Jun 2004
Posts: 20
|
|
Fair enough. IDS is a generic term but I meant if the box isn't going to ban your IP for scanning it (eg running something like portsentry) then there may be a telnet or SSH daemon listening on a port that you can still get a login through. The hacks I've seen don't usually trash the shadow file but mess up the commonly used daemons used to gain a shell with.
Then at least you could recover some valuable (non-executable) data before rebuilding the box.
Chris
|

01-25-2005, 06:40 PM
|
|
WHT Addict
|
|
Join Date: Nov 2003
Posts: 136
|
|
Quote:
Originally posted by belowzero
Fair enough. IDS is a generic term but I meant if the box isn't going to ban your IP for scanning it (eg running something like portsentry) then there may be a telnet or SSH daemon listening on a port that you can still get a login through. The hacks I've seen don't usually trash the shadow file but mess up the commonly used daemons used to gain a shell with.
Then at least you could recover some valuable (non-executable) data before rebuilding the box.
Chris
|
Yeah, I knew what you meant, but it still bothers me.  At any rate.  Yeah, I can't say I have ever heard of an attack trashing the shadow file either. Emphasis on non-executable, text-file type data. 
|

01-25-2005, 09:41 PM
|
|
Web Hosting Master
|
|
Join Date: Oct 2001
Posts: 1,244
|
|
Try scanning the box for any open ports - maybe the hackers have left a way for them to get back in...
Otherwise, just reboot in single user mode and restore the shadow file from the backups (.... you do have backups right??)
PS - if you can, don't hook the server back to the internet because there may be software on there that records any new root passwords you set.... after a compromise, do a fresh install.
Best of luck!
__________________
Avi Brender
Reliable Web Hosting by Elite Hosts, Inc
CPANEL Reseller Hosting - Fantastico - Rvskins - ClientExec
|

01-25-2005, 09:44 PM
|
|
I like ice cream
|
|
Join Date: Mar 2003
Location: California USA
Posts: 11,785
|
|
Quote:
Originally posted by Pheaton
Some of you are hinting towards this being our server. It's not. Our servers are secure. This was another companies server, and I don't have anything to do with how it was secured or kept secure.
Their server is tomsyer, and their response times are VERY slow. That's why I was wondering if there was any way I could get back into the server without logining in. Seems not.
Looks like they'll have to get an OS reinstall on a new drive in that case.
|
well,
if you got access to ftp, and they have an old vuln kernel, you can try to exploit using php or perl. But i think thats stupid. Just get an os reload.
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
| Postbit Selector |
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|
| Login: |
|
|
| Advertisement: |
|
|
| Web Hosting News: |
|
|
|