sniffit 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 79a2f5c94d93abbe945a9b87cb0fea51c58f2272
4
- data.tar.gz: 97f880a3fe3b1f47c5778c9269bf0bca96c9a5e1
3
+ metadata.gz: 4101293b2bfe1e587afa33c79346b5f6108c4950
4
+ data.tar.gz: c6d2a28b60f7a55b42fb799a4d74f717da112816
5
5
  SHA512:
6
- metadata.gz: f9877f05e7af13e013425608e4a0fdc61a7c633da807fd87eda4f8e6046bf5e72597915bd636981010b66fd6a37a720a5dfce7ce9550cd94e228c5ab0a217832
7
- data.tar.gz: fcdcdb4e2cebf5d43d515bfc5711cf4f4f75158ad666fa6ecd9dec5f0f16ec7ab3dfa8c06c507120d63ada47e351008fb68f7cfe466e785034987d280be56f09
6
+ metadata.gz: 5c21380c6493b0873ca3dabd8ef201dd505c559164a5fc563d3da2a56d2d30a73d94df2a5aac6f72b38fb6a0a0ab2eb1e73bee7ee88ba7b6a97fe958d2f7c9b0
7
+ data.tar.gz: 991326cac108dc0f273c1fee3920822ce655799c1bdb12671a8b13186a5df57d71eb0fb3b1dd01cd563b6eca6e73d05cc5a8a81e9cd469e30fd5702de5dbcc98
@@ -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 /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport #{get_interface()} sniff #{channel}").read
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("airport scan").read
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
 
@@ -1,11 +1,10 @@
1
1
  # coding: utf-8
2
- lib = File.expand_path('../lib', __FILE__)
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 = Sniffit::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.2
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
@@ -1,3 +0,0 @@
1
- module Sniffit
2
- VERSION = "0.0.2"
3
- end