Last active
December 23, 2015 16:29
-
-
Save yaasita/6662592 to your computer and use it in GitHub Desktop.
Cookie Clicker
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
#!/usr/bin/env ruby | |
# coding: utf-8 | |
require 'pp' | |
require 'base64' | |
line = gets | |
line.chomp! | |
line.gsub!(/%21.+$/,"") | |
puts "=== cut =====" | |
puts line | |
puts "=== decode ==" | |
puts decode=Base64.decode64(line) | |
puts "=== plus ====" | |
#puts decode.gsub!(/^(?<=[\d\.]+\|\|)./,"hoge") | |
puts decode.gsub!(/^([\d\.]+\|\|\d+\|\d+\|)(\d+)/,'\128422339998792712179434250932') | |
puts "=== encode ==" | |
puts Base64.encode64(decode).gsub(/[\r\n]/,"") + "%21END%21" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment