Class: BetterCap::Spoofers::None
- Defined in:
- lib/bettercap/spoofers/none.rb
Overview
Dummy class used to disable spoofing.
Instance Method Summary collapse
-
#initialize ⇒ None
constructor
Initialize the non-spoofing class.
-
#start ⇒ Object
Start the “NONE” spoofer.
-
#stop ⇒ Object
Stop the “NONE” spoofer.
Methods inherited from Base
available, get_by_name, inherited
Constructor Details
Instance Method Details
#start ⇒ Object
Start the “NONE” spoofer.
30 31 32 33 34 35 |
# File 'lib/bettercap/spoofers/none.rb', line 30 def start stop() if @running @running = true @thread = Thread.new { fake_spoofer } end |
#stop ⇒ Object
Stop the “NONE” spoofer.
38 39 40 41 42 43 44 45 46 |
# File 'lib/bettercap/spoofers/none.rb', line 38 def stop return unless @running @running = false begin @thread.exit rescue end end |