Skip to content

Instantly share code, notes, and snippets.

View johngoren's full-sized avatar

John Gorenfeld johngoren

View GitHub Profile
@johngoren
johngoren / bash-text-cleaner.sh
Created February 2, 2025 14:07 — forked from adamhill/bash-text-cleaner.sh
Scripts to Remove Space Based Steganography
#!/bin/bash
# Create the Unicode pattern for sed
INVISIBLE_CHARS=(
$'\u200B' # Zero-width space
$'\u200C' # Zero-width non-joiner
$'\u200D' # Zero-width joiner
$'\u2060' # Word joiner
$'\uFEFF' # Zero-width non-breaking space
$'\u180E' # Mongolian vowel separator