Sha256: 84be95a9487d4ffc263a61577543b3517ad051f3b3515442f2a61de1724f4a73

Contents?: true

Size: 452 Bytes

Versions: 2

Compression:

Stored size: 452 Bytes

Contents

require 'ronin/payloads/encoders/xor'

require 'spec_helper'

describe Ronin do
  describe Payloads::Encoders::XOR do
    before(:all) do
      @data = "\x00\x01\x90ABC123[]{}'"
    end

    it "should encode-out unwanted characters" do
      disallow = [0x00, 0x01, 0x90]
      xor = Payloads::Encoders::XOR.new(:disallow => disallow)

      xor.call(@data).each_byte do |b|
        disallow.include?(b).should_not == true
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ronin-exploits-0.2.1 spec/payloads/encoders/xor_spec.rb
ronin-exploits-0.2.0 spec/payloads/encoders/xor_spec.rb