Module: Dvash
- Defined in:
- lib/dvash.rb,
lib/dvash/core.rb,
lib/dvash/os/mac.rb,
lib/dvash/os/linux.rb,
lib/dvash/os/windows.rb,
lib/dvash/application.rb,
lib/dvash/honeyports/ipv4/rdp.rb,
lib/dvash/honeyports/ipv4/ssh.rb,
lib/dvash/honeyports/ipv6/rdp.rb,
lib/dvash/honeyports/ipv6/ssh.rb,
lib/dvash/honeyports/ipv4/http.rb,
lib/dvash/honeyports/ipv6/http.rb,
lib/dvash/honeyports/ipv4/telnet.rb
Overview
Dvash Defense - Telnetd IPv4 Honeyport
version 1.0
Written By: Ari Mizrahi
Honeyport to simulate telnetd server
Defined Under Namespace
Classes: Application, Core, Honeyport, Linux, Mac, Windows
Class Method Summary collapse
-
.start(paths = {}) ⇒ Object
Start the CLI and instantiate [Dvash].
Class Method Details
.start(paths = {}) ⇒ Object
Start the CLI and instantiate [Dvash]
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
# File 'lib/dvash.rb', line 24 def self.start(paths={}) # Set default path to config and log files # TODO: These settings assume Linux default paths, it should determine the # operating system then configure accordingly paths[:config_path] = '/etc/dvash.conf' paths[:log_path] = '/var/log/dvash.conf' # Command-line interface OptionParser.new do |opts| # Banner information opts. = "Dvash 0.1.1 ( http://www.github.com/codemunchies/dvash )\n" opts. += "Usage: dvash [options]" # Set an alternate configuration file opts.on("--config-file [PATH]", "Set path to config file") do |arg| paths[:config_path] = arg end # Set an alternate log file destination and filename opts.on("--log-file [PATH]", "Set path to log file") do |arg| paths[:log_path] = arg end end.parse! # Create and start an application instance on Dvash # @return [Dvash] application instance begin application = Dvash::Application.new(paths) application.start rescue # TODO: Use [logger] gem to output debug information puts "couldn't start application" exit end end |