ronin 1.5.0.rc1 → 1.5.0.rc2

Sign up to get free protection for your applications and to get access to all the features.
@@ -30,11 +30,15 @@
30
30
  * Improved recognition of console `!command`s and `.command`s.
31
31
  * Do not allow executing console commands while in multi-line mode!
32
32
  * Fixed bug in {Ronin::UI::CLI::Command} that was disabling colour output.
33
+ * When {Ronin::UI::CLI::Command#start} catches an Interrupt, it will exit
34
+ with status 130.
35
+ * Rescue `Errno::EPIPE` in {Ronin::UI::CLI::Command#start}.
33
36
  * Improved `--help` output of `ronin` commands by adding `examples` and more
34
37
  `:description`s to options.
35
- * Changed `ronin help COMMAND` to display the man-page for the given command.
38
+ * Changed `ronin-help COMMAND` to display the man-page for the given command.
36
39
  * No longer honor the `DEBUG` environment variable. Use `ruby -w` or `ruby -d`
37
40
  instead.
41
+ * Removed dm-constraints from the dependencies.
38
42
 
39
43
  ### 1.4.1 / 2012-04-01
40
44
 
data/Gemfile CHANGED
@@ -16,7 +16,6 @@ gem 'jruby-openssl', '~> 0.7', :platforms => :jruby
16
16
  # gem 'dm-sqlite-adapter', DM_VERSION, :git => "#{DM_URI}/dm-sqlite-adapter.git"
17
17
  # gem 'dm-core', DM_VERSION, :git => "#{DM_URI}/dm-core.git"
18
18
  # gem 'dm-types', DM_VERSION, :git => "#{DM_URI}/dm-types.git"
19
- # gem 'dm-constraints', DM_VERSION, :git => "#{DM_URI}/dm-constraints.git"
20
19
  # gem 'dm-migrations', DM_VERSION, :git => "#{DM_URI}/dm-migrations.git"
21
20
  # gem 'dm-validations', DM_VERSION, :git => "#{DM_URI}/dm-validations.git"
22
21
  # gem 'dm-serializer', DM_VERSION, :git => "#{DM_URI}/dm-serializer.git"
@@ -60,7 +60,6 @@ dependencies:
60
60
  # DataMapper dependencies:
61
61
  dm-core: ~> 1.2
62
62
  dm-types: ~> 1.2
63
- dm-constraints: ~> 1.2
64
63
  dm-migrations: ~> 1.2
65
64
  dm-validations: ~> 1.2
66
65
  dm-serializer: ~> 1.2
@@ -81,7 +80,7 @@ dependencies:
81
80
  ripl-short_errors: ~> 0.1
82
81
  ripl-color_result: ~> 0.3
83
82
  # Ronin dependencies:
84
- ronin-support: ~> 0.5.0.rc1
83
+ ronin-support: ~> 0.5.0.rc2
85
84
 
86
85
  development_dependencies:
87
86
  bundler: ~> 1.0
@@ -161,13 +161,7 @@ module Ronin
161
161
  # @api public
162
162
  #
163
163
  def self.start(argv=ARGV)
164
- command = new()
165
-
166
- unless command.start(argv)
167
- exit -1
168
- end
169
-
170
- return true
164
+ new().start(argv)
171
165
  end
172
166
 
173
167
  #
@@ -231,7 +225,10 @@ module Ronin
231
225
  begin
232
226
  run
233
227
  rescue Interrupt
234
- exit
228
+ # Ctrl^C
229
+ exit 130
230
+ rescue Errno::EPIPE
231
+ # STDOUT was closed
235
232
  rescue => error
236
233
  print_exception(error)
237
234
  exit -1
@@ -56,12 +56,14 @@ module Ronin
56
56
  #
57
57
  def execute
58
58
  if command?
59
- unless CLI.commands.include?(command)
60
- print_error "Unknown command: #{command.dump}"
61
- return false
59
+ name = command.gsub(/^ronin-/,'')
60
+
61
+ unless CLI.commands.include?(name)
62
+ print_error "Unknown command: #{@command.dump}"
63
+ exit -1
62
64
  end
63
65
 
64
- man_page = "ronin-#{command.tr(':','-')}.1"
66
+ man_page = "ronin-#{name.tr(':','-')}.1"
65
67
 
66
68
  Installation.paths.each do |path|
67
69
  man_path = File.join(path,'man',man_page)
@@ -71,11 +73,11 @@ module Ronin
71
73
  end
72
74
  end
73
75
 
74
- print_error "No man-page for the command: #{@command}"
75
- return false
76
- else
77
- print_array CLI.commands, :title => 'Available commands'
76
+ print_error "No man-page for the command: #{@command.dump}"
77
+ exit -1
78
78
  end
79
+
80
+ print_array CLI.commands, :title => 'Available commands'
79
81
  end
80
82
 
81
83
  end
@@ -18,6 +18,7 @@
18
18
  #
19
19
 
20
20
  require 'ronin/ui/cli/command'
21
+ require 'ronin/fuzzing/template'
21
22
  require 'ronin/wordlist'
22
23
 
23
24
  module Ronin
@@ -146,7 +147,9 @@ module Ronin
146
147
  #
147
148
  def wordlist
148
149
  if template?
149
- Ronin::Wordlist.new(String.generate(*parse_template),@mutations)
150
+ generator = Fuzzing::Template.new(parse_template)
151
+
152
+ Ronin::Wordlist.new(generator,@mutations)
150
153
  elsif input?
151
154
  Ronin::Wordlist.build(File.open(@input),@mutations)
152
155
  else
@@ -167,7 +170,7 @@ module Ronin
167
170
  if @output
168
171
  File.open(@output,'w',&block)
169
172
  else
170
- yield STDOUT
173
+ yield $stdout
171
174
  end
172
175
  end
173
176
 
@@ -19,5 +19,5 @@
19
19
 
20
20
  module Ronin
21
21
  # Ronin version
22
- VERSION = '1.5.0.rc1'
22
+ VERSION = '1.5.0.rc2'
23
23
  end
@@ -57,8 +57,8 @@ Start the Ronin Console.
57
57
  ## ENVIRONMENT
58
58
 
59
59
  HOME
60
- Specifies the home directory of the user. Ronin will search for the `.ronin`
61
- configuration directory within the home directory.
60
+ Specifies the home directory of the user. Ronin will search for the
61
+ *~/.ronin/* configuration directory within the home directory.
62
62
 
63
63
  EDITOR
64
64
  Specifies the editor to use when invoking the `.edit` console command.
@@ -40,8 +40,8 @@ Runs a script from a Ronin Repository.
40
40
  ## ENVIRONMENT
41
41
 
42
42
  HOME
43
- Specifies the home directory of the user. Ronin will search for the `.ronin`
44
- configuration directory within the home directory.
43
+ Specifies the home directory of the user. Ronin will search for the
44
+ *~/.ronin* configuration directory within the home directory.
45
45
 
46
46
  ## AUTHOR
47
47
 
@@ -44,7 +44,7 @@ Installs Ronin Repositories.
44
44
  *~/.ronin/*
45
45
  Ronin configuration directory.
46
46
 
47
- *~/.ronin/repos*
47
+ *~/.ronin/repos/*
48
48
  Installation directory for Ronin Repositories.
49
49
 
50
50
  *~/.ronin/database.log*
@@ -59,8 +59,8 @@ Installs Ronin Repositories.
59
59
  ## ENVIRONMENT
60
60
 
61
61
  HOME
62
- Specifies the home directory of the user. Ronin will search for the `.ronin`
63
- configuration directory within the home directory.
62
+ Specifies the home directory of the user. Ronin will search for the
63
+ *~/.ronin/* configuration directory within the home directory.
64
64
 
65
65
  ## EXAMPLES
66
66
 
@@ -65,8 +65,8 @@ Lists Ronin Repositories.
65
65
  ## ENVIRONMENT
66
66
 
67
67
  HOME
68
- Specifies the home directory of the user. Ronin will search for the `.ronin`
69
- configuration directory within the home directory.
68
+ Specifies the home directory of the user. Ronin will search for the
69
+ *~/.ronin/* configuration directory within the home directory.
70
70
 
71
71
  ## AUTHOR
72
72
 
@@ -40,7 +40,7 @@ Uninstalls a Ronin Repositories.
40
40
  *~/.ronin/*
41
41
  Ronin configuration directory.
42
42
 
43
- *~/.ronin/repos*
43
+ *~/.ronin/repos/*
44
44
  Installation directory for Ronin Repositories.
45
45
 
46
46
  *~/.ronin/database.log*
@@ -55,8 +55,8 @@ Uninstalls a Ronin Repositories.
55
55
  ## ENVIRONMENT
56
56
 
57
57
  HOME
58
- Specifies the home directory of the user. Ronin will search for the `.ronin`
59
- configuration directory within the home directory.
58
+ Specifies the home directory of the user. Ronin will search for the
59
+ *~/.ronin/* configuration directory within the home directory.
60
60
 
61
61
  ## AUTHOR
62
62
 
@@ -55,8 +55,8 @@ Updates Ronin Repositories.
55
55
  ## ENVIRONMENT
56
56
 
57
57
  HOME
58
- Specifies the home directory of the user. Ronin will search for the `.ronin`
59
- configuration directory within the home directory.
58
+ Specifies the home directory of the user. Ronin will search for the
59
+ *~/.ronin/* configuration directory within the home directory.
60
60
 
61
61
  ## AUTHOR
62
62
 
@@ -23,8 +23,9 @@ Gem::Specification.new do |gem|
23
23
 
24
24
  glob = lambda { |patterns| gem.files & Dir[*patterns] }
25
25
 
26
- gem.files = `git ls-files`.split($/)
27
- gem.files = glob[gemspec['files']] if gemspec['files']
26
+ gem.files = `git ls-files`.split($/)
27
+ gem.files = glob[gemspec['files']] if gemspec['files']
28
+ gem.files += Array(gemspec['generated_files'])
28
29
 
29
30
  gem.executables = gemspec.fetch('executables') do
30
31
  glob['bin/*'].map { |path| File.basename(path) }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ronin
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0.rc1
4
+ version: 1.5.0.rc2
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-31 00:00:00.000000000 Z
12
+ date: 2012-06-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: dm-sqlite-adapter
@@ -59,22 +59,6 @@ dependencies:
59
59
  - - ~>
60
60
  - !ruby/object:Gem::Version
61
61
  version: '1.2'
62
- - !ruby/object:Gem::Dependency
63
- name: dm-constraints
64
- requirement: !ruby/object:Gem::Requirement
65
- none: false
66
- requirements:
67
- - - ~>
68
- - !ruby/object:Gem::Version
69
- version: '1.2'
70
- type: :runtime
71
- prerelease: false
72
- version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
- requirements:
75
- - - ~>
76
- - !ruby/object:Gem::Version
77
- version: '1.2'
78
62
  - !ruby/object:Gem::Dependency
79
63
  name: dm-migrations
80
64
  requirement: !ruby/object:Gem::Requirement
@@ -360,7 +344,7 @@ dependencies:
360
344
  requirements:
361
345
  - - ~>
362
346
  - !ruby/object:Gem::Version
363
- version: 0.5.0.rc1
347
+ version: 0.5.0.rc2
364
348
  type: :runtime
365
349
  prerelease: false
366
350
  version_requirements: !ruby/object:Gem::Requirement
@@ -368,7 +352,7 @@ dependencies:
368
352
  requirements:
369
353
  - - ~>
370
354
  - !ruby/object:Gem::Version
371
- version: 0.5.0.rc1
355
+ version: 0.5.0.rc2
372
356
  - !ruby/object:Gem::Dependency
373
357
  name: bundler
374
358
  requirement: !ruby/object:Gem::Requirement
@@ -696,6 +680,23 @@ files:
696
680
  - spec/url_scheme_spec.rb
697
681
  - spec/url_spec.rb
698
682
  - spec/vendor_spec.rb
683
+ - man/ronin.1
684
+ - man/ronin-campaigns.1
685
+ - man/ronin-console.1
686
+ - man/ronin-creds.1
687
+ - man/ronin-database.1
688
+ - man/ronin-emails.1
689
+ - man/ronin-exec.1
690
+ - man/ronin-help.1
691
+ - man/ronin-hosts.1
692
+ - man/ronin-install.1
693
+ - man/ronin-ips.1
694
+ - man/ronin-net-proxy.1
695
+ - man/ronin-repos.1
696
+ - man/ronin-uninstall.1
697
+ - man/ronin-update.1
698
+ - man/ronin-urls.1
699
+ - man/ronin-wordlist.1
699
700
  homepage: http://github.com/ronin-ruby/ronin
700
701
  licenses:
701
702
  - GPL-3