This file contains 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 'msf/core' | |
require 'crypt/blowfish' # sorry, openssl is limited to 16-byte key size :( | |
# add gem 'crypt', '1.1.4' to Gemfile | |
module ::Crypt | |
class Blowfish | |
def setup_blowfish() | |
@sBoxes = Array.new(4) { |i| INITIALSBOXES[i].clone } | |
@pArray = INITIALPARRAY.clone | |
keypos = 0 |