miteru 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +3 -1
- data/lib/miteru/commands/main.rb +1 -1
- data/lib/miteru/orchestrator.rb +9 -2
- data/lib/miteru/version.rb +1 -1
- metadata +1 -4
- data/miteru-sidekiq.service +0 -13
- data/miteru.db-shm +0 -0
- data/miteru.db-wal +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aa673c60148a21b0838fec44df350670fad6af4873cf54922ff14f8042f8a781
|
4
|
+
data.tar.gz: 3b09b49f88c1a56224e5f472647646619061fc57a258d54bb5a51ce4420ed22e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 396239204cda13c34766428ac7b223828413b56179b72eba137be1ded7af40ff7753ded1a504cef615b3654c43f597fd223c39324b063a4a281ea729e27882fa
|
7
|
+
data.tar.gz: f22eb47d90dc5ca7cd77896de1fcb9420450f9055f49da4d316c8cdd9f255acb5282ed91529109122811c300a0ecfc92de71a4b26031854f9671c58e6671990f
|
data/.gitignore
CHANGED
data/lib/miteru/commands/main.rb
CHANGED
@@ -15,7 +15,7 @@ module Miteru
|
|
15
15
|
method_option :download_to, type: :string, default: "/tmp", desc: "Directory to download phishing kits"
|
16
16
|
method_option :threads, type: :numeric, desc: "Number of threads to use", default: Parallel.processor_count
|
17
17
|
method_option :verbose, type: :boolean, default: true
|
18
|
-
desc "execute", "
|
18
|
+
desc "execute", "Execute the crawler"
|
19
19
|
around :with_db_connection
|
20
20
|
def execute
|
21
21
|
Miteru.config.tap do |config|
|
data/lib/miteru/orchestrator.rb
CHANGED
@@ -6,10 +6,17 @@ module Miteru
|
|
6
6
|
Miteru.logger.info("#{websites.length} websites loaded in total.") if verbose?
|
7
7
|
|
8
8
|
if Miteru.sidekiq?
|
9
|
-
|
9
|
+
|
10
|
+
websites.each do |website|
|
11
|
+
Jobs::CrawleJob.perform_async(website.url, website.source)
|
12
|
+
Miteru.logger.info("Website:#{website.truncated_url} crawler job queued") if verbose?
|
13
|
+
end
|
10
14
|
else
|
11
15
|
Miteru.logger.info("Use #{threads} thread(s).") if verbose?
|
12
|
-
Parallel.each(websites, in_threads: threads)
|
16
|
+
Parallel.each(websites, in_threads: threads) do |website|
|
17
|
+
Miteru.logger.info("Website:#{website.truncated_url} crawling started") if verbose?
|
18
|
+
crawl(website)
|
19
|
+
end
|
13
20
|
end
|
14
21
|
end
|
15
22
|
|
data/lib/miteru/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: miteru
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Manabu Niseki
|
@@ -584,9 +584,6 @@ files:
|
|
584
584
|
- lib/miteru/version.rb
|
585
585
|
- lib/miteru/web/application.rb
|
586
586
|
- lib/miteru/website.rb
|
587
|
-
- miteru-sidekiq.service
|
588
|
-
- miteru.db-shm
|
589
|
-
- miteru.db-wal
|
590
587
|
- miteru.gemspec
|
591
588
|
- renovate.json
|
592
589
|
- screenshots/slack.png
|
data/miteru-sidekiq.service
DELETED
data/miteru.db-shm
DELETED
Binary file
|
data/miteru.db-wal
DELETED
File without changes
|