Skip to content
KitploitKITPLOIT
StrumentiBlog
Invia
StrumentiBlog
Invia

Strumenti di Hacking, PenTest e Cybersecurity per il tuo Arsenale di Sicurezza!

Kitploit è una directory di strumenti di hacking, cybersecurity e pentesting. Scopri gli ultimi aggiornamenti dei progetti per trovare vulnerabilità, analizzare sistemi, automatizzare i test e rafforzare la tua sicurezza.

··Feed·Contatto·Privacy·© 2026 Kitploit

Directory degli strumenti

Categorie

Vedi tutte le categorie
Loading categories
metashield-clean-up-sdk-python | Kitploit
Strumenti/GitHubGitHub/elevenpaths/metashield-clean-up-sdk-python
Scripting e AutomazioneRecupero DatiPrivacyUtilità e Framework
GitHubelevenpaths/metashield-clean-up-sdk-python

metashield-clean-up-sdk-python

Vedi Repository

Più Popolari

Vedi tutti →

Scopri gli strumenti più utilizzati dalla nostra community.

Esplora tutti gli strumenti

Sfoglia la nostra collezione di strumenti

Vedi tutti gli strumenti →
Condividi
228 anni faNon ancora revisionato

Metashield-clean-up-sdk-python

Installazione

Installare il pacchetto metashield_clean_up usando pip::

root@kitploit:~
pip install metashield_clean_up

Utilizzo

Esempio di pulizia di un file.

.. 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)

Eseguire i test

Prima di eseguire i test, sostituire alcune impostazioni nel modulo tests/settings_default.py.

I test sono stati realizzati con Python Unittest, eseguire i seguenti comandi::

root@kitploit:~
python -m unittest discover tests
Scarica lo strumento