ronin-gen 1.0.0.pre3 → 1.0.0.rc1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gemtest +0 -0
- data/Gemfile +2 -0
- data/README.md +0 -21
- data/Rakefile +1 -0
- data/gemspec.yml +2 -2
- data/lib/ronin/gen/config.rb +3 -0
- data/lib/ronin/gen/generator.rb +7 -2
- data/lib/ronin/gen/version.rb +1 -1
- data/lib/ronin/ui/cli/commands/gen.rb +4 -1
- data/ronin-gen.gemspec +7 -2
- metadata +8 -8
- data/lib/ronin/gen/generatable.rb +0 -35
data/.gemtest
ADDED
File without changes
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -14,27 +14,6 @@ Ronin is a Ruby platform for exploit development and security research.
|
|
14
14
|
Ronin allows for the rapid development and distribution of code, exploits
|
15
15
|
or payloads over many common Source-Code-Management (SCM) systems.
|
16
16
|
|
17
|
-
### Ruby
|
18
|
-
|
19
|
-
Ronin's Ruby environment allows security researchers to leverage Ruby with
|
20
|
-
ease. The Ruby environment contains a multitude of convenience methods
|
21
|
-
for working with data in Ruby, a Ruby Object Database, a customized Ruby
|
22
|
-
Console and an extendable command-line interface.
|
23
|
-
|
24
|
-
### Extend
|
25
|
-
|
26
|
-
Ronin's more specialized features are provided by additional Ronin
|
27
|
-
libraries, which users can choose to install. These libraries can allow
|
28
|
-
one to write and run Exploits and Payloads, scan for PHP vulnerabilities,
|
29
|
-
perform Google Dorks or run 3rd party scanners.
|
30
|
-
|
31
|
-
### Publish
|
32
|
-
|
33
|
-
Ronin allows users to publish and share code, exploits, payloads or other
|
34
|
-
data via Overlays. Overlays are directories of code and data that can be
|
35
|
-
hosted on any SVN, Hg, Git or Rsync server. Ronin makes it easy to create,
|
36
|
-
install or update Overlays.
|
37
|
-
|
38
17
|
## Features
|
39
18
|
|
40
19
|
* Provides {Ronin::Gen::FileGenerator}, a Thor based generator class that
|
data/Rakefile
CHANGED
data/gemspec.yml
CHANGED
data/lib/ronin/gen/config.rb
CHANGED
data/lib/ronin/gen/generator.rb
CHANGED
@@ -95,6 +95,12 @@ module Ronin
|
|
95
95
|
include Templates::Template
|
96
96
|
include DataPaths::Finders
|
97
97
|
|
98
|
+
#
|
99
|
+
# Sets the namespace of new {Generator} classes.
|
100
|
+
#
|
101
|
+
# @param [Class] super_class
|
102
|
+
# The new {Generator} class.
|
103
|
+
#
|
98
104
|
def self.inherited(super_class)
|
99
105
|
class_name = super_class.name.sub('Ronin::Gen::Generators::','')
|
100
106
|
gen_name = class_name.split('::').join(':').underscore
|
@@ -273,8 +279,7 @@ module Ronin
|
|
273
279
|
end
|
274
280
|
|
275
281
|
#
|
276
|
-
# Renders the ERB template
|
277
|
-
# saves the result at the given _destination_.
|
282
|
+
# Renders the ERB template and saves the result.
|
278
283
|
#
|
279
284
|
# @param [String] template_path
|
280
285
|
# The relative path to the template.
|
data/lib/ronin/gen/version.rb
CHANGED
@@ -26,13 +26,16 @@ module Ronin
|
|
26
26
|
module CLI
|
27
27
|
module Commands
|
28
28
|
#
|
29
|
-
#
|
29
|
+
# The `ronin-gen` command.
|
30
30
|
#
|
31
31
|
class Gen < Command
|
32
32
|
|
33
33
|
desc "Prints the list of available generators"
|
34
34
|
class_option :version, :type => :boolean
|
35
35
|
|
36
|
+
#
|
37
|
+
# Lists the available generators.
|
38
|
+
#
|
36
39
|
def execute
|
37
40
|
if options.version?
|
38
41
|
puts "ronin-gen #{Ronin::Gen::VERSION}"
|
data/ronin-gen.gemspec
CHANGED
@@ -5,6 +5,11 @@ begin
|
|
5
5
|
# custom logic here
|
6
6
|
end
|
7
7
|
rescue NameError
|
8
|
-
|
9
|
-
|
8
|
+
begin
|
9
|
+
require 'ore/specification'
|
10
|
+
retry
|
11
|
+
rescue LoadError
|
12
|
+
STDERR.puts "The 'ronin-gen.gemspec' file requires Ore."
|
13
|
+
STDERR.puts "Run `gem install ore` to install Ore."
|
14
|
+
end
|
10
15
|
end
|
metadata
CHANGED
@@ -6,8 +6,8 @@ version: !ruby/object:Gem::Version
|
|
6
6
|
- 1
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.0.
|
9
|
+
- rc1
|
10
|
+
version: 1.0.0.rc1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Postmodern
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-01-
|
18
|
+
date: 2011-01-26 00:00:00 -08:00
|
19
19
|
default_executable: ronin-gen
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -74,8 +74,8 @@ dependencies:
|
|
74
74
|
- 0
|
75
75
|
- 1
|
76
76
|
- 0
|
77
|
-
-
|
78
|
-
version: 0.1.0.
|
77
|
+
- rc1
|
78
|
+
version: 0.1.0.rc1
|
79
79
|
type: :runtime
|
80
80
|
prerelease: false
|
81
81
|
version_requirements: *id004
|
@@ -90,8 +90,8 @@ dependencies:
|
|
90
90
|
- 1
|
91
91
|
- 0
|
92
92
|
- 0
|
93
|
-
-
|
94
|
-
version: 1.0.0.
|
93
|
+
- rc1
|
94
|
+
version: 1.0.0.rc1
|
95
95
|
type: :runtime
|
96
96
|
prerelease: false
|
97
97
|
version_requirements: *id005
|
@@ -137,6 +137,7 @@ extra_rdoc_files:
|
|
137
137
|
- COPYING.txt
|
138
138
|
files:
|
139
139
|
- .document
|
140
|
+
- .gemtest
|
140
141
|
- .rspec
|
141
142
|
- .yardopts
|
142
143
|
- COPYING.txt
|
@@ -178,7 +179,6 @@ files:
|
|
178
179
|
- lib/ronin/gen/exceptions/unknown_generator.rb
|
179
180
|
- lib/ronin/gen/file_generator.rb
|
180
181
|
- lib/ronin/gen/gen.rb
|
181
|
-
- lib/ronin/gen/generatable.rb
|
182
182
|
- lib/ronin/gen/generator.rb
|
183
183
|
- lib/ronin/gen/generators.rb
|
184
184
|
- lib/ronin/gen/generators/library.rb
|
@@ -1,35 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# Copyright (c) 2009-2011 Hal Brodigan (postmodern.mod3 at gmail.com)
|
3
|
-
#
|
4
|
-
# This file is part of Ronin Gen.
|
5
|
-
#
|
6
|
-
# Ronin Gen is free software: you can redistribute it and/or modify
|
7
|
-
# it under the terms of the GNU General Public License as published by
|
8
|
-
# the Free Software Foundation, either version 3 of the License, or
|
9
|
-
# (at your option) any later version.
|
10
|
-
#
|
11
|
-
# Ronin Gen is distributed in the hope that it will be useful,
|
12
|
-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13
|
-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
14
|
-
# GNU General Public License for more details.
|
15
|
-
#
|
16
|
-
# You should have received a copy of the GNU General Public License
|
17
|
-
# along with Ronin Gen. If not, see <http://www.gnu.org/licenses/>.
|
18
|
-
#
|
19
|
-
|
20
|
-
module Ronin
|
21
|
-
module Gen
|
22
|
-
module Generatable
|
23
|
-
#
|
24
|
-
# Default method which will be called upon generation.
|
25
|
-
#
|
26
|
-
# @param [String] path
|
27
|
-
# The path to pass to the generator.
|
28
|
-
#
|
29
|
-
# @since 1.0.0
|
30
|
-
#
|
31
|
-
def generate(path)
|
32
|
-
end
|
33
|
-
end
|
34
|
-
end
|
35
|
-
end
|