PDA

Click to See Complete Forum and Search --> : Need help, can't delete hacker's folders


magagnon
August 31st, 2001, 05:29 PM
Hello,

I juste found out that somebody without the proper permissions created 2 folders in the root of my ftp server ( i am running IIS 5.0 ). The folders are named com1 and com2.

Problem is, I can't delete the folders because i don't seem to have the rights even tought I am the admin. I can't even select the folders. When I click on one of them, explorer crashes..

It looks like the best solution would be to format and reinstall ...

Any suggestions ?

Thank you

Ricker
August 31st, 2001, 06:40 PM
Have you tried taking ownership of the directories, and then you can delete them after that. Even if you're admin, if you havent been given permissions to the files/folders, you wont be able to delete them unless you are able to take ownership and then assign perms to yourself.

Good luck.

Enode
September 5th, 2001, 04:30 PM
Hi, if exploere crashes when u select it, it could be a sign of the old extended ascii filename.

it can only be removed through dos becuase windows doesn't support the same ascii table. its usualy ascii key 254 or 255 , dependant on the keyboard set.

try it. in dos try to CD into the folder and put alt + 254/255 on the end of the filename.

Its an old trick that used to be done. this is the only thing that i can think it could possibly be other than permissions.
:rolleyes:

Ricker
September 5th, 2001, 05:06 PM
Yeah, I didn't even think about that. I've seen people, usually programmers, make temp files with "_____.___" for filenames... it reports that in windows, but in dos its actually listed as alt+255 a bunch of times, with a dot in the middle...

Good thinking, and yes, windows won't know what to do with that file, so you'll have to do it in a dos mode or just boot to a dos disk and do it that way.

Terr
September 6th, 2001, 12:46 AM
I had put up a bit of information on the alt-255 character in This thread (http://www.antionline.com/showthread.php?s=&threadid=92371).

magagnon
September 6th, 2001, 05:20 AM
Thanks for the help

I think you guys are on the right track. There is a strange character at the end of each directory name and each file extension.

However, it does not seem to be the 255 ascii code.

Fortunately, i have informations in the IIS log that might be usefull. I have found this in one of my logs

23:57:31 <ip address>[45]RNTO flt-cfz.002+./+./ 250
23:57:39 <ip address>[45]RNFR flt-cfz.003 350
23:57:39 <ip address>[45]RNTO flt-cfz.003+./+./ 250
23:57:47 <ip address>[45]RNFR flt-cfz.004 350
23:57:47 <ip address>[45]RNTO flt-cfz.004+./+./ 250
23:57:56 <ip address>[45]RNFR flt-cfz.005 350
23:57:56 <ip address>[45]RNTO flt-cfz.005+./+./ 250

It looks like every file are renamed with an extra character at the end. It's the " +./+./ " part that I can't figure out. What does that mean ?

Thank you

magagnon
September 6th, 2001, 06:09 AM
I think I just answered my own question. The files were renamed with the following names:

flt-cfz.001 ./ ./
flt-cfz.002 ./ ./
flt-cfz.003 ./ ./

But the slashes do not show up in the directory listing. So you can't access the files unless you know how many slashes were inserted.

How is that possible ? This is not a valid name in windows so how come it works ?

Terr
September 6th, 2001, 07:29 AM
Well, I haven't seen that before. The closest thing I can think of it HTML (and DOS, and *nix, when you get down to it) notation for relative directories, which doesn't quite seem to make sense in that context.

(I.E. With two periods meaning the prev directory, and one period meaning th ecurrent directory, so http://blah.com/dir1/dir2/../ is the same as http://blah.com/dir1/ )