File deletion methods for RHS and RHSA file attributes _ server Other

Source: Internet
Author: User

Recently in the maintenance of the server, found that many sites have been hanging horses, so with Webshell to find a backdoor Trojan, Shell is scanned in addition to all the backdoor Trojan, but can not edit and delete, in the resource manager can not see those files, aux.asp,functlon.asp, Footer.asp,defau1t.asp.
But these files can be seen in the editplus can also be deleted, but this is troublesome. So the internet to find out why. Originally is the file attribute problem, previously also pondered, but at that time to no avail, then shifted direction. Enter DOS

Attrib-r-h-s aux.asp

You can change the property permissions.
Now this gang horse's kid directly to the home page of the People's website to delete, the quality is too bad too not authentic,
The following command deletes the read-only property from the file attribute of the file in the directory Publicjones and its subdirectories that exists on disk B:

Attrib-r D:\vhost\wwwroot\test\www\*.*/S


C:\Documents and Settings\administrator>help RmDir
Deletes a directory.

RMDIR [/S] [/q] [Drive:]path
RD [/S] [/q] [Drive:]path

/S In addition to the directory itself, will also delete all subdirectories in the specified directory and
File. Used to delete a directory tree.

/q Quiet mode, with/S delete directory tree does not require confirmation

RmDir d:\vhost\wwwroot\test\www/s/q

If you feel trouble recommending the use of this tool bat version, drag the file or folder to the bat file to delete the file.

Save the following file as a malformed file on top of me. bat

Copy Code code as follows:

del/f/a/q \\?\%1
RD/S/q \\?\%1

Download Address: http://www.jb51.net/softs/38427.html

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.