sniffit 0.0.2 → 0.0.3
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/lib/sniffit.rb +6 -2
- data/sniffit.gemspec +2 -3
- metadata +2 -3
- data/lib/sniffit/version.rb +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4101293b2bfe1e587afa33c79346b5f6108c4950
|
4
|
+
data.tar.gz: c6d2a28b60f7a55b42fb799a4d74f717da112816
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c21380c6493b0873ca3dabd8ef201dd505c559164a5fc563d3da2a56d2d30a73d94df2a5aac6f72b38fb6a0a0ab2eb1e73bee7ee88ba7b6a97fe958d2f7c9b0
|
7
|
+
data.tar.gz: 991326cac108dc0f273c1fee3920822ce655799c1bdb12671a8b13186a5df57d71eb0fb3b1dd01cd563b6eca6e73d05cc5a8a81e9cd469e30fd5702de5dbcc98
|
data/lib/sniffit.rb
CHANGED
@@ -15,6 +15,10 @@ module Sniffit
|
|
15
15
|
return "en1"
|
16
16
|
end
|
17
17
|
end
|
18
|
+
|
19
|
+
def get_airport_file()
|
20
|
+
"/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport"
|
21
|
+
end
|
18
22
|
|
19
23
|
def get_available_nets(string)
|
20
24
|
|
@@ -62,7 +66,7 @@ module Sniffit
|
|
62
66
|
end
|
63
67
|
end
|
64
68
|
|
65
|
-
IO.popen("sudo
|
69
|
+
IO.popen("sudo #{get_airport_file()} #{get_interface()} sniff #{channel}").read
|
66
70
|
end
|
67
71
|
|
68
72
|
def commence_cracking(bssid)
|
@@ -99,7 +103,7 @@ module Sniffit
|
|
99
103
|
end
|
100
104
|
|
101
105
|
def start()
|
102
|
-
scan_string = IO.popen("
|
106
|
+
scan_string = IO.popen("#{get_airport_file()} scan").read
|
103
107
|
workable_nets = get_available_nets(scan_string)
|
104
108
|
selected_network = print_networks(workable_nets)
|
105
109
|
|
data/sniffit.gemspec
CHANGED
@@ -1,11 +1,10 @@
|
|
1
1
|
# coding: utf-8
|
2
|
-
lib = File.expand_path(
|
2
|
+
lib = File.expand_path("../lib", __FILE__)
|
3
3
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
require 'sniffit/version'
|
5
4
|
|
6
5
|
Gem::Specification.new do |spec|
|
7
6
|
spec.name = "sniffit"
|
8
|
-
spec.version =
|
7
|
+
spec.version = "0.0.3"
|
9
8
|
spec.authors = ["Nathaniel Symer"]
|
10
9
|
spec.email = ["nate@natesymer.com"]
|
11
10
|
spec.description = %q{Scan for WEP-secured wireless networks and find their WEP key. Requires OS X and aircrack-ng}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sniffit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nathaniel Symer
|
@@ -52,10 +52,9 @@ files:
|
|
52
52
|
- LICENSE.txt
|
53
53
|
- README.md
|
54
54
|
- Rakefile
|
55
|
+
- bin/sniffit
|
55
56
|
- lib/sniffit.rb
|
56
|
-
- lib/sniffit/version.rb
|
57
57
|
- sniffit.gemspec
|
58
|
-
- bin/sniffit
|
59
58
|
homepage: http://natesymer.com
|
60
59
|
licenses:
|
61
60
|
- MIT
|
data/lib/sniffit/version.rb
DELETED