What if the downloaded Word document can't be modified?

Source: Internet
Author: User
Tags regular expression password protection

Methods that resolve Word documents that cannot be modified, found, or edited because of document protection

A friend of mine today downloaded a Word document from the Internet, but when you open the Word document, you won't be able to modify, find, edit, or even be able to select the contents of the Word document. In fact, this is because the Word document is protected by the document, the solution is as follows.

"Save the restricted document as" and save a document;
Open the saved document and you can edit it!
Principle: Document restrictions only work on the document, as long as you save it as another document, the document can be edited again!

Method One:

1. Right-click the Word document → open mode → WordPad.

2. Click the File menu in WordPad → save as → file type select as RTF document, then take a filename, save it (note: Save the time do not forget to put the name behind the file name.) Doc removed).

3, and then use Word software to open the file can be a normal editing operation

4. Finally, you can save your edited document as a Word document.

Note: In fact, in the first step above, if the document is opened with WordPad can be edited, you can directly copy the contents of the inside can be.

Method Two: (Simple and effective)

Start the Word document, creates a new blank document, executes the Insert File command, opens the Insert File dialog box, navigates to the folder where the document needs to be unprotected, selects the document, clicks the Insert button, inserts the encrypted protected document into the new document, and the document protection is automatically revoked.

Method Three:

After you open the document, save it as an XML file, and then use UltraEdit (or editplus, download the Chinese army search for the line) this editing software opens the XLM file that you just stored to find <W:DOCUMENTPROTECTION......W: Unprtectpassword= "/>", this "Hu Jintao" is variable. Only need to find this text, and then delete the <w....../> section, save exit, you can remove the password protection of the document.

Method Four:

Save the protected ability to view documents that cannot be modified, save as, and then pop in the Save window and select "Save Type" as "word97-2002" format. Then turn off word again, reopen it, just save the file, select "Remove document Protection" in "tools" to edit and modify this file.

The above four kinds of methods can realize we can not edit the protection of the password of the document, we can use their most convenient and accustomed to use methods.

When you use Word for document protection, we often use the form protection (tool-> Protection document (P) ... , forms protection is most thorough, the user cannot edit, also cannot carry on the copy&paste operation. However, the flaw in the Word document allows you to remove the password in a very simple way, and we'll test it ourselves:

First create a Word document, protect the document using Form protection, tool-> Protect Document (P) ...-> check "Allow such edits only in documents"-> select "Fill Out Form", a password box pops up. Enter the password two times (I choose 123 as the Word file password) so that the document is protected.

Then we'll crack it, open the Word document we just created, file-> Save as-> Select XML Format, save as an XML document, open the XML file in Notepad, search for "W:unprotectpassword" (inside quotes, or search directly for password), you will see 5bcecf7a (if your password is 123). Then we use UltraEdit32 or other similar tools to open the original protected Word document, look for 7acfce5b (note in reverse, search may need to select the "Regular expression" option), after the lookup, are replaced by 8 0来, save. At this point, the Word document password is emptied, you can cancel the document protection, the password will not be entered, press a carriage return.

MS has not yet provided a patch for this vulnerability, I think the short-term may not be able to solve the problem, I suggest that future documents do not use this thing to protect.

How to remove the Word document protection password is summarized as follows:

Open the encrypted document, save as a Web page or XML format file, open with Notepad, look for "W:unprotectpassword", write down the discrete password, such as the A1B2C3D4 with UltraEdit32 and other binary editor to open the Word document, Find D4C3B2A1 (in reverse order, you may need to select the "Regular expression" option), replaced by 00 00 00 00 At this time the password has been canceled, open the document, directly remove the document protection.

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.