public
Description: A web-based client to manage Nessus scans.
Clone URL: git://github.com/dxoigmn/achilles.git
Upgraded to work with Rails 2.1 and Haml 2.0
dxoigmn (author)
Sat May 31 22:03:53 -0700 2008
commit  7dfada360bc2118fa07acffc3c337e436a2fec19
tree    365f887877625d1454f731bd5fe1773095dbc49c
parent  f2af2990186d27ebfe101da8668abe6242b51333
...
43
44
45
46
47
48
 
 
 
 
 
 
 
 
49
50
51
...
43
44
45
 
 
 
46
47
48
49
50
51
52
53
54
55
56
0
@@ -43,9 +43,14 @@ Dependencies
0
 Achilles has been developed on Rails 2.0.2. It is recommended you run Achilles on this version as future version might not be backwards compatible.
0
 
0
 Achilles is also dependent on the follow ruby gems:
0
- - Chronic
0
- - NetAddr
0
- - Haml
0
+ - chronic
0
+ - netaddr
0
+ - haml
0
+ - libxml-ruby
0
+
0
+Run the following command to install:
0
+
0
+ rake gems:install
0
 
0
 License
0
 -------
...
24
25
26
27
28
29
 
30
31
32
...
44
45
46
 
47
48
49
...
24
25
26
 
27
 
28
29
30
31
...
43
44
45
46
47
48
49
0
@@ -24,9 +24,8 @@ module Rails
0
       File.exist?("#{RAILS_ROOT}/vendor/rails")
0
     end
0
 
0
- # FIXME : Ruby 1.9
0
     def preinitialize
0
- load(preinitializer_path) if File.exists?(preinitializer_path)
0
+ load(preinitializer_path) if File.exist?(preinitializer_path)
0
     end
0
 
0
     def preinitializer_path
0
@@ -44,6 +43,7 @@ module Rails
0
   class VendorBoot < Boot
0
     def load_initializer
0
       require "#{RAILS_ROOT}/vendor/rails/railties/lib/initializer"
0
+ Rails::Initializer.run(:install_gem_spec_stubs)
0
     end
0
   end
0
 
...
5
6
7
8
 
9
10
11
12
13
14
15
16
17
...
19
20
21
22
23
 
 
24
25
 
 
 
 
 
 
 
 
 
 
 
26
27
28
...
35
36
37
 
 
 
 
 
38
39
40
...
46
47
48
49
 
50
51
52
...
56
57
58
59
60
61
62
63
64
65
66
67
68
69
 
...
5
6
7
 
8
9
10
11
 
 
 
12
13
14
...
16
17
18
 
 
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
...
43
44
45
46
47
48
49
50
51
52
53
...
59
60
61
 
62
63
64
65
...
69
70
71
 
 
 
 
 
 
 
 
 
 
72
73
0
@@ -5,13 +5,10 @@
0
 # ENV['RAILS_ENV'] ||= 'production'
0
 
0
 # Specifies gem version of Rails to use when vendor/rails is not present
0
-RAILS_GEM_VERSION = '2.0.2' unless defined? RAILS_GEM_VERSION
0
+RAILS_GEM_VERSION = '2.1.0' unless defined? RAILS_GEM_VERSION
0
 
0
 # Bootstrap the Rails environment, frameworks, and default configuration
0
 require File.join(File.dirname(__FILE__), 'boot')
0
-require File.join(File.dirname(__FILE__), '..', 'vendor', 'plugins', 'app_config', 'lib', 'configuration')
0
-require 'netaddr'
0
-require 'chronic'
0
 
0
 Rails::Initializer.run do |config|
0
   # Settings in config/environments/* take precedence over those specified here.
0
@@ -19,10 +16,21 @@ Rails::Initializer.run do |config|
0
   # -- all .rb files in that directory are automatically loaded.
0
   # See Rails::Configuration for more options.
0
 
0
- # Skip frameworks you're not going to use (only works if using vendor/rails).
0
- # To use Rails without a database, you must remove the Active Record framework
0
+ # Skip frameworks you're not going to use. To use Rails without a database
0
+ # you must remove the Active Record framework.
0
   # config.frameworks -= [ :active_record, :active_resource, :action_mailer ]
0
 
