#
# Copyright (c) 2006-2024 Wade Alcorn - wade@bindshell.net
# Browser Exploitation Framework (BeEF) - https://beefproject.com
# See the file 'doc/COPYING' for copying permission
#
class Zeroshell_2_0rc2_scanner < BeEF::Core::Command
  def self.options
    [
      { 'name' => 'ip_start', 'ui_label' => 'From IP', 'value' => '192.168.0.1' },
      { 'name' => 'ip_end', 'ui_label' => 'To IP', 'value' => '192.168.0.254' },
      { 'name' => 'timeout', 'ui_label' => 'Get result in (ms)', 'value' => '30000' },
      { 'name' => 'ip_bloc', 'ui_label' => 'Scan per bloc (ip)', 'value' => '100' }
    ]
  end

  def post_execute
    save({ 'result' => @datastore['result'] })
  end
end
