Skip to content

Instantly share code, notes, and snippets.

@jupenur

jupenur/fun.rb Secret

Created March 29, 2020 15:31
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jupenur/f4c10dce1b2824cd1273f6b518fd968b to your computer and use it in GitHub Desktop.
Save jupenur/f4c10dce1b2824cd1273f6b518fd968b to your computer and use it in GitHub Desktop.
def ‬‬error_message(commandline)
"‮‭#{commandline}‬ ‭# Exec denied:‬‬".encode("ASCII-8BIT", undef: :replace, replace: "")
end
def ‮‭puts(‬‎‭commandline)‬‎‭ exec(‬‬error_message(‬‎‭commandline)) end
‮‭puts("id")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment