Last active
August 29, 2015 14:08
-
-
Save malware-kitten/7e91438ca6c4dacff211 to your computer and use it in GitHub Desktop.
Cohhoc Decode
This file contains hidden or 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
require 'base64' | |
data = "3d3duIWRvYmVzZXJ2aWNlbi5ldE=" | |
decode = Base64.decode64(data) | |
decode.each_byte do |b| | |
#shr dl,6 | |
#shl al,2 | |
#or dl,al | |
print (((b<<6)%0xff |(b>>2)%0xff)).chr | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment