tansaku 0.1.1 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +5 -2
- data/README.md +12 -18
- data/lib/tansaku.rb +1 -0
- data/lib/tansaku/cli.rb +11 -5
- data/lib/tansaku/crawler.rb +50 -23
- data/lib/tansaku/lists/admin.txt +1727 -0
- data/lib/tansaku/lists/backup.txt +117 -0
- data/lib/tansaku/lists/database.txt +179 -0
- data/lib/tansaku/{fixtures/paths.txt → lists/etc.txt} +2014 -2912
- data/lib/tansaku/lists/log.txt +238 -0
- data/lib/tansaku/monkey_patch.rb +22 -0
- data/lib/tansaku/path.rb +35 -0
- data/lib/tansaku/version.rb +1 -1
- data/tansaku.gemspec +7 -6
- metadata +40 -21
@@ -0,0 +1,238 @@
|
|
1
|
+
_data/error_log
|
2
|
+
_log/
|
3
|
+
_log/access_log
|
4
|
+
_log/access-log
|
5
|
+
_log/access.log
|
6
|
+
_log/error_log
|
7
|
+
_log/error-log
|
8
|
+
_log/error.log
|
9
|
+
_logs/access_log
|
10
|
+
_logs/access-log
|
11
|
+
_logs/access.log
|
12
|
+
_logs/err.log
|
13
|
+
_logs/error_log
|
14
|
+
_logs/error-log
|
15
|
+
_logs/error.log
|
16
|
+
_vti_log
|
17
|
+
_vti_log/
|
18
|
+
.error_log
|
19
|
+
.log
|
20
|
+
.log.txt
|
21
|
+
.transients_purge.log
|
22
|
+
/log/error.log
|
23
|
+
/log/www-error.log
|
24
|
+
/logs/error.log
|
25
|
+
/logs/liferay.log
|
26
|
+
/logs/www-error.log
|
27
|
+
/php-fpm/error.log
|
28
|
+
/php-fpm/www-error.log
|
29
|
+
/wp-content/debug.log
|
30
|
+
access_.log
|
31
|
+
access_log
|
32
|
+
access-log
|
33
|
+
access-log/
|
34
|
+
access.log
|
35
|
+
accesslog
|
36
|
+
accesslog/
|
37
|
+
activity.log
|
38
|
+
admin_catalog
|
39
|
+
admin/_logs/access_log
|
40
|
+
admin/_logs/access-log
|
41
|
+
admin/_logs/access.log
|
42
|
+
admin/_logs/err.log
|
43
|
+
admin/_logs/error_log
|
44
|
+
admin/_logs/error-log
|
45
|
+
admin/_logs/error.log
|
46
|
+
admin/access_log
|
47
|
+
admin/access.log
|
48
|
+
admin/error_log
|
49
|
+
admin/error.log
|
50
|
+
admin/log
|
51
|
+
admin/logs/access_log
|
52
|
+
admin/logs/access-log
|
53
|
+
admin/logs/access.log
|
54
|
+
admin/logs/err.log
|
55
|
+
admin/logs/error_log
|
56
|
+
admin/logs/error-log
|
57
|
+
admin/logs/error.log
|
58
|
+
adminblog
|
59
|
+
akeeba.backend.log
|
60
|
+
anchor/errors.log
|
61
|
+
answers/error_log
|
62
|
+
apache/logs/access_log
|
63
|
+
apache/logs/access.log
|
64
|
+
apache/logs/error_log
|
65
|
+
apache/logs/error.log
|
66
|
+
api.log
|
67
|
+
api/error_log
|
68
|
+
app/log/
|
69
|
+
application.log
|
70
|
+
assets/npm-debug.log
|
71
|
+
asterisk.log
|
72
|
+
authorizenet.log
|
73
|
+
autoscan.log
|
74
|
+
bitrix_server_test.log
|
75
|
+
bitrix/error.log
|
76
|
+
bitrix/modules/error.log
|
77
|
+
bitrix/modules/error.log.old
|
78
|
+
bitrix/modules/smtpd.log
|
79
|
+
bitrix/modules/updater_partner.log
|
80
|
+
bitrix/modules/updater.log
|
81
|
+
blog
|
82
|
+
Blog
|
83
|
+
blog/error_log
|
84
|
+
build.log
|
85
|
+
catalog
|
86
|
+
ccbill.log
|
87
|
+
change.log
|
88
|
+
CHANGELOG
|
89
|
+
ChangeLog
|
90
|
+
CHANGELOG.log
|
91
|
+
CHANGELOG.LOG
|
92
|
+
cleanup.log
|
93
|
+
content/debug.log
|
94
|
+
crash.log
|
95
|
+
cron_import.log
|
96
|
+
cron_sku.log
|
97
|
+
cron.log
|
98
|
+
customers.log
|
99
|
+
database.log
|
100
|
+
davmail.log
|
101
|
+
db.log
|
102
|
+
dbaccess.log
|
103
|
+
debug.log
|
104
|
+
development.log
|
105
|
+
dump.log
|
106
|
+
err.log
|
107
|
+
error_log
|
108
|
+
error-log
|
109
|
+
error.log
|
110
|
+
error.log.0
|
111
|
+
errorlog
|
112
|
+
errors.log
|
113
|
+
exception.log
|
114
|
+
gitlog
|
115
|
+
hs_err_pid.log
|
116
|
+
http_access.log
|
117
|
+
httpd/logs/access_log
|
118
|
+
httpd/logs/access.log
|
119
|
+
httpd/logs/error_log
|
120
|
+
httpd/logs/error.log
|
121
|
+
import_error.log
|
122
|
+
install_mgr.log
|
123
|
+
install.log
|
124
|
+
install/update.log
|
125
|
+
librepag.log
|
126
|
+
liferay.log
|
127
|
+
lighttpd.access.log
|
128
|
+
lighttpd.error.log
|
129
|
+
linkhub/linkhub.log
|
130
|
+
listener.log
|
131
|
+
log
|
132
|
+
LOG/
|
133
|
+
log/
|
134
|
+
log/access_log
|
135
|
+
log/access.log
|
136
|
+
log/authorizenet.log
|
137
|
+
log/development.log
|
138
|
+
log/error_log
|
139
|
+
log/error.log
|
140
|
+
log/exception.log
|
141
|
+
log/librepag.log
|
142
|
+
log/log.log
|
143
|
+
log/payment_authorizenet.log
|
144
|
+
log/payment_paypal_express.log
|
145
|
+
log/payment.log
|
146
|
+
log/production.log
|
147
|
+
log/server.log
|
148
|
+
log/test.log
|
149
|
+
log/www-error.log
|
150
|
+
logs/access_log
|
151
|
+
logs/access.log
|
152
|
+
logs/error_log
|
153
|
+
logs/error.log
|
154
|
+
logs/liferay.log
|
155
|
+
logs/mail.log
|
156
|
+
logs/www-error.log
|
157
|
+
mail.log
|
158
|
+
master/portquotes_new/admin.log
|
159
|
+
members.log
|
160
|
+
mysql.log
|
161
|
+
native_stderr.log
|
162
|
+
native_stdout.log
|
163
|
+
nginx-access.log
|
164
|
+
nginx-error.log
|
165
|
+
nginx-ssl.access.log
|
166
|
+
nginx-ssl.error.log
|
167
|
+
npm-debug.log
|
168
|
+
order_log
|
169
|
+
order.log
|
170
|
+
orders_log
|
171
|
+
orders.log
|
172
|
+
password.log
|
173
|
+
payment_authorizenet.log
|
174
|
+
payment_paypal_express.log
|
175
|
+
payment.log
|
176
|
+
pgadmin.log
|
177
|
+
PharoDebug.log
|
178
|
+
php_cli_errors.log
|
179
|
+
php_error_log
|
180
|
+
php_error.log
|
181
|
+
php_errorlog
|
182
|
+
php_errors.log
|
183
|
+
php-error.log
|
184
|
+
php-errors.log
|
185
|
+
php-fpm/error.log
|
186
|
+
php-fpm/www-error.log
|
187
|
+
php.log
|
188
|
+
phperrors.log
|
189
|
+
plugins.log
|
190
|
+
production.log
|
191
|
+
query.log
|
192
|
+
request.log
|
193
|
+
sales.log
|
194
|
+
sentemails.log
|
195
|
+
server.log
|
196
|
+
serverStatus.log
|
197
|
+
setup.log
|
198
|
+
site-log/
|
199
|
+
spamlog.log
|
200
|
+
sql_error.log
|
201
|
+
sqlnet.log
|
202
|
+
SqueakDebug.log
|
203
|
+
stacktrace.log
|
204
|
+
startServer.log
|
205
|
+
storage/logs/laravel.log
|
206
|
+
sugarcrm.log
|
207
|
+
syncNode.log
|
208
|
+
sys_log/
|
209
|
+
syslog/
|
210
|
+
system.log
|
211
|
+
system/log/
|
212
|
+
SystemErr.log
|
213
|
+
SystemOut.log
|
214
|
+
telphin.log
|
215
|
+
tmp/access_log
|
216
|
+
tmp/access.log
|
217
|
+
tmp/error_log
|
218
|
+
tmp/error.log
|
219
|
+
users.log
|
220
|
+
var/log/
|
221
|
+
var/log/authorizenet.log
|
222
|
+
var/log/exception.log
|
223
|
+
var/log/librepag.log
|
224
|
+
var/log/payment_authorizenet.log
|
225
|
+
var/log/payment_paypal_express.log
|
226
|
+
var/log/payment.log
|
227
|
+
wp-app.log
|
228
|
+
wp-content/debug.log
|
229
|
+
WS_FTP.log
|
230
|
+
WS_FTP.LOG
|
231
|
+
www-error.log
|
232
|
+
xferlog
|
233
|
+
xphperrors.log
|
234
|
+
yaml_cron.log
|
235
|
+
yaml.log
|
236
|
+
yarn-debug.log
|
237
|
+
yarn-error.log
|
238
|
+
yum.log
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "protocol/http1/connection"
|
4
|
+
|
5
|
+
module Protocol
|
6
|
+
module HTTP1
|
7
|
+
class Connection
|
8
|
+
def write_request(authority, method, path, version, headers)
|
9
|
+
host = authority
|
10
|
+
if headers.include?("host")
|
11
|
+
host = headers["host"]
|
12
|
+
headers.delete "host"
|
13
|
+
end
|
14
|
+
|
15
|
+
@stream.write("#{method} #{path} #{version}\r\n")
|
16
|
+
@stream.write("host: #{host}\r\n")
|
17
|
+
|
18
|
+
write_headers(headers)
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
data/lib/tansaku/path.rb
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Tansaku
|
4
|
+
class Path
|
5
|
+
def self.get_by_type(type)
|
6
|
+
new.get_by_type(type)
|
7
|
+
end
|
8
|
+
|
9
|
+
def get_by_type(type)
|
10
|
+
raise ArgumentError, "Invalid type is given. #{type} is not supported." unless valid_type?(type)
|
11
|
+
|
12
|
+
return all if type == "all"
|
13
|
+
|
14
|
+
File.readlines(File.expand_path("./lists/#{type}.txt", __dir__))
|
15
|
+
end
|
16
|
+
|
17
|
+
private
|
18
|
+
|
19
|
+
def all
|
20
|
+
types.map { |type| get_by_type(type) }.flatten
|
21
|
+
end
|
22
|
+
|
23
|
+
def types
|
24
|
+
@types = Dir.glob(File.expand_path("./lists/*.txt", __dir__)).map do |path|
|
25
|
+
File.basename(path).split(".").first
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
def valid_type?(type)
|
30
|
+
return true if type == "all"
|
31
|
+
|
32
|
+
types.include? type
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
data/lib/tansaku/version.rb
CHANGED
data/tansaku.gemspec
CHANGED
@@ -24,13 +24,14 @@ Gem::Specification.new do |spec|
|
|
24
24
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
25
25
|
spec.require_paths = ["lib"]
|
26
26
|
|
27
|
-
spec.add_development_dependency "bundler", "~> 1
|
27
|
+
spec.add_development_dependency "bundler", "~> 2.1"
|
28
28
|
spec.add_development_dependency "coveralls", "~> 0.8"
|
29
29
|
spec.add_development_dependency "glint", "~> 0.1"
|
30
|
-
spec.add_development_dependency "rake", "~>
|
31
|
-
spec.add_development_dependency "rspec", "~> 3.
|
32
|
-
spec.add_development_dependency "webmock", "~> 3.
|
30
|
+
spec.add_development_dependency "rake", "~> 13.0"
|
31
|
+
spec.add_development_dependency "rspec", "~> 3.9"
|
32
|
+
spec.add_development_dependency "webmock", "~> 3.8"
|
33
33
|
|
34
|
-
spec.add_dependency "
|
35
|
-
spec.add_dependency "
|
34
|
+
spec.add_dependency "async", "~> 1.26"
|
35
|
+
spec.add_dependency "async-http", "~> 0.52"
|
36
|
+
spec.add_dependency "thor", "~> 1.0"
|
36
37
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tansaku
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Manabu Niseki
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-07-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '1
|
19
|
+
version: '2.1'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '1
|
26
|
+
version: '2.1'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: coveralls
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -58,70 +58,84 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '13.0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
68
|
+
version: '13.0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rspec
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '3.
|
75
|
+
version: '3.9'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '3.
|
82
|
+
version: '3.9'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: webmock
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '3.
|
89
|
+
version: '3.8'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '3.
|
96
|
+
version: '3.8'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: async
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '1.26'
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '1.26'
|
97
111
|
- !ruby/object:Gem::Dependency
|
98
|
-
name:
|
112
|
+
name: async-http
|
99
113
|
requirement: !ruby/object:Gem::Requirement
|
100
114
|
requirements:
|
101
115
|
- - "~>"
|
102
116
|
- !ruby/object:Gem::Version
|
103
|
-
version: '
|
117
|
+
version: '0.52'
|
104
118
|
type: :runtime
|
105
119
|
prerelease: false
|
106
120
|
version_requirements: !ruby/object:Gem::Requirement
|
107
121
|
requirements:
|
108
122
|
- - "~>"
|
109
123
|
- !ruby/object:Gem::Version
|
110
|
-
version: '
|
124
|
+
version: '0.52'
|
111
125
|
- !ruby/object:Gem::Dependency
|
112
126
|
name: thor
|
113
127
|
requirement: !ruby/object:Gem::Requirement
|
114
128
|
requirements:
|
115
129
|
- - "~>"
|
116
130
|
- !ruby/object:Gem::Version
|
117
|
-
version: '0
|
131
|
+
version: '1.0'
|
118
132
|
type: :runtime
|
119
133
|
prerelease: false
|
120
134
|
version_requirements: !ruby/object:Gem::Requirement
|
121
135
|
requirements:
|
122
136
|
- - "~>"
|
123
137
|
- !ruby/object:Gem::Version
|
124
|
-
version: '0
|
138
|
+
version: '1.0'
|
125
139
|
description: Yet another dirbuster tool
|
126
140
|
email:
|
127
141
|
- manabu.niseki@gmail.com
|
@@ -144,14 +158,20 @@ files:
|
|
144
158
|
- lib/tansaku.rb
|
145
159
|
- lib/tansaku/cli.rb
|
146
160
|
- lib/tansaku/crawler.rb
|
147
|
-
- lib/tansaku/
|
161
|
+
- lib/tansaku/lists/admin.txt
|
162
|
+
- lib/tansaku/lists/backup.txt
|
163
|
+
- lib/tansaku/lists/database.txt
|
164
|
+
- lib/tansaku/lists/etc.txt
|
165
|
+
- lib/tansaku/lists/log.txt
|
166
|
+
- lib/tansaku/monkey_patch.rb
|
167
|
+
- lib/tansaku/path.rb
|
148
168
|
- lib/tansaku/version.rb
|
149
169
|
- tansaku.gemspec
|
150
170
|
homepage: https://github.com/ninoseki/tansaku
|
151
171
|
licenses:
|
152
172
|
- MIT
|
153
173
|
metadata: {}
|
154
|
-
post_install_message:
|
174
|
+
post_install_message:
|
155
175
|
rdoc_options: []
|
156
176
|
require_paths:
|
157
177
|
- lib
|
@@ -166,9 +186,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
166
186
|
- !ruby/object:Gem::Version
|
167
187
|
version: '0'
|
168
188
|
requirements: []
|
169
|
-
|
170
|
-
|
171
|
-
signing_key:
|
189
|
+
rubygems_version: 3.1.2
|
190
|
+
signing_key:
|
172
191
|
specification_version: 4
|
173
192
|
summary: Yet another dirbuster tool
|
174
193
|
test_files: []
|