mcspoofy 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/mcspoofy +3 -2
- data/lib/mcspoofy/version.rb +1 -1
- metadata +1 -1
data/bin/mcspoofy
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
# encoding: utf-8
|
3
3
|
require 'gli'
|
4
4
|
require 'mcspoofy'
|
5
|
-
|
5
|
+
require "highline/import"
|
6
6
|
include GLI::App
|
7
7
|
|
8
8
|
program_desc 'Easily spoof your MAC address'
|
@@ -35,7 +35,8 @@ command :set do |c|
|
|
35
35
|
("Hello"=~/^[A-Z][a-z]+$/)
|
36
36
|
if (mac =~ /([0-9A-F]{2}[:-]){5}([0-9A-F]{2})/i)
|
37
37
|
# Set old MAC address to tempvariable
|
38
|
-
|
38
|
+
pass = ask('Requires sudo: '){|q|q.echo = '*'}
|
39
|
+
`echo #{pass} | sudo ifconfig #{interface} ether #{mac}`
|
39
40
|
end
|
40
41
|
puts "Now spoofing #{interface} with MAC address #{mac}"
|
41
42
|
end
|
data/lib/mcspoofy/version.rb
CHANGED