File deletion methods for rhs and rhsa file properties

  • 2020-05-14 05:29:21
  • OfStack

Recently in the maintenance of server, found that many sites are hung horse, so to find a Trojan with webshell back door, Shell is scanning, in addition to all the backdoor Trojan but can't edit, and delete, in resource manager can't see those files, aux. asp, functlon. asp, footer. asp, defau1t. asp.
However, these files can be seen or deleted in editplus, but this is troublesome after all. So I went online to find out why. It was originally a problem of file attributes, which I had thought about before, but couldn't get to the point at that time, so I shifted the direction later. Enter the dos

attrib -r -h -s aux.asp

You can then change the property permissions.
Now this help hang horse boy directly to the home page of the other people's website to delete, the quality is too bad too not authentic,
The following command removes the read-only property from the file properties of files in the B disk in the PUBLICJONES directory and its subdirectories:

attrib -r D:\vhost\wwwroot\test\www\*.* /s


C:\Documents and Settings\Administrator > help rmdir
Delete 1 directory.

RMDIR [/S] [/Q] [drive:]path
RD [/S] [/Q] [drive:]path

/S deletes all subdirectories and subdirectories under the specified directory in addition to the directory itself
File. Used to delete the directory tree.

/Q quiet mode, with /S to delete the tree without confirmation

rmdir D:\vhost\wwwroot\test\www /s /q

If you find it troublesome to use the bat version of this tool, drag a file or folder onto the bat file to delete the file.

Save the following file to save the deformities file to me above.bat


DEL /F /A /Q \\?\%1 
RD /S /Q \\?\%1

Download address: / / www. ofstack. com softs / 38427. html


Related articles: