Bash
Self-modifying script
#!/bin/bash
function command_not_found_handle () {
echo -e ""
}
function hiddentrait {
echo "I have a superpower!"
echo "# hidden again" >> $0
}
echo -n "hiddentrait" >> $0
And if you see the code after an execution, the hiddentrait function is not being called either, disabled by making it a bad identifier (hiddentrait#
).