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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/ownlan/attack/ntoa.rb +6 -5
- data/lib/ownlan/cli.rb +1 -1
- data/lib/ownlan/service_objects/craft_arp_packets.rb +2 -2
- data/lib/ownlan/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6d0f4a63473567f71cdcb6e4869a44a04b6308cd
|
4
|
+
data.tar.gz: caf3f465a04d35f6e6c8b2dd5c57851634e70bcb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db4e69f3cebbbbbb1342a220f624db3bf207ecca0137091640fdb1eae155b5efea3660f4f051e7aa363ff45b9872414ce6f304976217b0f4f63a1a54cd2e3ef5
|
7
|
+
data.tar.gz: b88d856f4dd21c3f1b37d1627a3fe11c9c11c0eb66642c14e44dcb379d41ad69ba2473255fb8f7c3b4eb268705653fcf05f062f4c3467d3955d6f6307411e3a8
|
data/Gemfile.lock
CHANGED
data/lib/ownlan/attack/ntoa.rb
CHANGED
@@ -8,12 +8,13 @@ module Ownlan
|
|
8
8
|
@c = 10
|
9
9
|
@i = 0
|
10
10
|
|
11
|
-
saddr
|
12
|
-
daddr
|
13
|
-
saddr_ip
|
14
|
-
daddr_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.
|
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 =
|
15
|
+
arp_packet.arp_opcode = opcode
|
16
16
|
|
17
17
|
@packet = arp_packet
|
18
18
|
end
|
data/lib/ownlan/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2016-01-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: packetfu
|