ronin-code-sql 2.0.0.beta1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.document +4 -0
- data/.editorconfig +11 -0
- data/.github/workflows/ruby.yml +27 -0
- data/.gitignore +11 -0
- data/.mailmap +1 -0
- data/.rspec +1 -0
- data/.ruby-version +1 -0
- data/.yardopts +1 -0
- data/COPYING.txt +165 -0
- data/ChangeLog.md +104 -0
- data/Gemfile +28 -0
- data/README.md +212 -0
- data/Rakefile +30 -0
- data/gemspec.yml +25 -0
- data/lib/ronin/code/sql/binary_expr.rb +53 -0
- data/lib/ronin/code/sql/clause.rb +74 -0
- data/lib/ronin/code/sql/clauses.rb +310 -0
- data/lib/ronin/code/sql/emittable.rb +88 -0
- data/lib/ronin/code/sql/emitter.rb +406 -0
- data/lib/ronin/code/sql/field.rb +110 -0
- data/lib/ronin/code/sql/fields.rb +82 -0
- data/lib/ronin/code/sql/function.rb +53 -0
- data/lib/ronin/code/sql/functions.rb +1265 -0
- data/lib/ronin/code/sql/injection.rb +168 -0
- data/lib/ronin/code/sql/injection_expr.rb +113 -0
- data/lib/ronin/code/sql/literal.rb +40 -0
- data/lib/ronin/code/sql/literals.rb +83 -0
- data/lib/ronin/code/sql/operators.rb +384 -0
- data/lib/ronin/code/sql/statement.rb +72 -0
- data/lib/ronin/code/sql/statement_list.rb +112 -0
- data/lib/ronin/code/sql/statements.rb +117 -0
- data/lib/ronin/code/sql/unary_expr.rb +38 -0
- data/lib/ronin/code/sql/version.rb +28 -0
- data/lib/ronin/code/sql.rb +96 -0
- data/ronin-code-sql.gemspec +62 -0
- data/spec/spec_helper.rb +3 -0
- data/spec/sql/binary_expr_examples.rb +25 -0
- data/spec/sql/binary_expr_spec.rb +5 -0
- data/spec/sql/clause_examples.rb +43 -0
- data/spec/sql/clause_spec.rb +31 -0
- data/spec/sql/clauses_spec.rb +47 -0
- data/spec/sql/emittable_spec.rb +41 -0
- data/spec/sql/emitter_spec.rb +533 -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 +113 -0
- data/spec/sql/injection_expr_spec.rb +98 -0
- data/spec/sql/injection_spec.rb +172 -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/statement_examples.rb +39 -0
- data/spec/sql/statement_list_spec.rb +48 -0
- data/spec/sql/statement_spec.rb +38 -0
- data/spec/sql/statements_spec.rb +22 -0
- data/spec/sql/unary_expr_examples.rb +20 -0
- data/spec/sql/unary_expr_spec.rb +5 -0
- data/spec/sql_spec.rb +18 -0
- metadata +157 -0
data/spec/sql_spec.rb
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'ronin/code/sql'
|
3
|
+
|
4
|
+
describe Ronin::Code::SQL do
|
5
|
+
subject { Object.new.extend(described_class) }
|
6
|
+
|
7
|
+
describe "#sql" do
|
8
|
+
it "should return a new SQL::StatementList" do
|
9
|
+
expect(subject.sql).to be_kind_of(Ronin::Code::SQL::StatementList)
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
describe "#sqli" do
|
14
|
+
it "should return a new SQL::Injection" do
|
15
|
+
expect(subject.sqli).to be_kind_of(Ronin::Code::SQL::Injection)
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
metadata
ADDED
@@ -0,0 +1,157 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: ronin-code-sql
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 2.0.0.beta1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Postmodern
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2023-01-01 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: ronin-support
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 1.0.0.beta1
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 1.0.0.beta1
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '2.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '2.0'
|
41
|
+
description: ronin-code-sql is a Ruby DSL for crafting SQL Injections.
|
42
|
+
email: postmodern.mod3@gmail.com
|
43
|
+
executables: []
|
44
|
+
extensions: []
|
45
|
+
extra_rdoc_files:
|
46
|
+
- COPYING.txt
|
47
|
+
- ChangeLog.md
|
48
|
+
- README.md
|
49
|
+
files:
|
50
|
+
- ".document"
|
51
|
+
- ".editorconfig"
|
52
|
+
- ".github/workflows/ruby.yml"
|
53
|
+
- ".gitignore"
|
54
|
+
- ".mailmap"
|
55
|
+
- ".rspec"
|
56
|
+
- ".ruby-version"
|
57
|
+
- ".yardopts"
|
58
|
+
- COPYING.txt
|
59
|
+
- ChangeLog.md
|
60
|
+
- Gemfile
|
61
|
+
- README.md
|
62
|
+
- Rakefile
|
63
|
+
- gemspec.yml
|
64
|
+
- lib/ronin/code/sql.rb
|
65
|
+
- lib/ronin/code/sql/binary_expr.rb
|
66
|
+
- lib/ronin/code/sql/clause.rb
|
67
|
+
- lib/ronin/code/sql/clauses.rb
|
68
|
+
- lib/ronin/code/sql/emittable.rb
|
69
|
+
- lib/ronin/code/sql/emitter.rb
|
70
|
+
- lib/ronin/code/sql/field.rb
|
71
|
+
- lib/ronin/code/sql/fields.rb
|
72
|
+
- lib/ronin/code/sql/function.rb
|
73
|
+
- lib/ronin/code/sql/functions.rb
|
74
|
+
- lib/ronin/code/sql/injection.rb
|
75
|
+
- lib/ronin/code/sql/injection_expr.rb
|
76
|
+
- lib/ronin/code/sql/literal.rb
|
77
|
+
- lib/ronin/code/sql/literals.rb
|
78
|
+
- lib/ronin/code/sql/operators.rb
|
79
|
+
- lib/ronin/code/sql/statement.rb
|
80
|
+
- lib/ronin/code/sql/statement_list.rb
|
81
|
+
- lib/ronin/code/sql/statements.rb
|
82
|
+
- lib/ronin/code/sql/unary_expr.rb
|
83
|
+
- lib/ronin/code/sql/version.rb
|
84
|
+
- ronin-code-sql.gemspec
|
85
|
+
- spec/spec_helper.rb
|
86
|
+
- spec/sql/binary_expr_examples.rb
|
87
|
+
- spec/sql/binary_expr_spec.rb
|
88
|
+
- spec/sql/clause_examples.rb
|
89
|
+
- spec/sql/clause_spec.rb
|
90
|
+
- spec/sql/clauses_spec.rb
|
91
|
+
- spec/sql/emittable_spec.rb
|
92
|
+
- spec/sql/emitter_spec.rb
|
93
|
+
- spec/sql/field_spec.rb
|
94
|
+
- spec/sql/fields_spec.rb
|
95
|
+
- spec/sql/function_examples.rb
|
96
|
+
- spec/sql/function_spec.rb
|
97
|
+
- spec/sql/functions_spec.rb
|
98
|
+
- spec/sql/injection_expr_spec.rb
|
99
|
+
- spec/sql/injection_spec.rb
|
100
|
+
- spec/sql/literal_spec.rb
|
101
|
+
- spec/sql/literals_spec.rb
|
102
|
+
- spec/sql/operators_spec.rb
|
103
|
+
- spec/sql/statement_examples.rb
|
104
|
+
- spec/sql/statement_list_spec.rb
|
105
|
+
- spec/sql/statement_spec.rb
|
106
|
+
- spec/sql/statements_spec.rb
|
107
|
+
- spec/sql/unary_expr_examples.rb
|
108
|
+
- spec/sql/unary_expr_spec.rb
|
109
|
+
- spec/sql_spec.rb
|
110
|
+
homepage: https://github.com/ronin-rb/ronin-code-sql#readme
|
111
|
+
licenses:
|
112
|
+
- LGPL-3.0
|
113
|
+
metadata:
|
114
|
+
documentation_uri: https://rubydoc.info/gems/ronin-code-sql
|
115
|
+
source_code_uri: https://github.com/ronin-rb/ronin-code-sql
|
116
|
+
bug_tracker_uri: https://github.com/ronin-rb/ronin-code-sql/issues
|
117
|
+
changelog_uri: https://github.com/ronin-rb/ronin-code-sql/blob/master/ChangeLog.md
|
118
|
+
rubygems_mfa_required: 'true'
|
119
|
+
post_install_message:
|
120
|
+
rdoc_options: []
|
121
|
+
require_paths:
|
122
|
+
- lib
|
123
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
124
|
+
requirements:
|
125
|
+
- - ">="
|
126
|
+
- !ruby/object:Gem::Version
|
127
|
+
version: 3.0.0
|
128
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
129
|
+
requirements:
|
130
|
+
- - ">="
|
131
|
+
- !ruby/object:Gem::Version
|
132
|
+
version: '0'
|
133
|
+
requirements: []
|
134
|
+
rubygems_version: 3.3.26
|
135
|
+
signing_key:
|
136
|
+
specification_version: 4
|
137
|
+
summary: A Ruby DSL for crafting SQL Injections.
|
138
|
+
test_files:
|
139
|
+
- spec/sql/binary_expr_spec.rb
|
140
|
+
- spec/sql/clause_spec.rb
|
141
|
+
- spec/sql/clauses_spec.rb
|
142
|
+
- spec/sql/emittable_spec.rb
|
143
|
+
- spec/sql/emitter_spec.rb
|
144
|
+
- spec/sql/field_spec.rb
|
145
|
+
- spec/sql/fields_spec.rb
|
146
|
+
- spec/sql/function_spec.rb
|
147
|
+
- spec/sql/functions_spec.rb
|
148
|
+
- spec/sql/injection_expr_spec.rb
|
149
|
+
- spec/sql/injection_spec.rb
|
150
|
+
- spec/sql/literal_spec.rb
|
151
|
+
- spec/sql/literals_spec.rb
|
152
|
+
- spec/sql/operators_spec.rb
|
153
|
+
- spec/sql/statement_list_spec.rb
|
154
|
+
- spec/sql/statement_spec.rb
|
155
|
+
- spec/sql/statements_spec.rb
|
156
|
+
- spec/sql/unary_expr_spec.rb
|
157
|
+
- spec/sql_spec.rb
|