Created
April 4, 2014 14:38
-
-
Save maxd/9976009 to your computer and use it in GitHub Desktop.
Patch to fix compatibility of radiustar with ruby 2.x
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 'radiustar' | |
module Radiustar | |
class Packet | |
def xor_str(str1, str2) | |
bstr1 = str1.unpack('C*') | |
bstr2 = str2.unpack('C*') | |
bstr1.zip(bstr2).map {|b1, b2| b1 ^ b2}.pack('C*') | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://github.com/nagynet200/finna-be-wallhack.wiki.git