bcoles
bcoles
```ruby # # Display error messages # def error(s) return if $NO_ERRORS $semaphore.reentrant_synchronize do # TODO: make use_color smart, so it detects a tty STDERR.puts((($use_colour == 'auto') || ($use_colour ==...
```ruby def self.define(&block) # TODO: plugins should isolated p = new p.instance_eval(&block) p.startup # TODO: make sure required attributes are set Plugin.attributes.each { |symbol| p.instance_variable_get("@#{symbol}").freeze } Plugin.registered_plugins[p.name] = p end...
```ruby def self.define(&block) # TODO: plugins should isolated p = new p.instance_eval(&block) p.startup # TODO: make sure required attributes are set Plugin.attributes.each { |symbol| p.instance_variable_get("@#{symbol}").freeze } Plugin.registered_plugins[p.name] = p end...
```ruby # is it a valid domain? begin domain = Addressable::URI.parse(x) # check validity raise 'Unable to parse invalid target. No hostname.' if domain.host.empty? # convert IDN domain x =...
``` # TODO: refactor this url_list = url_list.map do |x| if File.exist?(x) x else # use url pattern x = opts[:url_pattern].gsub('%insert%', x) unless opts[:url_pattern].to_s.eql?('') # add prefix & suffix x...
``` # TODO: refactor this. data which matches these regexs should be taken care of above url_list = url_list.select { |x| !(x =~ %r{^[0-9\.\-*\/]+$}) || x =~ /^[\d\.]+$/ } url_list...
``` # TODO: refactor this ip_range = url_list.map do |x| range = nil # Parse IP ranges if x =~ %r{^[0-9\.\-\/]+$} && x !~ %r{^[\d\.]+$} begin # CIDR notation if...
```ruby def add_target(url, redirect_counter = 0) # TODO: REVIEW: should this use prepare_target? target = Target.new(url, redirect_counter) unless target error("Add Target Failed - #{url}") return end @target_queue
**Issue** The `-p` argument fails for plugin names when both plugin names and plugin paths are provided. **Priority** Low **Logs** ``` $ ./whatweb -p title,plugins/robots.txt.rb whatweb.net Error: The following plugins...
RITM assumes HTTP `CONNECT` requests indicate that the client wants to initiate a HTTPS connection. This is an unsafe assumption. This affects clients attempting to tunnel unencrypted HTTP with the...