From 66b68ac489330ab181c2eb13e6ed27eeae3757e3 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 29 Dec 2019 22:31:47 +0000 Subject: [PATCH 1/3] changes to the migrations --- core/main/ar-migrations/011_create_web_cloner.rb | 2 +- core/main/ar-migrations/012_create_mass_mailer.rb | 2 +- core/main/ar-migrations/015_create_http.rb | 2 +- core/main/ar-migrations/017_create_rtc_manage.rb | 2 +- core/main/ar-migrations/018_create_rtc_signal.rb | 2 +- core/main/ar-migrations/020_create_xssrays_detail.rb | 2 +- core/main/ar-migrations/022_create_ipec_exploit.rb | 2 +- core/main/ar-migrations/023_create_ipec_exploit_run.rb | 2 +- core/main/ar-migrations/024_create_autoloader.rb | 2 +- core/main/ar-migrations/025_create_xssrays_scan.rb | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/core/main/ar-migrations/011_create_web_cloner.rb b/core/main/ar-migrations/011_create_web_cloner.rb index 00fe9d5752..38c351ad6d 100644 --- a/core/main/ar-migrations/011_create_web_cloner.rb +++ b/core/main/ar-migrations/011_create_web_cloner.rb @@ -2,7 +2,7 @@ class CreateWebCloner < ActiveRecord::Migration[6.0] def change - create_table :web_cloner do |t| + create_table :web_cloners do |t| t.text :uri t.text :mount end diff --git a/core/main/ar-migrations/012_create_mass_mailer.rb b/core/main/ar-migrations/012_create_mass_mailer.rb index fb06ddfd8a..d4816f186a 100644 --- a/core/main/ar-migrations/012_create_mass_mailer.rb +++ b/core/main/ar-migrations/012_create_mass_mailer.rb @@ -2,7 +2,7 @@ class CreateMassMailer < ActiveRecord::Migration[6.0] def change - create_table :mass_mailer do |t| + create_table :mass_mailers do |t| #todo fields end diff --git a/core/main/ar-migrations/015_create_http.rb b/core/main/ar-migrations/015_create_http.rb index 31d821f717..76d491cd1c 100644 --- a/core/main/ar-migrations/015_create_http.rb +++ b/core/main/ar-migrations/015_create_http.rb @@ -2,7 +2,7 @@ class CreateHttp < ActiveRecord::Migration[6.0] def change - create_table :http do |t| + create_table :https do |t| t.references :hooked_browser # The http request to perform. In clear text. t.text :request diff --git a/core/main/ar-migrations/017_create_rtc_manage.rb b/core/main/ar-migrations/017_create_rtc_manage.rb index 64b0962c29..16239ad7ef 100644 --- a/core/main/ar-migrations/017_create_rtc_manage.rb +++ b/core/main/ar-migrations/017_create_rtc_manage.rb @@ -2,7 +2,7 @@ class CreateRtcManage < ActiveRecord::Migration[6.0] def change - create_table :rtc_manage do |t| + create_table :rtc_manages do |t| t.references :hooked_browser t.text :message t.text :has_sent, default: "waiting" diff --git a/core/main/ar-migrations/018_create_rtc_signal.rb b/core/main/ar-migrations/018_create_rtc_signal.rb index 3b51862eb6..5d1b0b7cc6 100644 --- a/core/main/ar-migrations/018_create_rtc_signal.rb +++ b/core/main/ar-migrations/018_create_rtc_signal.rb @@ -2,7 +2,7 @@ class CreateRtcSignal < ActiveRecord::Migration[6.0] def change - create_table :rtc_signal do |t| + create_table :rtc_signals do |t| t.references :hooked_browser t.integer :target_hooked_browser_id t.text :signal diff --git a/core/main/ar-migrations/020_create_xssrays_detail.rb b/core/main/ar-migrations/020_create_xssrays_detail.rb index 73ca3314a8..22900b5018 100644 --- a/core/main/ar-migrations/020_create_xssrays_detail.rb +++ b/core/main/ar-migrations/020_create_xssrays_detail.rb @@ -2,7 +2,7 @@ class CreateXssraysDetail < ActiveRecord::Migration[6.0] def change - create_table :xssrays_detail do |t| + create_table :xssraysdetails do |t| t.references :hooked_browser t.text :vector_name t.text :vector_method diff --git a/core/main/ar-migrations/022_create_ipec_exploit.rb b/core/main/ar-migrations/022_create_ipec_exploit.rb index 8e6150b4fd..228d1afc0b 100644 --- a/core/main/ar-migrations/022_create_ipec_exploit.rb +++ b/core/main/ar-migrations/022_create_ipec_exploit.rb @@ -2,7 +2,7 @@ class CreateIpecExploit < ActiveRecord::Migration[6.0] def change - create_table :ipec_exploit do |t| + create_table :ipec_exploits do |t| t.text :name t.text :protocol t.text :os diff --git a/core/main/ar-migrations/023_create_ipec_exploit_run.rb b/core/main/ar-migrations/023_create_ipec_exploit_run.rb index 66d939722d..7b7526665c 100644 --- a/core/main/ar-migrations/023_create_ipec_exploit_run.rb +++ b/core/main/ar-migrations/023_create_ipec_exploit_run.rb @@ -2,7 +2,7 @@ class CreateIpecExploitRun < ActiveRecord::Migration[6.0] def change - create_table :ipec_exploit_run do |t| + create_table :ipec_exploit_runs do |t| t.boolean :launched t.text :http_headers t.text :junk_size diff --git a/core/main/ar-migrations/024_create_autoloader.rb b/core/main/ar-migrations/024_create_autoloader.rb index 16a4f49622..4ebe1197af 100644 --- a/core/main/ar-migrations/024_create_autoloader.rb +++ b/core/main/ar-migrations/024_create_autoloader.rb @@ -2,7 +2,7 @@ class CreateAutoloader < ActiveRecord::Migration[6.0] def change - create_table :autoloader do |t| + create_table :autoloaders do |t| t.references :command t.boolean :in_use end diff --git a/core/main/ar-migrations/025_create_xssrays_scan.rb b/core/main/ar-migrations/025_create_xssrays_scan.rb index 8c6f0cfc59..67122a5f9a 100644 --- a/core/main/ar-migrations/025_create_xssrays_scan.rb +++ b/core/main/ar-migrations/025_create_xssrays_scan.rb @@ -2,7 +2,7 @@ class CreateXssraysScan < ActiveRecord::Migration[6.0] def change - create_table :xssrays_scan do |t| + create_table :xssraysscans do |t| t.references :hooked_browser t.datetime :scan_start t.datetime :scan_finish From a8f18706b16ed99af3c7d5dc84be0caee6203843 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 30 Dec 2019 05:23:59 +0000 Subject: [PATCH 2/3] updated table names --- .bundle/config | 3 +++ core/main/ar-migrations/015_create_http.rb | 2 +- core/main/ar-migrations/016_create_rtc_status.rb | 2 +- core/main/ar-migrations/017_create_rtc_manage.rb | 2 +- core/main/ar-migrations/018_create_rtc_signal.rb | 2 +- core/main/ar-migrations/019_create_rtc_module_status.rb | 2 +- core/main/ar-migrations/020_create_xssrays_detail.rb | 2 +- core/main/ar-migrations/021_create_dns_rule.rb | 2 +- core/main/ar-migrations/022_create_ipec_exploit.rb | 2 +- core/main/ar-migrations/023_create_ipec_exploit_run.rb | 2 +- core/main/ar-migrations/024_create_autoloader.rb | 2 +- core/main/ar-migrations/025_create_xssrays_scan.rb | 2 +- 12 files changed, 14 insertions(+), 11 deletions(-) create mode 100644 .bundle/config diff --git a/.bundle/config b/.bundle/config new file mode 100644 index 0000000000..e7db70bb4c --- /dev/null +++ b/.bundle/config @@ -0,0 +1,3 @@ +--- +BUNDLE_WITHOUT: "development" +BUNDLE_WITH: "test:tests" diff --git a/core/main/ar-migrations/015_create_http.rb b/core/main/ar-migrations/015_create_http.rb index 31d821f717..76d491cd1c 100644 --- a/core/main/ar-migrations/015_create_http.rb +++ b/core/main/ar-migrations/015_create_http.rb @@ -2,7 +2,7 @@ class CreateHttp < ActiveRecord::Migration[6.0] def change - create_table :http do |t| + create_table :https do |t| t.references :hooked_browser # The http request to perform. In clear text. t.text :request diff --git a/core/main/ar-migrations/016_create_rtc_status.rb b/core/main/ar-migrations/016_create_rtc_status.rb index cdb7389d6b..dae86650e7 100644 --- a/core/main/ar-migrations/016_create_rtc_status.rb +++ b/core/main/ar-migrations/016_create_rtc_status.rb @@ -2,7 +2,7 @@ class CreateRtcStatus < ActiveRecord::Migration[6.0] def change - create_table :rtc_status do |t| + create_table :rtc_statuss do |t| t.references :hooked_browser t.integer :target_hooked_browser_id t.text :status diff --git a/core/main/ar-migrations/017_create_rtc_manage.rb b/core/main/ar-migrations/017_create_rtc_manage.rb index 64b0962c29..16239ad7ef 100644 --- a/core/main/ar-migrations/017_create_rtc_manage.rb +++ b/core/main/ar-migrations/017_create_rtc_manage.rb @@ -2,7 +2,7 @@ class CreateRtcManage < ActiveRecord::Migration[6.0] def change - create_table :rtc_manage do |t| + create_table :rtc_manages do |t| t.references :hooked_browser t.text :message t.text :has_sent, default: "waiting" diff --git a/core/main/ar-migrations/018_create_rtc_signal.rb b/core/main/ar-migrations/018_create_rtc_signal.rb index 3b51862eb6..5d1b0b7cc6 100644 --- a/core/main/ar-migrations/018_create_rtc_signal.rb +++ b/core/main/ar-migrations/018_create_rtc_signal.rb @@ -2,7 +2,7 @@ class CreateRtcSignal < ActiveRecord::Migration[6.0] def change - create_table :rtc_signal do |t| + create_table :rtc_signals do |t| t.references :hooked_browser t.integer :target_hooked_browser_id t.text :signal diff --git a/core/main/ar-migrations/019_create_rtc_module_status.rb b/core/main/ar-migrations/019_create_rtc_module_status.rb index 7c47f8730c..abeb941c37 100644 --- a/core/main/ar-migrations/019_create_rtc_module_status.rb +++ b/core/main/ar-migrations/019_create_rtc_module_status.rb @@ -2,7 +2,7 @@ class CreateRtcModuleStatus < ActiveRecord::Migration[6.0] def change - create_table :rtc_module_status do |t| + create_table :rtc_module_statuss do |t| t.references :hooked_browser t.references :command_module t.integer :target_hooked_browser_id diff --git a/core/main/ar-migrations/020_create_xssrays_detail.rb b/core/main/ar-migrations/020_create_xssrays_detail.rb index 73ca3314a8..21e483229f 100644 --- a/core/main/ar-migrations/020_create_xssrays_detail.rb +++ b/core/main/ar-migrations/020_create_xssrays_detail.rb @@ -2,7 +2,7 @@ class CreateXssraysDetail < ActiveRecord::Migration[6.0] def change - create_table :xssrays_detail do |t| + create_table :xssrays_details do |t| t.references :hooked_browser t.text :vector_name t.text :vector_method diff --git a/core/main/ar-migrations/021_create_dns_rule.rb b/core/main/ar-migrations/021_create_dns_rule.rb index 79058c823e..bcc877b36a 100644 --- a/core/main/ar-migrations/021_create_dns_rule.rb +++ b/core/main/ar-migrations/021_create_dns_rule.rb @@ -2,7 +2,7 @@ class CreateDnsRule < ActiveRecord::Migration[6.0] def change - create_table :dns_rule do |t| + create_table :dns_rules do |t| t.text :pattern t.text :resource t.text :response diff --git a/core/main/ar-migrations/022_create_ipec_exploit.rb b/core/main/ar-migrations/022_create_ipec_exploit.rb index 8e6150b4fd..228d1afc0b 100644 --- a/core/main/ar-migrations/022_create_ipec_exploit.rb +++ b/core/main/ar-migrations/022_create_ipec_exploit.rb @@ -2,7 +2,7 @@ class CreateIpecExploit < ActiveRecord::Migration[6.0] def change - create_table :ipec_exploit do |t| + create_table :ipec_exploits do |t| t.text :name t.text :protocol t.text :os diff --git a/core/main/ar-migrations/023_create_ipec_exploit_run.rb b/core/main/ar-migrations/023_create_ipec_exploit_run.rb index 66d939722d..7b7526665c 100644 --- a/core/main/ar-migrations/023_create_ipec_exploit_run.rb +++ b/core/main/ar-migrations/023_create_ipec_exploit_run.rb @@ -2,7 +2,7 @@ class CreateIpecExploitRun < ActiveRecord::Migration[6.0] def change - create_table :ipec_exploit_run do |t| + create_table :ipec_exploit_runs do |t| t.boolean :launched t.text :http_headers t.text :junk_size diff --git a/core/main/ar-migrations/024_create_autoloader.rb b/core/main/ar-migrations/024_create_autoloader.rb index 16a4f49622..4ebe1197af 100644 --- a/core/main/ar-migrations/024_create_autoloader.rb +++ b/core/main/ar-migrations/024_create_autoloader.rb @@ -2,7 +2,7 @@ class CreateAutoloader < ActiveRecord::Migration[6.0] def change - create_table :autoloader do |t| + create_table :autoloaders do |t| t.references :command t.boolean :in_use end diff --git a/core/main/ar-migrations/025_create_xssrays_scan.rb b/core/main/ar-migrations/025_create_xssrays_scan.rb index 8c6f0cfc59..46b4acc098 100644 --- a/core/main/ar-migrations/025_create_xssrays_scan.rb +++ b/core/main/ar-migrations/025_create_xssrays_scan.rb @@ -2,7 +2,7 @@ class CreateXssraysScan < ActiveRecord::Migration[6.0] def change - create_table :xssrays_scan do |t| + create_table :xssrays_scans do |t| t.references :hooked_browser t.datetime :scan_start t.datetime :scan_finish From 6f34d1c8077cf33f9cd6ad447f1acf3a8ca474bb Mon Sep 17 00:00:00 2001 From: root Date: Mon, 30 Dec 2019 05:38:16 +0000 Subject: [PATCH 3/3] other migrations --- core/main/ar-migrations/020_create_xssrays_detail.rb | 2 +- core/main/ar-migrations/021_create_dns_rule.rb | 2 +- core/main/ar-migrations/025_create_xssrays_scan.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/main/ar-migrations/020_create_xssrays_detail.rb b/core/main/ar-migrations/020_create_xssrays_detail.rb index 21e483229f..22900b5018 100644 --- a/core/main/ar-migrations/020_create_xssrays_detail.rb +++ b/core/main/ar-migrations/020_create_xssrays_detail.rb @@ -2,7 +2,7 @@ class CreateXssraysDetail < ActiveRecord::Migration[6.0] def change - create_table :xssrays_details do |t| + create_table :xssraysdetails do |t| t.references :hooked_browser t.text :vector_name t.text :vector_method diff --git a/core/main/ar-migrations/021_create_dns_rule.rb b/core/main/ar-migrations/021_create_dns_rule.rb index bcc877b36a..79058c823e 100644 --- a/core/main/ar-migrations/021_create_dns_rule.rb +++ b/core/main/ar-migrations/021_create_dns_rule.rb @@ -2,7 +2,7 @@ class CreateDnsRule < ActiveRecord::Migration[6.0] def change - create_table :dns_rules do |t| + create_table :dns_rule do |t| t.text :pattern t.text :resource t.text :response diff --git a/core/main/ar-migrations/025_create_xssrays_scan.rb b/core/main/ar-migrations/025_create_xssrays_scan.rb index 46b4acc098..67122a5f9a 100644 --- a/core/main/ar-migrations/025_create_xssrays_scan.rb +++ b/core/main/ar-migrations/025_create_xssrays_scan.rb @@ -2,7 +2,7 @@ class CreateXssraysScan < ActiveRecord::Migration[6.0] def change - create_table :xssrays_scans do |t| + create_table :xssraysscans do |t| t.references :hooked_browser t.datetime :scan_start t.datetime :scan_finish