ownlan 0.4.3 → 0.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9cefd5db94d00d5048ef72222fa488fcaa39a27d
4
- data.tar.gz: 2ab58e971c67f22635b5bb76fa1086dc4cf58679
3
+ metadata.gz: 6d0f4a63473567f71cdcb6e4869a44a04b6308cd
4
+ data.tar.gz: caf3f465a04d35f6e6c8b2dd5c57851634e70bcb
5
5
  SHA512:
6
- metadata.gz: 17892eca96a1c431b1d06bfe82bbb3ad93ce779927352e75280301f2a93f02a6c786a75f57e0c7f3e62be1194d25ba6aa19bf4d2b6896c46a6aa6f446bc01c3d
7
- data.tar.gz: d8960a5ae197d0f8ff75f717e5395deee612f19f0e5a2e2e0146d0ccfad36942a5c544e63f58f939b9023904f09448a5a43131938963369e5d531ef1b8326a6d
6
+ metadata.gz: db4e69f3cebbbbbb1342a220f624db3bf207ecca0137091640fdb1eae155b5efea3660f4f051e7aa363ff45b9872414ce6f304976217b0f4f63a1a54cd2e3ef5
7
+ data.tar.gz: b88d856f4dd21c3f1b37d1627a3fe11c9c11c0eb66642c14e44dcb379d41ad69ba2473255fb8f7c3b4eb268705653fcf05f062f4c3467d3955d6f6307411e3a8
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ownlan (0.4.3)
4
+ ownlan (0.4.4)
5
5
  activesupport
6
6
  packetfu
7
7
  trollop
@@ -8,12 +8,13 @@ module Ownlan
8
8
  @c = 10
9
9
  @i = 0
10
10
 
11
- saddr = "00:03:FF:#{@a}:#{@b}:#{@c}"
12
- daddr = victim_mac
13
- saddr_ip = "#{source_ip_base}.#{@b}.#{@c}"
14
- daddr_ip = victim_ip
11
+ saddr = "00:03:FF:#{@a}:#{@b}:#{@c}"
12
+ daddr = victim_mac
13
+ saddr_ip = "#{source_ip_base}.#{@b}.#{@c}"
14
+ daddr_ip = victim_ip
15
+ opcode = 1
15
16
 
16
- crafted_packet = packet_craft(saddr, daddr, saddr_ip, daddr_ip).call
17
+ crafted_packet = packet_craft(saddr, daddr, saddr_ip, daddr_ip, opcode).call
17
18
 
18
19
  loop do
19
20
  while @a < 100 do
data/lib/ownlan/cli.rb CHANGED
@@ -83,7 +83,7 @@ Other Options:
83
83
  opt :victim_mac, "Set the mac address of the target", type: :string
84
84
  opt :gateway_ip, "Set the ip adress of the gateway", type: :string
85
85
  opt :gateway_mac, "Set the mac adress of the gateway. (for Protect only)", type: :string
86
- opt :source_mac, "Set the mac of the source mac address. #{mac=ServiceObjects::NetworkInformation.self_mac('wlan1') ; 'Default: Your mac address for wlan0 (' + mac + ')' if !mac.empty?}", short: 's', type: :string
86
+ opt :source_mac, "Set the mac of the source mac address. Default: Your mac address for wlan0", short: 's', type: :string
87
87
  opt :source_ip, "Set the ip address of the originating packet.", type: :string
88
88
 
89
89
  end
@@ -3,7 +3,7 @@ module ServiceObjects
3
3
 
4
4
  attr_reader :packet
5
5
 
6
- def initialize(saddr, daddr, saddr_ip, daddr_ip)
6
+ def initialize(saddr, daddr, saddr_ip, daddr_ip, opcode = 2)
7
7
  arp_packet = ::PacketFu::ARPPacket.new
8
8
 
9
9
  arp_packet.eth_saddr = saddr
@@ -12,7 +12,7 @@ module ServiceObjects
12
12
  arp_packet.arp_daddr_mac = daddr
13
13
  arp_packet.arp_saddr_ip = saddr_ip
14
14
  arp_packet.arp_daddr_ip = daddr_ip
15
- arp_packet.arp_opcode = 2
15
+ arp_packet.arp_opcode = opcode
16
16
 
17
17
  @packet = arp_packet
18
18
  end
@@ -1,3 +1,3 @@
1
1
  module Ownlan
2
- VERSION = "0.4.3"
2
+ VERSION = "0.4.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ownlan
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - sidney
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-25 00:00:00.000000000 Z
11
+ date: 2016-01-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: packetfu