Initial commit: HenLoader 12.52 with auto-executing Poops exploit

This commit is contained in:
2025-11-26 14:58:28 +01:00
commit d6615910db
98 changed files with 26431 additions and 0 deletions

74
fix_logo_metadata.sh Executable file
View File

@@ -0,0 +1,74 @@
#!/bin/bash
# Script to fix logo to match old format with EXIF metadata
OLD_LOGO="/coding/logo_old.jpg"
NEW_LOGO="bd-metadata/logo.jpg"
TEMP_LOGO="bd-metadata/logo_temp.jpg"
if [ ! -f "$OLD_LOGO" ]; then
echo "Error: $OLD_LOGO not found"
exit 1
fi
if [ ! -f "$NEW_LOGO" ]; then
echo "Error: $NEW_LOGO not found"
exit 1
fi
echo "=== Fixing logo metadata ==="
echo "Old logo: $(file $OLD_LOGO)"
echo "New logo: $(file $NEW_LOGO)"
echo ""
# Check if ImageMagick is available
if command -v convert &> /dev/null; then
echo "Using ImageMagick to fix logo..."
# Extract EXIF from old logo and apply to new logo
# Resize new logo to exact 640x360, add EXIF metadata similar to old
convert "$NEW_LOGO" \
-resize 640x360! \
-quality 90 \
-strip \
-interlace none \
-colorspace sRGB \
-set density 86x94 \
-set units PixelsPerInch \
-orient top-left \
"$TEMP_LOGO"
# Copy EXIF orientation from old logo if possible
if command -v exiftool &> /dev/null; then
echo "Using exiftool to copy EXIF data..."
exiftool -overwrite_original -tagsFromFile "$OLD_LOGO" -Orientation "$TEMP_LOGO" 2>/dev/null || true
fi
mv "$TEMP_LOGO" "$NEW_LOGO"
echo ""
echo "Logo fixed! New info:"
file "$NEW_LOGO"
ls -lh "$NEW_LOGO"
elif command -v exiftool &> /dev/null; then
echo "Using exiftool to fix metadata..."
# Copy EXIF data from old to new
exiftool -overwrite_original \
-tagsFromFile "$OLD_LOGO" \
-Orientation \
-XResolution=86 \
-YResolution=94 \
-ResolutionUnit=2 \
"$NEW_LOGO"
echo "Logo fixed! New info:"
file "$NEW_LOGO"
else
echo "Error: Need ImageMagick or exiftool installed"
echo ""
echo "Install with:"
echo " sudo apt install imagemagick"
echo " # OR"
echo " sudo apt install libimage-exiftool-perl"
exit 1
fi