Skip to content
KitploitKITPLOIT
工具博客
提交
工具博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

··订阅源·联系·隐私·© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
工具/GitHubGitHub/elevenpaths/metashield-clean-up-sdk-python
脚本与自动化数据恢复隐私保护实用工具与框架
GitHubelevenpaths/metashield-clean-up-sdk-python

metashield-clean-up-sdk-python

Python SDK,用于移除文件(PDF、Office、图片)中的隐藏元数据,通过自动化清理工作流保护隐私并防止数据泄露。

查看仓库
2258年前尚未审核

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

Metashield-clean-up-sdk-python

安装

使用 pip 安装 metashield_clean_up 包::

root@kitploit:~
pip install metashield_clean_up

用法

清理文件的示例。

.. code-block:: python

root@kitploit:~
import time
import base64
from metashield_clean_up.api import MetashieldCleanUp

api = MetashieldCleanUp("REPLACE_APP_ID_HERE", "REPLACE_SECRET_KEY_HERE")
with open("file.pdf", "rb") as f:
    response = api.clean_file(f.read(), "file.pdf")

clean_id = response.data["cleanId"]

time.sleep(5)  # wait until file is cleaned

response2 = api.get_clean_result(clean_id)
decoded = base64.b64decode(response2.data[clean_id])

with open("cleanFile.pdf", "w") as f:
    f.write(decoded)

运行测试

运行测试前,请替换 tests/settings_default.py 模块中的一些设置。

测试使用 Python Unittest 构建,运行以下命令::

root@kitploit:~
python -m unittest discover tests
下载工具