@julia is this any useful or nah?
#!/bin/bash deobfuscate() { obfuscated=$1 deobfuscated="" hexKey=${obfuscated:0:2} key=$((16#$hexKey)) if [ -z "$key" ]; then echo "Invalid obfuscated string" return fi for (( i=2; i<${#obfuscated}; i+=2 )); do hexChar=${obfuscated:$i:2} char=$((16#$hexChar)) if [ -z "$char" ]; then echo "Invalid obfuscated string" return fi deobfuscated+=$(printf "\x$(printf %x $((char ^ key)))") done echo $deobfuscated } # Usage # deobfuscate "your_obfuscated_string"