ronin-dorks 0.1.0 → 0.1.1
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/History.txt +18 -0
- data/Manifest.txt +4 -1
- data/README.txt +16 -7
- data/Rakefile +8 -2
- data/bin/ronin-dorks +9 -0
- data/lib/ronin/dorks.rb +1 -1
- data/lib/ronin/dorks/version.rb +2 -2
- data/lib/ronin/web/dorks.rb +78 -31
- data/spec/dorks_spec.rb +9 -0
- data/spec/spec_helper.rb +5 -0
- data/tasks/spec.rb +9 -0
- metadata +25 -12
- data/test/test_ronin_dorks.rb +0 -0
data/History.txt
CHANGED
@@ -1,3 +1,21 @@
|
|
1
|
+
=== 0.1.1 / 2009-02-23
|
2
|
+
|
3
|
+
* Added a git style sub-command (<tt>ronin-dorks</tt>) which starts the
|
4
|
+
Ronin console with <tt>ronin/dorks</tt> pre-loaded.
|
5
|
+
* Added Dorks.all_strings_inurl.
|
6
|
+
* Added Dorks.index_of.
|
7
|
+
* Added Dorks.index_with_file.
|
8
|
+
* Added Dorks.index_with_sql.
|
9
|
+
* Added Dorks.sharepoint.
|
10
|
+
* Require GScraper >= 0.2.2.
|
11
|
+
* Require Ronin >= 0.2.1.
|
12
|
+
* Require Ronin Web >= 0.1.1.
|
13
|
+
* Renamed Dorks.mysql_dump to Dorks.sql_dump.
|
14
|
+
* Renamed Dorks.mysql_dump_admin to Dorks.sql_admin_dump.
|
15
|
+
* Fixed many small bugs.
|
16
|
+
* Updated README.txt.
|
17
|
+
* Added RSpec tests.
|
18
|
+
|
1
19
|
=== 0.1.0 / 2008-08-21
|
2
20
|
|
3
21
|
* Initial release.
|
data/Manifest.txt
CHANGED
data/README.txt
CHANGED
@@ -1,7 +1,9 @@
|
|
1
1
|
= Ronin Dorks
|
2
2
|
|
3
3
|
* http://ronin.rubyforge.org/dorks/
|
4
|
-
*
|
4
|
+
* http://github.com/postmodern/ronin-dorks
|
5
|
+
* irc.freenode.net ##ronin
|
6
|
+
* Postmodern (postmodern.mod3 at gmail.com)
|
5
7
|
|
6
8
|
== DESCRIPTION:
|
7
9
|
|
@@ -22,9 +24,9 @@ commercial software.
|
|
22
24
|
|
23
25
|
=== Modular
|
24
26
|
|
25
|
-
Ronin was not designed as one monolithic
|
26
|
-
of libraries which can be individually installed. This allows
|
27
|
-
and choose what functionality they want in Ronin.
|
27
|
+
Ronin was not designed as one monolithic framework but instead as a
|
28
|
+
collection of libraries which can be individually installed. This allows
|
29
|
+
users to pick and choose what functionality they want in Ronin.
|
28
30
|
|
29
31
|
=== Decentralized
|
30
32
|
|
@@ -58,19 +60,26 @@ of Ronin.
|
|
58
60
|
|
59
61
|
== REQUIREMENTS:
|
60
62
|
|
61
|
-
*
|
62
|
-
*
|
63
|
+
* {gscraper}[http://gscraper.rubyforge.org/] >= 0.2.2
|
64
|
+
* {ronin}[http://ronin.rubyforge.org/] >= 0.2.1
|
65
|
+
* {ronin-web}[http://ronin.rubyforge.org/web/] >= 0.1.1
|
63
66
|
|
64
67
|
== INSTALL:
|
65
68
|
|
66
69
|
$ sudo gem install ronin-dorks
|
67
70
|
|
71
|
+
== SYNOPSIS:
|
72
|
+
|
73
|
+
* Start the Ronin console with Ronin Dorks preloaded:
|
74
|
+
|
75
|
+
$ ronin-dorks
|
76
|
+
|
68
77
|
== LICENSE:
|
69
78
|
|
70
79
|
Ronin SQL - A Ruby library for Ronin that provides support for various
|
71
80
|
Google (tm) Dorks and Hacking functionality.
|
72
81
|
|
73
|
-
Copyright (c) 2008 Hal Brodigan (postmodern.mod3 at gmail.com)
|
82
|
+
Copyright (c) 2008-2009 Hal Brodigan (postmodern.mod3 at gmail.com)
|
74
83
|
|
75
84
|
This program is free software; you can redistribute it and/or modify
|
76
85
|
it under the terms of the GNU General Public License as published by
|
data/Rakefile
CHANGED
@@ -2,12 +2,18 @@
|
|
2
2
|
|
3
3
|
require 'rubygems'
|
4
4
|
require 'hoe'
|
5
|
+
require './tasks/spec.rb'
|
5
6
|
require './lib/ronin/dorks/version.rb'
|
6
7
|
|
7
8
|
Hoe.new('ronin-dorks', Ronin::Dorks::VERSION) do |p|
|
8
9
|
p.rubyforge_name = 'ronin'
|
9
|
-
p.developer('Postmodern
|
10
|
-
p.
|
10
|
+
p.developer('Postmodern', 'postmodern.mod3@gmail.com')
|
11
|
+
p.remote_rdoc_dir = 'docs/ronin-dorks'
|
12
|
+
p.extra_deps = [
|
13
|
+
['ronin', '>=0.2.1'],
|
14
|
+
['ronin-web', '>=0.1.1'],
|
15
|
+
['gscraper', '>=0.2.2']
|
16
|
+
]
|
11
17
|
end
|
12
18
|
|
13
19
|
# vim: syntax=Ruby
|
data/bin/ronin-dorks
ADDED
data/lib/ronin/dorks.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
# Ronin Dorks - A Ruby library for Ronin that provides support for various
|
4
4
|
# Google (tm) Dorks functionality.
|
5
5
|
#
|
6
|
-
# Copyright (c) 2008 Hal Brodigan (postmodern.mod3 at gmail.com)
|
6
|
+
# Copyright (c) 2008-2009 Hal Brodigan (postmodern.mod3 at gmail.com)
|
7
7
|
#
|
8
8
|
# This program is free software; you can redistribute it and/or modify
|
9
9
|
# it under the terms of the GNU General Public License as published by
|
data/lib/ronin/dorks/version.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
# Ronin Dorks - A Ruby library for Ronin that provides support for various
|
4
4
|
# Google (tm) Dorks functionality.
|
5
5
|
#
|
6
|
-
# Copyright (c) 2008 Hal Brodigan (postmodern.mod3 at gmail.com)
|
6
|
+
# Copyright (c) 2008-2009 Hal Brodigan (postmodern.mod3 at gmail.com)
|
7
7
|
#
|
8
8
|
# This program is free software; you can redistribute it and/or modify
|
9
9
|
# it under the terms of the GNU General Public License as published by
|
@@ -23,6 +23,6 @@
|
|
23
23
|
|
24
24
|
module Ronin
|
25
25
|
module Dorks
|
26
|
-
VERSION = '0.1.
|
26
|
+
VERSION = '0.1.1'
|
27
27
|
end
|
28
28
|
end
|
data/lib/ronin/web/dorks.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
# Ronin Dorks - A Ruby library for Ronin that provides support for various
|
4
4
|
# Google (tm) Dorks functionality.
|
5
5
|
#
|
6
|
-
# Copyright (c) 2008 Hal Brodigan (postmodern.mod3 at gmail.com)
|
6
|
+
# Copyright (c) 2008-2009 Hal Brodigan (postmodern.mod3 at gmail.com)
|
7
7
|
#
|
8
8
|
# This program is free software; you can redistribute it and/or modify
|
9
9
|
# it under the terms of the GNU General Public License as published by
|
@@ -69,11 +69,29 @@ module Ronin
|
|
69
69
|
}),&block)
|
70
70
|
end
|
71
71
|
|
72
|
+
def Dorks.index_of(path=nil,options={},&block)
|
73
|
+
if path
|
74
|
+
options = options.merge(:intitle => "\"Index of #{path}\"")
|
75
|
+
else
|
76
|
+
options = options.merge(:intitle => '"Index of"')
|
77
|
+
end
|
78
|
+
|
79
|
+
return Dorks.search(options,&block)
|
80
|
+
end
|
81
|
+
|
72
82
|
def Dorks.index_of_cgi_bin(options={},&block)
|
73
|
-
Dorks.
|
83
|
+
Dorks.index_of('/cgi-bin',&block)
|
84
|
+
end
|
85
|
+
|
86
|
+
def Dorks.index_with_file(name,options={},&block)
|
87
|
+
Dorks.index_of(options.merge(:intext => "\"#{name}\""),&block)
|
88
|
+
end
|
89
|
+
|
90
|
+
def Dorks.index_with_sql(options={},&block)
|
91
|
+
Dorks.index_of(options.merge(:intext => '".sql"'),&block)
|
74
92
|
end
|
75
93
|
|
76
|
-
def Dorks.
|
94
|
+
def Dorks.sql_dump(options={},&block)
|
77
95
|
query = []
|
78
96
|
|
79
97
|
query << "Host: #{options[:host]}" if options[:host]
|
@@ -83,66 +101,95 @@ module Ronin
|
|
83
101
|
query << "\"#{options[:sql]}\"" if options[:sql]
|
84
102
|
query << options[:password].to_s.md5 if options[:password]
|
85
103
|
|
86
|
-
return Dorks.search(options.merge(
|
87
|
-
|
88
|
-
|
104
|
+
return Dorks.search(options.merge(
|
105
|
+
:query => query,
|
106
|
+
:exact_phrase => '"SQL Dump"',
|
107
|
+
:filetype => :sql
|
108
|
+
),&block)
|
89
109
|
end
|
90
110
|
|
91
|
-
def Dorks.
|
92
|
-
Dorks.
|
111
|
+
def Dorks.sql_admin_dump(options={},&block)
|
112
|
+
Dorks.sql_dump(options.merge(:password => 'admin'),&block)
|
93
113
|
end
|
94
114
|
|
95
115
|
def Dorks.cps(options={},&block)
|
96
|
-
Dorks.search(options.merge(
|
97
|
-
|
116
|
+
Dorks.search(options.merge(
|
117
|
+
:exact_phrase => 'Certificate Practice Statement',
|
118
|
+
:inurl => '(PDF | DOC)'
|
119
|
+
),&block)
|
98
120
|
end
|
99
121
|
|
100
122
|
def Dorks.vuln_report(options={},&block)
|
101
|
-
Dorks.search(options.merge(
|
123
|
+
Dorks.search(options.merge(
|
124
|
+
:exact_phrase => 'Network Vulnerability Assessment'
|
125
|
+
),&block)
|
102
126
|
end
|
103
127
|
|
104
128
|
def Dorks.receipts(options={},&block)
|
105
|
-
Dorks.search(options.merge(
|
106
|
-
|
107
|
-
|
129
|
+
Dorks.search(options.merge(
|
130
|
+
:exact_phrase => 'Thank you for your order',
|
131
|
+
:with_words => ['receipt'],
|
132
|
+
:filetype => :pdf
|
133
|
+
),&block)
|
108
134
|
end
|
109
135
|
|
110
136
|
def Dorks.robots_txt(options={},&block)
|
111
|
-
Dorks.search(options.merge(
|
112
|
-
|
113
|
-
|
137
|
+
Dorks.search(options.merge(
|
138
|
+
:exact_phrase => 'robots.txt',
|
139
|
+
:with_words => ['Disallow'],
|
140
|
+
:filetype => :txt
|
141
|
+
),&block)
|
114
142
|
end
|
115
143
|
|
116
144
|
def Dorks.php_my_admin(options={},&block)
|
117
|
-
Dorks.search(options.merge(
|
118
|
-
|
119
|
-
|
145
|
+
Dorks.search(options.merge(
|
146
|
+
:with_words => ['phpMyAdmin'],
|
147
|
+
:exact_phrase => 'running on',
|
148
|
+
:inurl => 'main.php'
|
149
|
+
),&block)
|
120
150
|
end
|
121
151
|
|
122
152
|
def Dorks.qbw(options={},&block)
|
123
|
-
Dorks.search(options.merge(
|
124
|
-
|
153
|
+
Dorks.search(options.merge(
|
154
|
+
:query => 'qbw',
|
155
|
+
:filetype => 'QBW'
|
156
|
+
),&block)
|
125
157
|
end
|
126
158
|
|
127
159
|
def Dorks.emails_xls(options={},&block)
|
128
|
-
Dorks.search(options.merge(
|
129
|
-
|
160
|
+
Dorks.search(options.merge(
|
161
|
+
:filetype => 'xls',
|
162
|
+
:inurl => '"email.xls"'
|
163
|
+
),&block)
|
130
164
|
end
|
131
165
|
|
132
166
|
def Dorks.index_for_finances_xls(options={},&block)
|
133
|
-
Dorks.search(options.merge(
|
134
|
-
|
167
|
+
Dorks.search(options.merge(
|
168
|
+
:query => 'finances.xls',
|
169
|
+
:intitle => '"Index of"'
|
170
|
+
),&block)
|
135
171
|
end
|
136
172
|
|
137
173
|
def Dorks.download_file(options={},&block)
|
138
|
-
Dorks.search(options.merge(
|
139
|
-
|
174
|
+
Dorks.search(options.merge(
|
175
|
+
:allinurl => ['download.php?', 'file']
|
176
|
+
),&block)
|
140
177
|
end
|
141
178
|
|
142
179
|
def Dorks.download_pdf(options={},&block)
|
143
|
-
Dorks.search(options.merge(
|
144
|
-
|
145
|
-
|
180
|
+
Dorks.search(options.merge(
|
181
|
+
:allinurl => [
|
182
|
+
'download.php?',
|
183
|
+
'file',
|
184
|
+
'.pdf'
|
185
|
+
]
|
186
|
+
),&block)
|
187
|
+
end
|
188
|
+
|
189
|
+
def Dorks.sharepoint(options={},&block)
|
190
|
+
Dorks.search(options.merge(
|
191
|
+
:exact_phrase => 'all site content'
|
192
|
+
),&block)
|
146
193
|
end
|
147
194
|
end
|
148
195
|
end
|
data/spec/dorks_spec.rb
ADDED
data/spec/spec_helper.rb
ADDED
data/tasks/spec.rb
ADDED
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ronin-dorks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
- Postmodern
|
7
|
+
- Postmodern
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date:
|
12
|
+
date: 2009-02-23 00:00:00 -08:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -20,7 +20,17 @@ dependencies:
|
|
20
20
|
requirements:
|
21
21
|
- - ">="
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version: 0.
|
23
|
+
version: 0.2.1
|
24
|
+
version:
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: ronin-web
|
27
|
+
type: :runtime
|
28
|
+
version_requirement:
|
29
|
+
version_requirements: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.1.1
|
24
34
|
version:
|
25
35
|
- !ruby/object:Gem::Dependency
|
26
36
|
name: gscraper
|
@@ -30,7 +40,7 @@ dependencies:
|
|
30
40
|
requirements:
|
31
41
|
- - ">="
|
32
42
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.2.
|
43
|
+
version: 0.2.2
|
34
44
|
version:
|
35
45
|
- !ruby/object:Gem::Dependency
|
36
46
|
name: hoe
|
@@ -40,13 +50,13 @@ dependencies:
|
|
40
50
|
requirements:
|
41
51
|
- - ">="
|
42
52
|
- !ruby/object:Gem::Version
|
43
|
-
version: 1.
|
53
|
+
version: 1.8.3
|
44
54
|
version:
|
45
55
|
description: Ronin Dorks is a Ruby library for Ronin that provides support for various Google (tm) Dorks functionality. Ronin is a Ruby platform designed for information security and data exploration tasks. Ronin allows for the rapid development and distribution of code over many of the common Source-Code-Management (SCM) systems.
|
46
56
|
email:
|
47
57
|
- postmodern.mod3@gmail.com
|
48
|
-
executables:
|
49
|
-
|
58
|
+
executables:
|
59
|
+
- ronin-dorks
|
50
60
|
extensions: []
|
51
61
|
|
52
62
|
extra_rdoc_files:
|
@@ -58,10 +68,13 @@ files:
|
|
58
68
|
- Manifest.txt
|
59
69
|
- README.txt
|
60
70
|
- Rakefile
|
71
|
+
- bin/ronin-dorks
|
61
72
|
- lib/ronin/dorks.rb
|
62
73
|
- lib/ronin/dorks/version.rb
|
63
74
|
- lib/ronin/web/dorks.rb
|
64
|
-
-
|
75
|
+
- tasks/spec.rb
|
76
|
+
- spec/spec_helper.rb
|
77
|
+
- spec/dorks_spec.rb
|
65
78
|
has_rdoc: true
|
66
79
|
homepage: http://ronin.rubyforge.org/dorks/
|
67
80
|
post_install_message:
|
@@ -85,9 +98,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
85
98
|
requirements: []
|
86
99
|
|
87
100
|
rubyforge_project: ronin
|
88
|
-
rubygems_version: 1.
|
101
|
+
rubygems_version: 1.3.1
|
89
102
|
signing_key:
|
90
103
|
specification_version: 2
|
91
104
|
summary: Ronin Dorks is a Ruby library for Ronin that provides support for various Google (tm) Dorks functionality
|
92
|
-
test_files:
|
93
|
-
|
105
|
+
test_files: []
|
106
|
+
|
data/test/test_ronin_dorks.rb
DELETED
File without changes
|