【问题标题】:Detect if a .doc file is password protected on Linux [closed]检测 .doc 文件是否在 Linux 上受密码保护 [关闭]
【发布时间】:2017-01-05 08:34:42
【问题描述】:

我有 .doc 文件。我想知道是否有任何 shell/linux cmd 可以判断 doc 文件是否受密码保护。

对于 pdf 文件,我有 pdfinfo。 .doc 文件有什么吗?

谢谢

【问题讨论】:

  • 尝试在 LibreOffice 中打开
  • 好的..有什么linux命令可以做到这一点吗?使用 Libreoffice,它会首先尝试打开文件。我不想那样做。如果文档受密码保护,我只想简单检测。就像pdfinfo

标签: linux shell password-protection doc


【解决方案1】:

安装antiword。如果文档受密码保护,则antiword file.doc 的输出将为Encrypted documents are not supported,否则为文档内容。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-08-24
    • 2013-02-05
    • 1970-01-01
    • 2014-12-30
    • 2013-05-11
    • 2023-03-03
    • 1970-01-01
    相关资源
    最近更新 更多