I'm sorry, but this program seems broken... When I launch it with argument:
perl bash_obfus.pl -i testfile.sh -o testfile_obfuscated.sh
with the following content in the original file:
#!/bin/bash
clear
read -p 'Hi! 123. >' -n 1 dummy
exit
it just copies the file. What I am doing wrong?