mcspoofy 0.0.1 → 0.0.2

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.
Files changed (3) hide show
  1. data/bin/mcspoofy +3 -2
  2. data/lib/mcspoofy/version.rb +1 -1
  3. metadata +1 -1
@@ -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
- `sudo ifconfig #{interface} ether #{mac}`
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
@@ -1,3 +1,3 @@
1
1
  module Mcspoofy
2
- VERSION = '0.0.1'
2
+ VERSION = '0.0.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mcspoofy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: