ronin-sql 0.2.4 → 1.0.0
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/.document +4 -0
- data/.gitignore +11 -0
- data/.rspec +1 -0
- data/.yardopts +1 -0
- data/COPYING.txt +623 -288
- data/{History.txt → ChangeLog.md} +33 -35
- data/Gemfile +25 -0
- data/README.md +110 -0
- data/Rakefile +30 -20
- data/bin/ronin-sql +18 -5
- data/gemspec.yml +16 -0
- data/lib/ronin/formatting/extensions/sql.rb +4 -3
- data/lib/ronin/formatting/extensions/sql/string.rb +83 -10
- data/lib/ronin/formatting/sql.rb +4 -3
- data/lib/ronin/sql.rb +5 -12
- data/lib/ronin/{code/sql/create_index.rb → sql/binary_expr.rb} +25 -18
- data/lib/ronin/sql/clause.rb +72 -0
- data/lib/ronin/sql/clauses.rb +297 -0
- data/lib/ronin/sql/emittable.rb +84 -0
- data/lib/ronin/sql/emitter.rb +375 -0
- data/lib/ronin/sql/field.rb +106 -0
- data/lib/ronin/{code/sql/as.rb → sql/fields.rb} +36 -17
- data/lib/ronin/{code/sql/binary_expr.rb → sql/function.rb} +27 -27
- data/lib/ronin/sql/functions.rb +989 -0
- data/lib/ronin/sql/injection.rb +125 -157
- data/lib/ronin/{code/sql/default_values_clause.rb → sql/literal.rb} +13 -11
- data/lib/ronin/sql/literals.rb +72 -0
- data/lib/ronin/sql/operators.rb +332 -0
- data/lib/ronin/sql/sql.rb +86 -0
- data/lib/ronin/sql/statement.rb +70 -0
- data/lib/ronin/sql/statement_list.rb +110 -0
- data/lib/ronin/sql/statements.rb +115 -0
- data/lib/ronin/{code/sql/desc.rb → sql/unary_expr.rb} +11 -11
- data/lib/ronin/sql/version.rb +5 -4
- data/ronin-sql.gemspec +61 -0
- data/spec/formatting/sql/string_spec.rb +172 -0
- data/spec/spec_helper.rb +1 -4
- data/spec/sql/binary_expr.rb +5 -0
- data/spec/sql/binary_expr_examples.rb +25 -0
- data/spec/sql/clause_examples.rb +43 -0
- data/spec/sql/clause_spec.rb +31 -0
- data/spec/sql/clauses_spec.rb +43 -0
- data/spec/sql/emittable_spec.rb +41 -0
- data/spec/sql/emitter_spec.rb +472 -0
- data/spec/sql/field_spec.rb +103 -0
- data/spec/sql/fields_spec.rb +40 -0
- data/spec/sql/function_examples.rb +30 -0
- data/spec/sql/function_spec.rb +25 -0
- data/spec/sql/functions_spec.rb +110 -0
- data/spec/sql/injection_spec.rb +233 -0
- data/spec/sql/literal_spec.rb +5 -0
- data/spec/sql/literals_spec.rb +46 -0
- data/spec/sql/operators_spec.rb +44 -0
- data/spec/sql/sql_spec.rb +18 -0
- data/spec/sql/statement_examples.rb +39 -0
- data/spec/sql/statement_list_spec.rb +48 -0
- data/spec/sql/statement_sql.rb +38 -0
- data/spec/sql/statements_spec.rb +22 -0
- data/spec/sql/unary_expr.rb +5 -0
- data/spec/sql/unary_expr_examples.rb +20 -0
- metadata +116 -217
- data.tar.gz.sig +0 -0
- data/Manifest.txt +0 -108
- data/README.txt +0 -112
- data/lib/ronin/code/sql.rb +0 -22
- data/lib/ronin/code/sql/add_column_clause.rb +0 -42
- data/lib/ronin/code/sql/alter_table.rb +0 -52
- data/lib/ronin/code/sql/asc.rb +0 -36
- data/lib/ronin/code/sql/between.rb +0 -66
- data/lib/ronin/code/sql/clause.rb +0 -35
- data/lib/ronin/code/sql/code.rb +0 -35
- data/lib/ronin/code/sql/common_dialect.rb +0 -66
- data/lib/ronin/code/sql/create.rb +0 -74
- data/lib/ronin/code/sql/create_table.rb +0 -44
- data/lib/ronin/code/sql/create_view.rb +0 -41
- data/lib/ronin/code/sql/delete.rb +0 -52
- data/lib/ronin/code/sql/dialect.rb +0 -282
- data/lib/ronin/code/sql/drop.rb +0 -55
- data/lib/ronin/code/sql/drop_index.rb +0 -41
- data/lib/ronin/code/sql/drop_table.rb +0 -41
- data/lib/ronin/code/sql/drop_view.rb +0 -41
- data/lib/ronin/code/sql/emittable.rb +0 -100
- data/lib/ronin/code/sql/exceptions.rb +0 -24
- data/lib/ronin/code/sql/exceptions/unknown_clause.rb +0 -29
- data/lib/ronin/code/sql/exceptions/unknown_dialect.rb +0 -29
- data/lib/ronin/code/sql/exceptions/unknown_statement.rb +0 -29
- data/lib/ronin/code/sql/expr.rb +0 -102
- data/lib/ronin/code/sql/field.rb +0 -101
- data/lib/ronin/code/sql/fields_clause.rb +0 -46
- data/lib/ronin/code/sql/from_clause.rb +0 -42
- data/lib/ronin/code/sql/function.rb +0 -53
- data/lib/ronin/code/sql/group_by_clause.rb +0 -46
- data/lib/ronin/code/sql/having_clause.rb +0 -46
- data/lib/ronin/code/sql/in.rb +0 -47
- data/lib/ronin/code/sql/injected_statement.rb +0 -100
- data/lib/ronin/code/sql/injection.rb +0 -203
- data/lib/ronin/code/sql/insert.rb +0 -54
- data/lib/ronin/code/sql/intersect_clause.rb +0 -42
- data/lib/ronin/code/sql/join_clause.rb +0 -123
- data/lib/ronin/code/sql/like.rb +0 -73
- data/lib/ronin/code/sql/limit_clause.rb +0 -42
- data/lib/ronin/code/sql/modifier.rb +0 -48
- data/lib/ronin/code/sql/offset_clause.rb +0 -42
- data/lib/ronin/code/sql/on_clause.rb +0 -55
- data/lib/ronin/code/sql/order_by_clause.rb +0 -42
- data/lib/ronin/code/sql/program.rb +0 -225
- data/lib/ronin/code/sql/rename_to_clause.rb +0 -42
- data/lib/ronin/code/sql/replace.rb +0 -54
- data/lib/ronin/code/sql/select.rb +0 -103
- data/lib/ronin/code/sql/set_clause.rb +0 -42
- data/lib/ronin/code/sql/statement.rb +0 -180
- data/lib/ronin/code/sql/token.rb +0 -62
- data/lib/ronin/code/sql/unary_expr.rb +0 -47
- data/lib/ronin/code/sql/union_all_clause.rb +0 -42
- data/lib/ronin/code/sql/union_clause.rb +0 -42
- data/lib/ronin/code/sql/update.rb +0 -52
- data/lib/ronin/code/sql/values_clause.rb +0 -46
- data/lib/ronin/code/sql/where_clause.rb +0 -42
- data/lib/ronin/sql/error.rb +0 -26
- data/lib/ronin/sql/error/error.rb +0 -62
- data/lib/ronin/sql/error/extensions.rb +0 -22
- data/lib/ronin/sql/error/extensions/string.rb +0 -77
- data/lib/ronin/sql/error/message.rb +0 -62
- data/lib/ronin/sql/error/pattern.rb +0 -104
- data/lib/ronin/sql/error/patterns.rb +0 -99
- data/lib/ronin/sql/extensions.rb +0 -22
- data/lib/ronin/sql/extensions/uri.rb +0 -22
- data/lib/ronin/sql/extensions/uri/http.rb +0 -107
- data/spec/code/sql/common_dialect_spec.rb +0 -205
- data/spec/code/sql/create_examples.rb +0 -19
- data/spec/code/sql/create_index_spec.rb +0 -25
- data/spec/code/sql/create_table_spec.rb +0 -27
- data/spec/code/sql/create_view_spec.rb +0 -16
- data/spec/code/sql/delete_spec.rb +0 -14
- data/spec/code/sql/drop_examples.rb +0 -10
- data/spec/code/sql/drop_index_spec.rb +0 -16
- data/spec/code/sql/drop_table_spec.rb +0 -16
- data/spec/code/sql/drop_view_spec.rb +0 -16
- data/spec/code/sql/has_default_values_clause_examples.rb +0 -10
- data/spec/code/sql/has_fields_clause_examples.rb +0 -15
- data/spec/code/sql/has_from_clause_examples.rb +0 -13
- data/spec/code/sql/has_values_clause_examples.rb +0 -15
- data/spec/code/sql/has_where_clause_examples.rb +0 -15
- data/spec/code/sql/insert_spec.rb +0 -21
- data/spec/code/sql/replace_spec.rb +0 -21
- data/spec/code/sql/select_spec.rb +0 -105
- data/spec/code/sql/update_spec.rb +0 -26
- data/spec/helpers/code.rb +0 -14
- data/spec/sql/error_spec.rb +0 -24
- data/spec/sql/extensions/uri/http_spec.rb +0 -34
- data/spec/sql_spec.rb +0 -9
- data/tasks/spec.rb +0 -10
- data/tasks/yard.rb +0 -13
- metadata.gz.sig +0 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
require 'spec_helper'
|
|
2
|
+
require 'ronin/sql/literals'
|
|
3
|
+
|
|
4
|
+
describe SQL::Literals do
|
|
5
|
+
subject { Object.new.extend(described_class) }
|
|
6
|
+
|
|
7
|
+
describe "#null" do
|
|
8
|
+
it "should return a Literal" do
|
|
9
|
+
subject.null.should be_kind_of(SQL::Literal)
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
it "should have the value of :NULL" do
|
|
13
|
+
subject.null.value.should == :NULL
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
describe "#int" do
|
|
18
|
+
it "should return a Literal" do
|
|
19
|
+
subject.int(5).should be_kind_of(SQL::Literal)
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
it "should convert the value to an Integer" do
|
|
23
|
+
subject.int('5').value.should == 5
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
describe "#float" do
|
|
28
|
+
it "should return a Literal" do
|
|
29
|
+
subject.float(1.5).should be_kind_of(SQL::Literal)
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
it "should convert the value to a Float" do
|
|
33
|
+
subject.float('1.5').value.should == 1.5
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
describe "#float" do
|
|
38
|
+
it "should return a Literal" do
|
|
39
|
+
subject.string('A').should be_kind_of(SQL::Literal)
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
it "should convert the value to a String" do
|
|
43
|
+
subject.string(42).value.should == '42'
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
require 'spec_helper'
|
|
2
|
+
require 'ronin/sql/operators'
|
|
3
|
+
require 'sql/binary_expr_examples'
|
|
4
|
+
require 'sql/unary_expr_examples'
|
|
5
|
+
|
|
6
|
+
describe SQL::Operators do
|
|
7
|
+
subject { Object.new.extend(described_class) }
|
|
8
|
+
|
|
9
|
+
let(:operand) { 1 }
|
|
10
|
+
|
|
11
|
+
include_examples "BinaryExpr", :*
|
|
12
|
+
include_examples "BinaryExpr", :/
|
|
13
|
+
include_examples "BinaryExpr", :%
|
|
14
|
+
include_examples "BinaryExpr", :+
|
|
15
|
+
include_examples "BinaryExpr", :-
|
|
16
|
+
include_examples "BinaryExpr", :<<
|
|
17
|
+
include_examples "BinaryExpr", :>>
|
|
18
|
+
include_examples "BinaryExpr", :&
|
|
19
|
+
include_examples "BinaryExpr", :|
|
|
20
|
+
include_examples "BinaryExpr", :<
|
|
21
|
+
include_examples "BinaryExpr", :<=
|
|
22
|
+
include_examples "BinaryExpr", :>
|
|
23
|
+
include_examples "BinaryExpr", :>=
|
|
24
|
+
include_examples "BinaryExpr", :==, :"="
|
|
25
|
+
include_examples "BinaryExpr", :!=
|
|
26
|
+
include_examples "BinaryExpr", :as, :AS
|
|
27
|
+
include_examples "BinaryExpr", :is, :IS
|
|
28
|
+
include_examples "BinaryExpr", :is_not, :"IS NOT"
|
|
29
|
+
include_examples "BinaryExpr", :like, :LIKE
|
|
30
|
+
include_examples "BinaryExpr", :glob, :GLOB
|
|
31
|
+
include_examples "BinaryExpr", :match, :MATCH
|
|
32
|
+
include_examples "BinaryExpr", :regexp, :REGEXP
|
|
33
|
+
include_examples "BinaryExpr", :in, :IN
|
|
34
|
+
|
|
35
|
+
include_examples "UnaryExpr", :-@, :-
|
|
36
|
+
include_examples "UnaryExpr", :+@, :+
|
|
37
|
+
|
|
38
|
+
include_examples "UnaryExpr", :~
|
|
39
|
+
include_examples "UnaryExpr", :!
|
|
40
|
+
include_examples "UnaryExpr", :not, :NOT
|
|
41
|
+
|
|
42
|
+
include_examples "BinaryExpr", :and, :AND
|
|
43
|
+
include_examples "BinaryExpr", :or, :OR
|
|
44
|
+
end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
require 'spec_helper'
|
|
2
|
+
require 'ronin/sql/sql'
|
|
3
|
+
|
|
4
|
+
describe SQL do
|
|
5
|
+
subject { Object.new.extend(described_class) }
|
|
6
|
+
|
|
7
|
+
describe "#sql" do
|
|
8
|
+
it "should return a new SQL::StatementList" do
|
|
9
|
+
subject.sql.should be_kind_of(SQL::StatementList)
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
describe "#sqli" do
|
|
14
|
+
it "should return a new SQL::Injection" do
|
|
15
|
+
subject.sqli.should be_kind_of(SQL::Injection)
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
require 'spec_helper'
|
|
2
|
+
|
|
3
|
+
shared_examples_for "Statement" do |method,keyword,argument=nil|
|
|
4
|
+
describe "##{method}" do
|
|
5
|
+
case argument
|
|
6
|
+
when Array
|
|
7
|
+
let(:arguments) { argument }
|
|
8
|
+
|
|
9
|
+
let(:statement) { subject.send(method,*arguments) }
|
|
10
|
+
when NilClass
|
|
11
|
+
let(:statement) { subject.send(method) }
|
|
12
|
+
else
|
|
13
|
+
let(:statement) { subject.send(method,argument) }
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
it "should add a #{keyword} clause" do
|
|
17
|
+
statement.keyword.should == keyword
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
case argument
|
|
21
|
+
when Proc
|
|
22
|
+
it "should accept a block" do
|
|
23
|
+
statement.argument.should_not be_nil
|
|
24
|
+
end
|
|
25
|
+
when NilClass
|
|
26
|
+
it "should not have an argument" do
|
|
27
|
+
statement.argument.should be_nil
|
|
28
|
+
end
|
|
29
|
+
when Array
|
|
30
|
+
it "should accept an argument" do
|
|
31
|
+
statement.argument.should == arguments
|
|
32
|
+
end
|
|
33
|
+
else
|
|
34
|
+
it "should accept an argument" do
|
|
35
|
+
statement.argument.should == argument
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
require 'spec_helper'
|
|
2
|
+
require 'ronin/sql/statement_list'
|
|
3
|
+
|
|
4
|
+
describe SQL::StatementList do
|
|
5
|
+
describe "#initialize" do
|
|
6
|
+
context "when given a block" do
|
|
7
|
+
subject do
|
|
8
|
+
described_class.new { @x = 1 }
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
it "should instance_eval the block" do
|
|
12
|
+
subject.instance_variable_get(:@x).should == 1
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
context "that accepts an argument" do
|
|
16
|
+
it "should yield itself" do
|
|
17
|
+
yielded_statement_list = nil
|
|
18
|
+
|
|
19
|
+
described_class.new do |statement_list|
|
|
20
|
+
yielded_statement_list = statement_list
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
yielded_statement_list.should be_kind_of(described_class)
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe "#<<" do
|
|
30
|
+
let(:keyword) { :SELECT }
|
|
31
|
+
|
|
32
|
+
before { subject << SQL::Statement.new(keyword) }
|
|
33
|
+
|
|
34
|
+
it "should append a new statement" do
|
|
35
|
+
subject.statements.last.keyword.should == keyword
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
describe "#statement" do
|
|
40
|
+
let(:keyword) { [:ALTER, :TABLE] }
|
|
41
|
+
|
|
42
|
+
before { subject.statement(keyword) }
|
|
43
|
+
|
|
44
|
+
it "should create and append a new Statement" do
|
|
45
|
+
subject.statements.last.keyword.should == keyword
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
require 'spec_helper'
|
|
2
|
+
require 'ronin/sql/statement'
|
|
3
|
+
|
|
4
|
+
describe SQL::Statement do
|
|
5
|
+
describe "#initialize" do
|
|
6
|
+
context "when given an argument" do
|
|
7
|
+
let(:argument) { 1 }
|
|
8
|
+
|
|
9
|
+
subject { described_class.new(:STATEMENT,argument) }
|
|
10
|
+
|
|
11
|
+
it "should set the argument" do
|
|
12
|
+
subject.argument.should == argument
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
context "when given a block" do
|
|
17
|
+
subject do
|
|
18
|
+
described_class.new(:STATEMENT) { @x = 1 }
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
it "should instance_eval the block" do
|
|
22
|
+
subject.instance_variable_get(:@x).should == 1
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
context "that accepts an argument" do
|
|
26
|
+
it "should yield itself" do
|
|
27
|
+
yielded_statement = nil
|
|
28
|
+
|
|
29
|
+
described_class.new(:STATEMENT) do |stmt|
|
|
30
|
+
yielded_statement = stmt
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
yielded_statement.should be_kind_of(described_class)
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
require 'spec_helper'
|
|
2
|
+
require 'sql/statement_examples'
|
|
3
|
+
require 'ronin/sql/statement'
|
|
4
|
+
require 'ronin/sql/statements'
|
|
5
|
+
|
|
6
|
+
describe SQL::Statements do
|
|
7
|
+
subject { Object.new.extend(described_class) }
|
|
8
|
+
|
|
9
|
+
describe "#statement" do
|
|
10
|
+
let(:keyword) { :EXEC }
|
|
11
|
+
|
|
12
|
+
it "should create an arbitrary statement" do
|
|
13
|
+
subject.statement(keyword).keyword.should == keyword
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
include_examples "Statement", :select, :SELECT, [1,2,3,:id]
|
|
18
|
+
include_examples "Statement", :insert, :INSERT
|
|
19
|
+
include_examples "Statement", :update, :UPDATE, :table
|
|
20
|
+
include_examples "Statement", :delete, [:DELETE, :FROM], :table
|
|
21
|
+
include_examples "Statement", :drop_table, [:DROP, :TABLE], :table
|
|
22
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
require 'spec_helper'
|
|
2
|
+
require 'ronin/sql/unary_expr'
|
|
3
|
+
|
|
4
|
+
shared_examples_for "UnaryExpr" do |method,operator=method|
|
|
5
|
+
describe "##{method}" do
|
|
6
|
+
let(:expr) { subject.send(method) }
|
|
7
|
+
|
|
8
|
+
it "should be a UnaryExpr" do
|
|
9
|
+
expr.should be_kind_of(SQL::UnaryExpr)
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
it "should set the operand" do
|
|
13
|
+
expr.operand.should == subject
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
it "should have a '#{operator}' operator" do
|
|
17
|
+
expr.operator.should == operator
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
metadata
CHANGED
|
@@ -1,242 +1,141 @@
|
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ronin-sql
|
|
3
|
-
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
prerelease:
|
|
5
6
|
platform: ruby
|
|
6
|
-
authors:
|
|
7
|
+
authors:
|
|
7
8
|
- Postmodern
|
|
8
9
|
autorequire:
|
|
9
10
|
bindir: bin
|
|
10
|
-
cert_chain:
|
|
11
|
-
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
7SHHsybE6DSn7oTDs6XBTNrNIn5VfZA0z01eeos/+zBm1zKJOK2+/7xtLLDuDU9G
|
|
22
|
-
+Rd+ltUBbvxUrMNZmDG29pnmN2xTRH+Q8HxD2AxlvM5SRpK6OeZaHV7PaCCAVZ4L
|
|
23
|
-
T9BFl1sfMvRlABeGEkSyuQIDAQABozkwNzAJBgNVHRMEAjAAMAsGA1UdDwQEAwIE
|
|
24
|
-
sDAdBgNVHQ4EFgQUKwsd+PqEYmBvyaTyoL+uRuk+PhEwDQYJKoZIhvcNAQEFBQAD
|
|
25
|
-
ggEBAB4TvHsrlbcXcKg6gX5BIb9tI+zGkpzo0Z7jnxMEcNO7NGGwmzafDBI/xZYv
|
|
26
|
-
xkRH3/HXbGGYDOi6Q6gWt5GujSx0bOImDtYTJTH8jnzN92HzEK5WdScm1QpZKF1e
|
|
27
|
-
cezArMbxbSPaosxTCtG6LQTkE28lFQsmFZ5xzouugS4h5+LVJiVMmiP+l3EfkjFa
|
|
28
|
-
GOURU+rNEMPWo8MCWivGW7jes6BMzWHcW7DQ0scNVmIcCIgdyMmpscuAEOSeghy9
|
|
29
|
-
/fFs57Ey2OXBL55nDOyvN/ZQ2Vab05UH4t+GCxjAPeirzL/29FBtePT6VD44c38j
|
|
30
|
-
pDj+ws7QjtH/Qcrr1l9jfN0ehDs=
|
|
31
|
-
-----END CERTIFICATE-----
|
|
32
|
-
|
|
33
|
-
date: 2009-09-25 00:00:00 -07:00
|
|
34
|
-
default_executable:
|
|
35
|
-
dependencies:
|
|
36
|
-
- !ruby/object:Gem::Dependency
|
|
37
|
-
name: ronin
|
|
38
|
-
type: :runtime
|
|
39
|
-
version_requirement:
|
|
40
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
41
|
-
requirements:
|
|
42
|
-
- - ">="
|
|
43
|
-
- !ruby/object:Gem::Version
|
|
44
|
-
version: 0.3.0
|
|
45
|
-
version:
|
|
46
|
-
- !ruby/object:Gem::Dependency
|
|
47
|
-
name: ronin-web
|
|
48
|
-
type: :runtime
|
|
49
|
-
version_requirement:
|
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
-
requirements:
|
|
52
|
-
- - ">="
|
|
53
|
-
- !ruby/object:Gem::Version
|
|
54
|
-
version: 0.2.0
|
|
55
|
-
version:
|
|
56
|
-
- !ruby/object:Gem::Dependency
|
|
57
|
-
name: rspec
|
|
11
|
+
cert_chain: []
|
|
12
|
+
date: 2013-01-21 00:00:00.000000000 Z
|
|
13
|
+
dependencies:
|
|
14
|
+
- !ruby/object:Gem::Dependency
|
|
15
|
+
name: bundler
|
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
|
17
|
+
none: false
|
|
18
|
+
requirements:
|
|
19
|
+
- - ~>
|
|
20
|
+
- !ruby/object:Gem::Version
|
|
21
|
+
version: '1.0'
|
|
58
22
|
type: :development
|
|
59
|
-
|
|
60
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
- !ruby/object:Gem::Dependency
|
|
23
|
+
prerelease: false
|
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
25
|
+
none: false
|
|
26
|
+
requirements:
|
|
27
|
+
- - ~>
|
|
28
|
+
- !ruby/object:Gem::Version
|
|
29
|
+
version: '1.0'
|
|
30
|
+
- !ruby/object:Gem::Dependency
|
|
67
31
|
name: yard
|
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
|
33
|
+
none: false
|
|
34
|
+
requirements:
|
|
35
|
+
- - ~>
|
|
36
|
+
- !ruby/object:Gem::Version
|
|
37
|
+
version: '0.8'
|
|
68
38
|
type: :development
|
|
69
|
-
|
|
70
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
version_requirement:
|
|
80
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
81
|
-
requirements:
|
|
82
|
-
- - ">="
|
|
83
|
-
- !ruby/object:Gem::Version
|
|
84
|
-
version: 2.3.3
|
|
85
|
-
version:
|
|
86
|
-
description: |-
|
|
87
|
-
Ronin SQL is a Ruby library for Ronin that provids support for SQL related
|
|
88
|
-
security tasks.
|
|
89
|
-
|
|
90
|
-
Ronin is a Ruby platform for exploit development and security research.
|
|
91
|
-
Ronin allows for the rapid development and distribution of code, exploits
|
|
92
|
-
or payloads over many common Source-Code-Management (SCM) systems.
|
|
93
|
-
email:
|
|
94
|
-
- postmodern.mod3@gmail.com
|
|
95
|
-
executables:
|
|
39
|
+
prerelease: false
|
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
41
|
+
none: false
|
|
42
|
+
requirements:
|
|
43
|
+
- - ~>
|
|
44
|
+
- !ruby/object:Gem::Version
|
|
45
|
+
version: '0.8'
|
|
46
|
+
description: Ronin SQL is a a Ruby DSL for crafting SQL Injections.
|
|
47
|
+
email: postmodern.mod3@gmail.com
|
|
48
|
+
executables:
|
|
96
49
|
- ronin-sql
|
|
97
50
|
extensions: []
|
|
98
|
-
|
|
99
|
-
extra_rdoc_files:
|
|
100
|
-
- History.txt
|
|
51
|
+
extra_rdoc_files:
|
|
101
52
|
- COPYING.txt
|
|
102
|
-
-
|
|
103
|
-
- README.
|
|
104
|
-
files:
|
|
105
|
-
-
|
|
53
|
+
- ChangeLog.md
|
|
54
|
+
- README.md
|
|
55
|
+
files:
|
|
56
|
+
- .document
|
|
57
|
+
- .gitignore
|
|
58
|
+
- .rspec
|
|
59
|
+
- .yardopts
|
|
106
60
|
- COPYING.txt
|
|
107
|
-
-
|
|
108
|
-
-
|
|
61
|
+
- ChangeLog.md
|
|
62
|
+
- Gemfile
|
|
63
|
+
- README.md
|
|
109
64
|
- Rakefile
|
|
110
65
|
- bin/ronin-sql
|
|
111
|
-
-
|
|
112
|
-
- lib/ronin/code/sql/exceptions.rb
|
|
113
|
-
- lib/ronin/code/sql/exceptions/unknown_dialect.rb
|
|
114
|
-
- lib/ronin/code/sql/exceptions/unknown_statement.rb
|
|
115
|
-
- lib/ronin/code/sql/exceptions/unknown_clause.rb
|
|
116
|
-
- lib/ronin/code/sql/add_column_clause.rb
|
|
117
|
-
- lib/ronin/code/sql/alter_table.rb
|
|
118
|
-
- lib/ronin/code/sql/asc.rb
|
|
119
|
-
- lib/ronin/code/sql/as.rb
|
|
120
|
-
- lib/ronin/code/sql/between.rb
|
|
121
|
-
- lib/ronin/code/sql/binary_expr.rb
|
|
122
|
-
- lib/ronin/code/sql/clause.rb
|
|
123
|
-
- lib/ronin/code/sql/code.rb
|
|
124
|
-
- lib/ronin/code/sql/common_dialect.rb
|
|
125
|
-
- lib/ronin/code/sql/create_index.rb
|
|
126
|
-
- lib/ronin/code/sql/create.rb
|
|
127
|
-
- lib/ronin/code/sql/create_table.rb
|
|
128
|
-
- lib/ronin/code/sql/create_view.rb
|
|
129
|
-
- lib/ronin/code/sql/default_values_clause.rb
|
|
130
|
-
- lib/ronin/code/sql/delete.rb
|
|
131
|
-
- lib/ronin/code/sql/desc.rb
|
|
132
|
-
- lib/ronin/code/sql/dialect.rb
|
|
133
|
-
- lib/ronin/code/sql/drop_index.rb
|
|
134
|
-
- lib/ronin/code/sql/drop.rb
|
|
135
|
-
- lib/ronin/code/sql/drop_table.rb
|
|
136
|
-
- lib/ronin/code/sql/drop_view.rb
|
|
137
|
-
- lib/ronin/code/sql/emittable.rb
|
|
138
|
-
- lib/ronin/code/sql/expr.rb
|
|
139
|
-
- lib/ronin/code/sql/field.rb
|
|
140
|
-
- lib/ronin/code/sql/fields_clause.rb
|
|
141
|
-
- lib/ronin/code/sql/from_clause.rb
|
|
142
|
-
- lib/ronin/code/sql/function.rb
|
|
143
|
-
- lib/ronin/code/sql/group_by_clause.rb
|
|
144
|
-
- lib/ronin/code/sql/having_clause.rb
|
|
145
|
-
- lib/ronin/code/sql/injected_statement.rb
|
|
146
|
-
- lib/ronin/code/sql/injection.rb
|
|
147
|
-
- lib/ronin/code/sql/in.rb
|
|
148
|
-
- lib/ronin/code/sql/insert.rb
|
|
149
|
-
- lib/ronin/code/sql/intersect_clause.rb
|
|
150
|
-
- lib/ronin/code/sql/join_clause.rb
|
|
151
|
-
- lib/ronin/code/sql/like.rb
|
|
152
|
-
- lib/ronin/code/sql/limit_clause.rb
|
|
153
|
-
- lib/ronin/code/sql/modifier.rb
|
|
154
|
-
- lib/ronin/code/sql/offset_clause.rb
|
|
155
|
-
- lib/ronin/code/sql/on_clause.rb
|
|
156
|
-
- lib/ronin/code/sql/order_by_clause.rb
|
|
157
|
-
- lib/ronin/code/sql/program.rb
|
|
158
|
-
- lib/ronin/code/sql/rename_to_clause.rb
|
|
159
|
-
- lib/ronin/code/sql/replace.rb
|
|
160
|
-
- lib/ronin/code/sql/select.rb
|
|
161
|
-
- lib/ronin/code/sql/set_clause.rb
|
|
162
|
-
- lib/ronin/code/sql/statement.rb
|
|
163
|
-
- lib/ronin/code/sql/token.rb
|
|
164
|
-
- lib/ronin/code/sql/unary_expr.rb
|
|
165
|
-
- lib/ronin/code/sql/union_all_clause.rb
|
|
166
|
-
- lib/ronin/code/sql/union_clause.rb
|
|
167
|
-
- lib/ronin/code/sql/update.rb
|
|
168
|
-
- lib/ronin/code/sql/values_clause.rb
|
|
169
|
-
- lib/ronin/code/sql/where_clause.rb
|
|
170
|
-
- lib/ronin/formatting/sql.rb
|
|
66
|
+
- gemspec.yml
|
|
171
67
|
- lib/ronin/formatting/extensions/sql.rb
|
|
172
68
|
- lib/ronin/formatting/extensions/sql/string.rb
|
|
173
|
-
- lib/ronin/sql
|
|
174
|
-
- lib/ronin/sql
|
|
175
|
-
- lib/ronin/sql/
|
|
176
|
-
- lib/ronin/sql/
|
|
177
|
-
- lib/ronin/sql/
|
|
178
|
-
- lib/ronin/sql/
|
|
179
|
-
- lib/ronin/sql/
|
|
180
|
-
- lib/ronin/sql/
|
|
181
|
-
- lib/ronin/sql/
|
|
182
|
-
- lib/ronin/sql/
|
|
69
|
+
- lib/ronin/formatting/sql.rb
|
|
70
|
+
- lib/ronin/sql.rb
|
|
71
|
+
- lib/ronin/sql/binary_expr.rb
|
|
72
|
+
- lib/ronin/sql/clause.rb
|
|
73
|
+
- lib/ronin/sql/clauses.rb
|
|
74
|
+
- lib/ronin/sql/emittable.rb
|
|
75
|
+
- lib/ronin/sql/emitter.rb
|
|
76
|
+
- lib/ronin/sql/field.rb
|
|
77
|
+
- lib/ronin/sql/fields.rb
|
|
78
|
+
- lib/ronin/sql/function.rb
|
|
79
|
+
- lib/ronin/sql/functions.rb
|
|
183
80
|
- lib/ronin/sql/injection.rb
|
|
81
|
+
- lib/ronin/sql/literal.rb
|
|
82
|
+
- lib/ronin/sql/literals.rb
|
|
83
|
+
- lib/ronin/sql/operators.rb
|
|
84
|
+
- lib/ronin/sql/sql.rb
|
|
85
|
+
- lib/ronin/sql/statement.rb
|
|
86
|
+
- lib/ronin/sql/statement_list.rb
|
|
87
|
+
- lib/ronin/sql/statements.rb
|
|
88
|
+
- lib/ronin/sql/unary_expr.rb
|
|
184
89
|
- lib/ronin/sql/version.rb
|
|
185
|
-
-
|
|
186
|
-
-
|
|
187
|
-
- tasks/yard.rb
|
|
90
|
+
- ronin-sql.gemspec
|
|
91
|
+
- spec/formatting/sql/string_spec.rb
|
|
188
92
|
- spec/spec_helper.rb
|
|
189
|
-
- spec/
|
|
190
|
-
- spec/
|
|
191
|
-
- spec/
|
|
192
|
-
- spec/
|
|
193
|
-
- spec/
|
|
194
|
-
- spec/
|
|
195
|
-
- spec/
|
|
196
|
-
- spec/
|
|
197
|
-
- spec/
|
|
198
|
-
- spec/
|
|
199
|
-
- spec/
|
|
200
|
-
- spec/
|
|
201
|
-
- spec/
|
|
202
|
-
- spec/
|
|
203
|
-
- spec/
|
|
204
|
-
- spec/
|
|
205
|
-
- spec/
|
|
206
|
-
- spec/
|
|
207
|
-
- spec/
|
|
208
|
-
- spec/
|
|
209
|
-
- spec/
|
|
210
|
-
- spec/sql/
|
|
211
|
-
- spec/sql/
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
93
|
+
- spec/sql/binary_expr.rb
|
|
94
|
+
- spec/sql/binary_expr_examples.rb
|
|
95
|
+
- spec/sql/clause_examples.rb
|
|
96
|
+
- spec/sql/clause_spec.rb
|
|
97
|
+
- spec/sql/clauses_spec.rb
|
|
98
|
+
- spec/sql/emittable_spec.rb
|
|
99
|
+
- spec/sql/emitter_spec.rb
|
|
100
|
+
- spec/sql/field_spec.rb
|
|
101
|
+
- spec/sql/fields_spec.rb
|
|
102
|
+
- spec/sql/function_examples.rb
|
|
103
|
+
- spec/sql/function_spec.rb
|
|
104
|
+
- spec/sql/functions_spec.rb
|
|
105
|
+
- spec/sql/injection_spec.rb
|
|
106
|
+
- spec/sql/literal_spec.rb
|
|
107
|
+
- spec/sql/literals_spec.rb
|
|
108
|
+
- spec/sql/operators_spec.rb
|
|
109
|
+
- spec/sql/sql_spec.rb
|
|
110
|
+
- spec/sql/statement_examples.rb
|
|
111
|
+
- spec/sql/statement_list_spec.rb
|
|
112
|
+
- spec/sql/statement_sql.rb
|
|
113
|
+
- spec/sql/statements_spec.rb
|
|
114
|
+
- spec/sql/unary_expr.rb
|
|
115
|
+
- spec/sql/unary_expr_examples.rb
|
|
116
|
+
homepage: https://github.com/ronin-ruby/ronin-sql
|
|
117
|
+
licenses:
|
|
118
|
+
- GPL-3
|
|
216
119
|
post_install_message:
|
|
217
|
-
rdoc_options:
|
|
218
|
-
|
|
219
|
-
- README.txt
|
|
220
|
-
require_paths:
|
|
120
|
+
rdoc_options: []
|
|
121
|
+
require_paths:
|
|
221
122
|
- lib
|
|
222
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
123
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
124
|
+
none: false
|
|
125
|
+
requirements:
|
|
126
|
+
- - ! '>='
|
|
127
|
+
- !ruby/object:Gem::Version
|
|
128
|
+
version: 1.9.1
|
|
129
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
130
|
+
none: false
|
|
131
|
+
requirements:
|
|
132
|
+
- - ! '>='
|
|
133
|
+
- !ruby/object:Gem::Version
|
|
134
|
+
version: '0'
|
|
234
135
|
requirements: []
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
rubygems_version: 1.3.5
|
|
136
|
+
rubyforge_project:
|
|
137
|
+
rubygems_version: 1.8.24
|
|
238
138
|
signing_key:
|
|
239
139
|
specification_version: 3
|
|
240
|
-
summary:
|
|
140
|
+
summary: A Ruby DSL for crafting SQL Injections.
|
|
241
141
|
test_files: []
|
|
242
|
-
|