Forum Moderators: phranque

Message Too Old, No Replies

Software to list all files - website hacked.

         

apeepa

4:18 pm on Aug 25, 2009 (gmt 0)

10+ Year Member



Hi,

My linux site site has been hacked through GoDaddy. I need to get rid of the malware files. What I'm trying to do is to see if I there is a program that could list all of the files that i have in my web directory, so i can sort by last modified date. In FTP this is difficult due to the multiple folders.

Any easy way to get this done.....?

Demaestro

4:21 pm on Aug 25, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Do you have SSH access to the server?

apeepa

4:30 pm on Aug 25, 2009 (gmt 0)

10+ Year Member



yes i do.

Demaestro

4:41 pm on Aug 25, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



ok so SSH in and cd to the public folder.

Then try this:

->ls -r -I -t

just so you know what is happening

ls (list directory contents)
-r (recursively list sub-directories)
-I (give detailed listing)
-t (sort by last modified)

This should list everything.

Some linux versions have subtle differences, it might be uppercase R instead of lowercase, or the I could be an i

If you do this

->ls --help

It will list all the ls arguments that you pass in.

Post back if you have questions or get stuck.

apeepa

11:33 pm on Aug 25, 2009 (gmt 0)

10+ Year Member



thank you. you are extremely helpful.