0
+ # Specify gems that this application depends on.
0
+ # They can then be installed with "rake gems:install" on new installations.
0
+ # config.gem "bj"
0
+ # config.gem "hpricot", :version => '0.6', :source => "http://code.whytheluckystiff.net"
0
+ # config.gem "aws-s3", :lib => "aws/s3"
0
+
0
+ config.gem "haml"
0
+ config.gem "chronic"
0
+ config.gem "netaddr"
0
+ config.gem "libxml-ruby", :lib => "xml/libxml"
0
+
0
   # Only load the plugins named here, in the order given. By default, all plugins
0
   # in vendor/plugins are loaded in alphabetical order.
0
   # :all can be used as a placeholder for all plugins not explicitly named
0
@@ -35,6 +43,11 @@ Rails::Initializer.run do |config|
0
   # (by default production uses :info, the others :debug)
0
   # config.log_level = :debug
0
 
0
+ # Make Time.zone default to the specified zone, and make Active Record store time values
0
+ # in the database in UTC, and return them converted to the specified local zone.
0
+ # Run "rake -D time" for a list of tasks for finding time zone names. Uncomment to use default local time.
0
+ config.time_zone = 'UTC'
0
+
0
   # Your secret key for verifying cookie session data integrity.
0
   # If you change this key, all old sessions will become invalid!
0
   # Make sure the secret is at least 30 characters and all random,
0
@@ -46,7 +59,7 @@ Rails::Initializer.run do |config|
0
 
0
   # Use the database for sessions instead of the cookie-based default,
0
   # which shouldn't be used to store highly confidential information
0
- # (create the session table with 'rake db:sessions:create')
0
+ # (create the session table with "rake db:sessions:create")
0
   # config.action_controller.session_store = :active_record_store
0
 
0
   # Use SQL instead of Active Record's schema dumper when creating the test database.
0
@@ -56,13 +69,4 @@ Rails::Initializer.run do |config|
0
 
0
   # Activate observers that should always be running
0
   # config.active_record.observers = :cacher, :garbage_collector
0
-
0
- # Make Active Record use UTC-base instead of local time
0
- #config.active_record.default_timezone = :utc
0
-
0
- config.app_config.nmap_path = 'nmap'
0
- config.app_config.nmap_results_path = 'data/results/nmap/%Y-%m-%d-results.nmap'
0
- config.app_config.nessus_path = 'nessus -q <host> <port> <username> <password>'
0
- config.app_config.nessus_results_path = 'data/results/nessus/%Y-%m-%d-results.nessus'
0
- config.app_config.nessus_plugins_path = 'data/results/nessus/%Y-%m-%d-plugins.lst'
0
-end
0
\ No newline at end of file
0
+end
...
12
13
14
15
16
17
18
19
...
12
13
14
 
15
16
17
18
0
@@ -12,7 +12,6 @@ config.whiny_nils = true
0
 config.action_controller.consider_all_requests_local = true
0
 config.action_view.debug_rjs = true
0
 config.action_controller.perform_caching = false
0
-config.action_view.cache_template_extensions = false
0
 
0
 # Don't care if the mailer can't send
0
 config.action_mailer.raise_delivery_errors = false
0
\ No newline at end of file
...
1
2
 
3
4
5
...
1
 
2
3
4
5
0
@@ -1,5 +1,5 @@
0
 # This file is auto-generated from the current state of the database. Instead of editing this file,
0
-# please use the migrations feature of ActiveRecord to incrementally modify your database, and
0
+# please use the migrations feature of Active Record to incrementally modify your database, and
0
 # then regenerate this schema definition.
0
 #
0
 # Note that this schema.rb definition is the authoritative source for your database schema. If you need
...
1
2
3
4
5
6
...
 
 
 
1
2
3
0
@@ -1,6 +1,3 @@
0
-require 'rubygems'
0
-require 'netaddr'
0
-
0
 module FixtureHelpers
0
   def status(options)
0
     fail unless options[:name]
...
1
2
3
4
5
6
7
8
9
...
 
 
 
 
 
 
1
2
3
0
@@ -1,9 +1,3 @@
0
-require 'rubygems'
0
-require 'resolv'
0
-require 'netaddr'
0
-require 'xml/libxml'
0
-require 'yaml'
0
-
0
 module Nessus
0
   class NessusReport
0
     attr_accessor :hosts
...
1
 
 
 
 
 
 
2
...
 
1
2
3
4
5
6
7
0
@@ -1,2 +1,7 @@
0
-require 'haml'
0
+begin
0
+ require File.join(File.dirname(__FILE__), 'lib', 'haml') # From here
0
+rescue LoadError
0
+ require 'haml' # From gem
0
+end
0
+
0
 Haml.init_rails(binding)

Comments

    No one has commented yet.