Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@hpyhacking
Created April 3, 2016 13:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hpyhacking/8eb7c7fd57cb1c60abe6aa4266caf873 to your computer and use it in GitHub Desktop.
Save hpyhacking/8eb7c7fd57cb1c60abe6aa4266caf873 to your computer and use it in GitHub Desktop.
# encoding: UTF-8
require 'base64'
File.readlines('new.txt').each do |line|
puts line
if line =~ /b64\](.*)\[/
puts Base64.decode64($1)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment