Skip to content

Instantly share code, notes, and snippets.

@malware-kitten
Last active August 29, 2015 14:08
Show Gist options
  • Save malware-kitten/7e91438ca6c4dacff211 to your computer and use it in GitHub Desktop.
Save malware-kitten/7e91438ca6c4dacff211 to your computer and use it in GitHub Desktop.
Cohhoc Decode
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