metasploit-credential 0.7.16 → 0.7.17

Sign up to get free protection for your applications and to get access to all the features.
@@ -52648,3 +52648,859 @@ Connecting to database specified by database.yml
52648
52648
   (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')
52649
52649
   (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')
52650
52650
   (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737')
52651
+ Connecting to database specified by database.yml
52652
+  (7.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) 
52653
+  (11.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
52654
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
52655
+ Migrating to CreateTables (0)
52656
+  (0.1ms) BEGIN
52657
+  (2.8ms) CREATE TABLE "hosts" ("id" serial primary key, "created" timestamp, "address" character varying(16), "address6" character varying(255), "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "info" character varying(1024), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255)) 
52658
+  (0.6ms) CREATE UNIQUE INDEX "index_hosts_on_address" ON "hosts" ("address")
52659
+  (2.0ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32)) 
52660
+  (2.0ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "info" character varying(1024))
52661
+  (2.0ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created" timestamp, "name" character varying(255), "data" text) 
52662
+  (2.0ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created" timestamp, "name" character varying(512))
52663
+  (0.4ms) CREATE TABLE "vulns_refs" ("ref_id" integer, "vuln_id" integer) 
52664
+  (1.9ms) CREATE TABLE "notes" ("id" serial primary key, "host_id" integer, "created" timestamp, "ntype" character varying(512), "data" text)
52665
+  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('0')
52666
+  (0.9ms) COMMIT
52667
+ Migrating to AddWmapTables (1)
52668
+  (0.3ms) BEGIN
52669
+  (2.2ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(16), "address6" character varying(255), "port" integer, "ssl" integer, "selected" integer)
52670
+  (2.1ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" character varying(16), "address6" character varying(255), "port" integer, "ssl" integer, "meth" character varying(32), "path" text, "headers" text, "query" text, "body" text, "respcode" character varying(16), "resphead" text, "response" text, "created" timestamp) 
52671
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('1')
52672
+  (0.5ms) COMMIT
52673
+ Migrating to AddWorkspaces (2)
52674
+  (0.2ms) BEGIN
52675
+  (1.3ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
52676
+  (0.7ms) ALTER TABLE "hosts" ADD COLUMN "workspace_id" integer
52677
+  (0.3ms) DROP INDEX "index_hosts_on_address"
52678
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('2')
52679
+  (0.7ms) COMMIT
52680
+ Migrating to MoveNotes (3)
52681
+  (0.1ms) BEGIN
52682
+  (0.2ms) ALTER TABLE "notes" DROP "host_id"
52683
+  (13.6ms) ALTER TABLE "notes" ADD COLUMN "workspace_id" integer DEFAULT 1 NOT NULL
52684
+  (0.2ms) ALTER TABLE "notes" ADD COLUMN "service_id" integer
52685
+  (0.7ms) ALTER TABLE "notes" ADD COLUMN "host_id" integer
52686
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('3')
52687
+  (6.7ms) COMMIT
52688
+ Migrating to AddEventsTable (4)
52689
+  (0.2ms) BEGIN
52690
+  (2.2ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "user" character varying(255), "name" character varying(255), "info" character varying(255))
52691
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('4')
52692
+  (0.3ms) COMMIT
52693
+ Migrating to ExpandInfo (5)
52694
+  (0.1ms) BEGIN
52695
+  (0.2ms) ALTER TABLE "events" DROP "info"
52696
+  (0.2ms) ALTER TABLE "events" ADD COLUMN "info" character varying(4096)
52697
+  (0.2ms) ALTER TABLE "notes" DROP "data"
52698
+  (0.1ms) ALTER TABLE "notes" ADD COLUMN "data" character varying(4096)
52699
+  (0.2ms) ALTER TABLE "vulns" DROP "data"
52700
+  (0.1ms) ALTER TABLE "vulns" ADD COLUMN "data" character varying(4096)
52701
+  (0.2ms) ALTER TABLE "hosts" DROP "info"
52702
+  (0.3ms) ALTER TABLE "hosts" ADD COLUMN "info" character varying(4096)
52703
+  (0.3ms) ALTER TABLE "services" DROP "info"
52704
+  (0.3ms) ALTER TABLE "services" ADD COLUMN "info" character varying(4096)
52705
+  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('5')
52706
+  (0.4ms) COMMIT
52707
+ Migrating to AddTimestamps (6)
52708
+  (0.1ms) BEGIN
52709
+  (0.3ms) ALTER TABLE "clients" RENAME COLUMN "created" TO "created_at"
52710
+  (0.2ms) ALTER TABLE "hosts" RENAME COLUMN "created" TO "created_at"
52711
+  (0.2ms) ALTER TABLE "notes" RENAME COLUMN "created" TO "created_at"
52712
+  (0.1ms) ALTER TABLE "refs" RENAME COLUMN "created" TO "created_at"
52713
+  (0.1ms) ALTER TABLE "services" RENAME COLUMN "created" TO "created_at"
52714
+  (0.1ms) ALTER TABLE "vulns" RENAME COLUMN "created" TO "created_at"
52715
+  (0.1ms) ALTER TABLE "wmap_requests" RENAME COLUMN "created" TO "created_at"
52716
+  (0.2ms) ALTER TABLE "wmap_targets" ADD COLUMN "created_at" timestamp
52717
+  (0.1ms) ALTER TABLE "clients" ADD COLUMN "updated_at" timestamp
52718
+  (0.2ms) ALTER TABLE "events" ADD COLUMN "updated_at" timestamp
52719
+  (0.2ms) ALTER TABLE "hosts" ADD COLUMN "updated_at" timestamp
52720
+  (0.1ms) ALTER TABLE "notes" ADD COLUMN "updated_at" timestamp
52721
+  (0.3ms) ALTER TABLE "refs" ADD COLUMN "updated_at" timestamp
52722
+  (0.2ms) ALTER TABLE "services" ADD COLUMN "updated_at" timestamp
52723
+  (0.2ms) ALTER TABLE "vulns" ADD COLUMN "updated_at" timestamp
52724
+  (0.2ms) ALTER TABLE "wmap_requests" ADD COLUMN "updated_at" timestamp
52725
+  (0.2ms) ALTER TABLE "wmap_targets" ADD COLUMN "updated_at" timestamp
52726
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('6')
52727
+  (0.4ms) COMMIT
52728
+ Migrating to AddLoots (7)
52729
+  (0.1ms) BEGIN
52730
+  (2.2ms) CREATE TABLE "loots" ("id" serial primary key, "workspace_id" integer DEFAULT 1 NOT NULL, "host_id" integer, "service_id" integer, "ltype" character varying(512), "path" character varying(1024), "data" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
52731
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('7')
52732
+  (0.4ms) COMMIT
52733
+ Migrating to CreateUsers (8)
52734
+  (0.1ms) BEGIN
52735
+  (2.1ms) CREATE TABLE "users" ("id" serial primary key, "username" character varying(255), "crypted_password" character varying(255), "password_salt" character varying(255), "persistence_token" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
52736
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('8')
52737
+  (0.3ms) COMMIT
52738
+ Migrating to AddLootsCtype (9)
52739
+  (0.1ms) BEGIN
52740
+  (0.2ms) ALTER TABLE "loots" ADD COLUMN "content_type" character varying(255)
52741
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('9')
52742
+  (0.3ms) COMMIT
52743
+ Migrating to AddAlertFields (10)
52744
+  (0.1ms) BEGIN
52745
+  (0.2ms) ALTER TABLE "notes" ADD COLUMN "critical" boolean
52746
+  (0.2ms) ALTER TABLE "notes" ADD COLUMN "seen" boolean
52747
+  (0.2ms) ALTER TABLE "events" ADD COLUMN "critical" boolean
52748
+  (0.2ms) ALTER TABLE "events" ADD COLUMN "seen" boolean
52749
+  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('10')
52750
+  (0.3ms) COMMIT
52751
+ Migrating to AddReports (11)
52752
+  (0.1ms) BEGIN
52753
+  (3.5ms) CREATE TABLE "reports" ("id" serial primary key, "workspace_id" integer DEFAULT 1 NOT NULL, "created_by" character varying(255), "rtype" character varying(255), "path" character varying(1024), "options" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
52754
+  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('11')
52755
+  (0.4ms) COMMIT
52756
+ Migrating to AddTasks (12)
52757
+  (0.2ms) BEGIN
52758
+  (3.9ms) CREATE TABLE "tasks" ("id" serial primary key, "workspace_id" integer DEFAULT 1 NOT NULL, "created_by" character varying(255), "module" character varying(255), "completed_at" timestamp, "path" character varying(1024), "info" character varying(255), "description" character varying(255), "progress" integer, "options" text, "error" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
52759
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('12')
52760
+  (0.4ms) COMMIT
52761
+ Migrating to AddTasksResult (13)
52762
+  (0.2ms) BEGIN
52763
+  (0.4ms) ALTER TABLE "tasks" ADD COLUMN "result" text
52764
+  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('13')
52765
+  (0.3ms) COMMIT
52766
+ Migrating to AddLootsFields (14)
52767
+  (0.1ms) BEGIN
52768
+  (0.4ms) ALTER TABLE "loots" ADD COLUMN "name" text
52769
+  (0.2ms) ALTER TABLE "loots" ADD COLUMN "info" text
52770
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('14')
52771
+  (0.3ms) COMMIT
52772
+ Migrating to RenameUser (15)
52773
+  (0.1ms) BEGIN
52774
+  (0.2ms) ALTER TABLE "events" DROP "user"
52775
+  (0.2ms) ALTER TABLE "events" ADD COLUMN "username" character varying(255)
52776
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('15')
52777
+  (0.2ms) COMMIT
52778
+ Migrating to AddHostPurpose (16)
52779
+  (0.1ms) BEGIN
52780
+  (0.2ms) ALTER TABLE "hosts" ADD COLUMN "purpose" text
52781
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('16')
52782
+  (0.2ms) COMMIT
52783
+ Migrating to ExpandInfo2 (17)
52784
+  (0.1ms) BEGIN
52785
+  (0.4ms) ALTER TABLE "events" DROP "info"
52786
+  (0.2ms) ALTER TABLE "events" ADD COLUMN "info" character varying(65536)
52787
+  (0.2ms) ALTER TABLE "notes" DROP "data"
52788
+  (0.2ms) ALTER TABLE "notes" ADD COLUMN "data" character varying(65536)
52789
+  (0.3ms) ALTER TABLE "vulns" DROP "data"
52790
+  (0.2ms) ALTER TABLE "vulns" ADD COLUMN "data" character varying(65536)
52791
+  (0.2ms) ALTER TABLE "hosts" DROP "info"
52792
+  (0.2ms) ALTER TABLE "hosts" ADD COLUMN "info" character varying(65536)
52793
+  (0.2ms) ALTER TABLE "services" DROP "info"
52794
+  (0.2ms) ALTER TABLE "services" ADD COLUMN "info" character varying(65536)
52795
+  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('17')
52796
+  (0.3ms) COMMIT
52797
+ Migrating to AddWorkspaceUserInfo (18)
52798
+  (0.1ms) BEGIN
52799
+  (1.1ms) ALTER TABLE "workspaces" ADD COLUMN "boundary" character varying(4096)
52800
+  (0.2ms) ALTER TABLE "users" ADD COLUMN "fullname" character varying(255)
52801
+  (0.2ms) ALTER TABLE "users" ADD COLUMN "email" character varying(255)
52802
+  (0.2ms) ALTER TABLE "users" ADD COLUMN "phone" character varying(255)
52803
+  (0.2ms) ALTER TABLE "users" ADD COLUMN "company" character varying(255)
52804
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('18')
52805
+  (0.3ms) COMMIT
52806
+ Migrating to AddWorkspaceDesc (19)
52807
+  (0.1ms) BEGIN
52808
+  (0.2ms) ALTER TABLE "workspaces" ADD COLUMN "description" character varying(4096)
52809
+  (0.2ms) ALTER TABLE "hosts" ADD COLUMN "comments" character varying(4096)
52810
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('19')
52811
+  (0.2ms) COMMIT
52812
+ Migrating to AddUserPreferences (20)
52813
+  (0.1ms) BEGIN
52814
+  (0.2ms) ALTER TABLE "users" ADD COLUMN "prefs" character varying(524288)
52815
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20')
52816
+  (0.3ms) COMMIT
52817
+ Migrating to StandardizeInfoAndData (21)
52818
+  (0.1ms) BEGIN
52819
+  (0.3ms) ALTER TABLE "vulns" DROP "data"
52820
+  (0.4ms) ALTER TABLE "vulns" ADD COLUMN "info" character varying(65536)
52821
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('21')
52822
+  (0.3ms) COMMIT
52823
+ Migrating to EnlargeEventInfo (22)
52824
+  (0.1ms) BEGIN
52825
+  (0.4ms) ALTER TABLE "events" ALTER COLUMN "info" TYPE text
52826
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('22')
52827
+  (0.2ms) COMMIT
52828
+ Migrating to AddReportDownloadedAt (23)
52829
+  (0.1ms) BEGIN
52830
+  (0.2ms) ALTER TABLE "reports" ADD COLUMN "downloaded_at" timestamp
52831
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('23')
52832
+  (0.2ms) COMMIT
52833
+ Migrating to ConvertServiceInfoToText (24)
52834
+  (0.1ms) BEGIN
52835
+  (0.2ms) ALTER TABLE "services" ALTER COLUMN "info" TYPE text
52836
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('24')
52837
+  (0.2ms) COMMIT
52838
+ Migrating to AddUserAdmin (25)
52839
+  (0.1ms) BEGIN
52840
+  (2.3ms) ALTER TABLE "users" ADD COLUMN "admin" boolean DEFAULT 't'
52841
+  (0.4ms) CREATE TABLE "project_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)
52842
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('25')
52843
+  (0.6ms) COMMIT
52844
+ Migrating to AddCredsTable (26)
52845
+  (0.1ms) BEGIN
52846
+  (2.3ms) CREATE TABLE "creds" ("id" serial primary key, "service_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "user" character varying(2048), "pass" character varying(4096), "active" boolean DEFAULT 't', "proof" character varying(4096), "ptype" character varying(16), "source_id" integer, "source_type" character varying(255))
52847
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('26')
52848
+  (0.4ms) COMMIT
52849
+ Migrating to MigrateCredData (20100819123300)
52850
+  (0.1ms) BEGIN
52851
+ Mdm::Note Load (0.4ms) SELECT "notes".* FROM "notes"
52852
+ Mdm::Note Load (0.2ms) SELECT "notes".* FROM "notes" 
52853
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100819123300')
52854
+  (0.3ms) COMMIT
52855
+ Migrating to AddExploitedTable (20100824151500)
52856
+  (0.1ms) BEGIN
52857
+  (2.2ms) CREATE TABLE "exploited_hosts" ("id" serial primary key, "host_id" integer NOT NULL, "service_id" integer, "session_uuid" character varying(8), "name" character varying(2048), "payload" character varying(2048), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
52858
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100824151500')
52859
+  (0.3ms) COMMIT
52860
+ Migrating to AddOwnerToWorkspaces (20100908001428)
52861
+  (0.1ms) BEGIN
52862
+  (0.2ms) ALTER TABLE "workspaces" ADD COLUMN "owner_id" integer
52863
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100908001428')
52864
+  (0.2ms) COMMIT
52865
+ Migrating to AddReportTemplates (20100911122000)
52866
+  (0.1ms) BEGIN
52867
+  (2.1ms) CREATE TABLE "report_templates" ("id" serial primary key, "workspace_id" integer DEFAULT 1 NOT NULL, "created_by" character varying(255), "path" character varying(1024), "name" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
52868
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100911122000')
52869
+  (0.3ms) COMMIT
52870
+ Migrating to RequireAdminFlag (20100916151530)
52871
+  (0.1ms) BEGIN
52872
+ SQL (0.3ms) UPDATE "users" SET "admin" = 't' WHERE "users"."admin" IS NULL
52873
+  (0.3ms) ALTER TABLE "users" ALTER COLUMN "admin" TYPE boolean
52874
+  (0.2ms) ALTER TABLE "users" ALTER COLUMN "admin" SET DEFAULT 't'
52875
+  (0.2ms) UPDATE "users" SET "admin"='t' WHERE "admin" IS NULL
52876
+  (0.2ms) ALTER TABLE "users" ALTER "admin" SET NOT NULL
52877
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100916151530')
52878
+  (0.3ms) COMMIT
52879
+ Migrating to AddCampaignsAndTemplates (20100916175000)
52880
+  (0.1ms) BEGIN
52881
+  (2.2ms) CREATE TABLE "campaigns" ("id" serial primary key, "workspace_id" integer NOT NULL, "name" character varying(512), "prefs" text, "status" integer DEFAULT 0, "started_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
52882
+  (2.0ms) CREATE TABLE "email_templates" ("id" serial primary key, "name" character varying(512), "subject" character varying(1024), "body" text, "parent_id" integer, "campaign_id" integer)
52883
+  (2.2ms) CREATE TABLE "attachments" ("id" serial primary key, "name" character varying(512), "data" bytea, "content_type" character varying(512), "inline" boolean DEFAULT 't' NOT NULL, "zip" boolean DEFAULT 'f' NOT NULL) 
52884
+  (0.4ms) CREATE TABLE "attachments_email_templates" ("attachment_id" integer, "email_template_id" integer)
52885
+  (2.1ms) CREATE TABLE "email_addresses" ("id" serial primary key, "campaign_id" integer NOT NULL, "first_name" character varying(512), "last_name" character varying(512), "address" character varying(512), "sent" boolean DEFAULT 'f' NOT NULL, "clicked_at" timestamp) 
52886
+  (2.2ms) CREATE TABLE "web_templates" ("id" serial primary key, "name" character varying(512), "title" character varying(512), "body" character varying(524288), "campaign_id" integer)
52887
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100916175000')
52888
+  (0.7ms) COMMIT
52889
+ Migrating to AddGenerateExeColumn (20100920012100)
52890
+  (0.3ms) BEGIN
52891
+  (2.4ms) ALTER TABLE "email_templates" ADD COLUMN "generate_exe" boolean DEFAULT 'f' NOT NULL
52892
+  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100920012100')
52893
+  (0.8ms) COMMIT
52894
+ Migrating to AddTemplatePrefs (20100926214000)
52895
+  (0.2ms) BEGIN
52896
+  (0.5ms) ALTER TABLE "email_templates" DROP "generate_exe"
52897
+  (0.3ms) ALTER TABLE "email_templates" ADD COLUMN "prefs" text
52898
+  (0.3ms) ALTER TABLE "web_templates" ADD COLUMN "prefs" text
52899
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100926214000')
52900
+  (0.3ms) COMMIT
52901
+ Migrating to AddWebTables (20101001000000)
52902
+  (0.1ms) BEGIN
52903
+  (3.7ms) CREATE TABLE "web_sites" ("id" serial primary key, "service_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "vhost" character varying(2048), "comments" text, "options" text)
52904
+  (3.8ms) CREATE TABLE "web_pages" ("id" serial primary key, "web_site_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "path" text, "query" text, "code" integer NOT NULL, "cookie" text, "auth" text, "ctype" text, "mtime" timestamp, "location" text, "body" text, "headers" text) 
52905
+  (3.8ms) CREATE TABLE "web_forms" ("id" serial primary key, "web_site_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "path" text, "method" character varying(1024), "params" text)
52906
+  (2.8ms) CREATE TABLE "web_vulns" ("id" serial primary key, "web_site_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "path" text, "method" character varying(1024), "params" text, "pname" text, "proof" text, "risk" integer, "name" character varying(1024)) 
52907
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101001000000')
52908
+  (0.7ms) COMMIT
52909
+ Migrating to AddQuery (20101002000000)
52910
+  (0.3ms) BEGIN
52911
+  (0.2ms) ALTER TABLE "web_forms" ADD COLUMN "query" text
52912
+  (0.2ms) ALTER TABLE "web_vulns" ADD COLUMN "query" text
52913
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101002000000')
52914
+  (0.3ms) COMMIT
52915
+ Migrating to AddVulnInfo (20101007000000)
52916
+  (0.1ms) BEGIN
52917
+  (0.2ms) ALTER TABLE "web_vulns" ADD COLUMN "category" text
52918
+  (0.2ms) ALTER TABLE "web_vulns" ADD COLUMN "confidence" text
52919
+  (0.2ms) ALTER TABLE "web_vulns" ADD COLUMN "description" text
52920
+  (0.2ms) ALTER TABLE "web_vulns" ADD COLUMN "blame" text
52921
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101007000000')
52922
+  (0.3ms) COMMIT
52923
+ Migrating to AddClientsToCampaigns (20101008111800)
52924
+  (0.1ms) BEGIN
52925
+  (0.2ms) ALTER TABLE "clients" ADD COLUMN "campaign_id" integer
52926
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101008111800')
52927
+  (0.2ms) COMMIT
52928
+ Migrating to AddCampaignAttachments (20101009023300)
52929
+  (0.1ms) BEGIN
52930
+  (0.4ms) ALTER TABLE "attachments" ADD COLUMN "campaign_id" integer
52931
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101009023300')
52932
+  (0.3ms) COMMIT
52933
+ Migrating to AddImportedCreds (20101104135100)
52934
+  (0.1ms) BEGIN
52935
+  (2.7ms) CREATE TABLE "imported_creds" ("id" serial primary key, "workspace_id" integer DEFAULT 1 NOT NULL, "user" character varying(512), "pass" character varying(512), "ptype" character varying(16) DEFAULT 'password') 
52936
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101104135100')
52937
+  (0.4ms) COMMIT
52938
+ Migrating to FixWebTables (20101203000000)
52939
+  (0.2ms) BEGIN
52940
+  (0.5ms) ALTER TABLE "web_pages" ALTER COLUMN "path" TYPE text
52941
+  (0.2ms) ALTER TABLE "web_pages" ALTER COLUMN "query" TYPE text
52942
+  (0.2ms) ALTER TABLE "web_pages" ALTER COLUMN "cookie" TYPE text
52943
+  (0.2ms) ALTER TABLE "web_pages" ALTER COLUMN "auth" TYPE text
52944
+  (0.2ms) ALTER TABLE "web_pages" ALTER COLUMN "ctype" TYPE text
52945
+  (0.2ms) ALTER TABLE "web_pages" ALTER COLUMN "location" TYPE text
52946
+  (0.2ms) ALTER TABLE "web_pages" ALTER COLUMN "path" TYPE text
52947
+  (0.2ms) ALTER TABLE "web_vulns" ALTER COLUMN "path" TYPE text
52948
+  (0.2ms) ALTER TABLE "web_vulns" ALTER COLUMN "pname" TYPE text
52949
+  (0.2ms) ALTER TABLE "web_pages" ADD COLUMN "request" text
52950
+  (0.2ms) ALTER TABLE "web_vulns" ADD COLUMN "request" text
52951
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101203000000')
52952
+  (0.3ms) COMMIT
52953
+ Migrating to ExpandHostComment (20101203000001)
52954
+  (0.1ms) BEGIN
52955
+  (0.2ms) ALTER TABLE "hosts" ALTER COLUMN "comments" TYPE text
52956
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101203000001')
52957
+  (0.3ms) COMMIT
52958
+ Migrating to AddLimitToNetworkToWorkspaces (20101206212033)
52959
+  (0.1ms) BEGIN
52960
+  (2.7ms) ALTER TABLE "workspaces" ADD COLUMN "limit_to_network" boolean DEFAULT 'f' NOT NULL
52961
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101206212033')
52962
+  (0.7ms) COMMIT
52963
+ Migrating to AddModuleUuidToTasks (20110112154300)
52964
+  (0.1ms) BEGIN
52965
+  (0.3ms) ALTER TABLE "tasks" ADD COLUMN "module_uuid" character varying(8)
52966
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110112154300')
52967
+  (0.3ms) COMMIT
52968
+ Migrating to AddHostTags (20110204112800)
52969
+  (0.1ms) BEGIN
52970
+  (2.7ms) CREATE TABLE "tags" ("id" serial primary key, "user_id" integer, "name" character varying(1024), "desc" text, "report_summary" boolean DEFAULT 'f' NOT NULL, "report_detail" boolean DEFAULT 'f' NOT NULL, "critical" boolean DEFAULT 'f' NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
52971
+  (0.5ms) CREATE TABLE "hosts_tags" ("host_id" integer, "tag_id" integer)
52972
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110204112800')
52973
+  (0.4ms) COMMIT
52974
+ Migrating to AddSessionTable (20110317144932)
52975
+  (0.2ms) BEGIN
52976
+  (13.6ms) CREATE TABLE "sessions" ("id" serial primary key, "host_id" integer, "stype" character varying(255), "via_exploit" character varying(255), "via_payload" character varying(255), "desc" character varying(255), "port" integer, "platform" character varying(255), "routes" character varying(255), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255))
52977
+  (8.1ms) CREATE TABLE "session_events" ("id" serial primary key, "session_id" integer, "etype" character varying(255), "command" bytea, "output" bytea, "remote_path" character varying(255), "local_path" character varying(255), "created_at" timestamp) 
52978
+ AddSessionTable::Event Load (0.5ms) SELECT "events".* FROM "events" WHERE "events"."name" = 'session_close'
52979
+ AddSessionTable::Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."name" = 'session_open'
52980
+ AddSessionTable::Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."name" = 'session_command'
52981
+ AddSessionTable::Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."name" = 'session_output'
52982
+ AddSessionTable::Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."name" = 'session_upload'
52983
+ AddSessionTable::Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."name" = 'session_download'
52984
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110317144932')
52985
+  (0.4ms) COMMIT
52986
+ Migrating to AddLocalIdToSessionTable (20110414180600)
52987
+  (0.2ms) BEGIN
52988
+  (0.3ms) ALTER TABLE "sessions" ADD COLUMN "local_id" integer
52989
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110414180600')
52990
+  (0.2ms) COMMIT
52991
+ Migrating to AddRoutesTable (20110415175705)
52992
+  (0.1ms) BEGIN
52993
+  (2.5ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255)) 
52994
+  (0.2ms) ALTER TABLE "sessions" DROP "routes"
52995
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110415175705')
52996
+  (0.4ms) COMMIT
52997
+ Migrating to ConvertBinary (20110422000000)
52998
+  (0.1ms) BEGIN
52999
+  (0.2ms) ALTER TABLE "web_pages" RENAME COLUMN "body" TO "body_text"
53000
+  (0.1ms) ALTER TABLE "web_pages" RENAME COLUMN "request" TO "request_text"
53001
+  (0.2ms) ALTER TABLE "web_vulns" RENAME COLUMN "request" TO "request_text"
53002
+  (0.1ms) ALTER TABLE "web_vulns" RENAME COLUMN "proof" TO "proof_text"
53003
+  (0.2ms) ALTER TABLE "web_pages" ADD COLUMN "body" bytea
53004
+  (0.2ms) ALTER TABLE "web_pages" ADD COLUMN "request" bytea
53005
+  (0.2ms) ALTER TABLE "web_vulns" ADD COLUMN "request" bytea
53006
+  (0.2ms) ALTER TABLE "web_vulns" ADD COLUMN "proof" bytea
53007
+ ConvertBinary::WebPage Load (0.3ms) SELECT "web_pages".* FROM "web_pages"
53008
+ ConvertBinary::WebPage Load (0.2ms) SELECT "web_pages".* FROM "web_pages" 
53009
+ ConvertBinary::WebVuln Load (0.5ms) SELECT "web_vulns".* FROM "web_vulns"
53010
+ ConvertBinary::WebVuln Load (0.3ms) SELECT "web_vulns".* FROM "web_vulns" 
53011
+  (0.3ms) ALTER TABLE "web_pages" DROP "body_text"
53012
+  (0.3ms) ALTER TABLE "web_pages" DROP "request_text"
53013
+  (0.3ms) ALTER TABLE "web_vulns" DROP "request_text"
53014
+  (0.3ms) ALTER TABLE "web_vulns" DROP "proof_text"
53015
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110422000000')
53016
+  (0.4ms) COMMIT
53017
+ Migrating to AddLastSeenToSessions (20110425095900)
53018
+  (0.1ms) BEGIN
53019
+  (0.4ms) ALTER TABLE "sessions" ADD COLUMN "last_seen" timestamp
53020
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110425095900')
53021
+  (0.4ms) COMMIT
53022
+ Migrating to TrackSuccessfulExploits (20110513143900)
53023
+  (0.1ms) BEGIN
53024
+  (0.4ms) ALTER TABLE "vulns" ADD COLUMN "exploited_at" timestamp
53025
+ TrackSuccessfulExploits::ExploitedHost Load (0.4ms) SELECT "exploited_hosts".* FROM "exploited_hosts"
53026
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110513143900')
53027
+  (0.3ms) COMMIT
53028
+ Migrating to RenameAndPruneNessusVulns (20110517160800)
53029
+  (0.1ms) BEGIN
53030
+ RenameAndPruneNessusVulns::Vuln Load (0.3ms) SELECT "vulns".* FROM "vulns"
53031
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110517160800')
53032
+  (0.3ms) COMMIT
53033
+ Migrating to AddTaskIdToReportsTable (20110527000000)
53034
+  (0.1ms) BEGIN
53035
+  (0.2ms) ALTER TABLE "reports" ADD COLUMN "task_id" integer
53036
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110527000000')
53037
+  (0.2ms) COMMIT
53038
+ Migrating to AddApiKeysTable (20110527000001)
53039
+  (0.1ms) BEGIN
53040
+  (2.1ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
53041
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110527000001')
53042
+  (0.4ms) COMMIT
53043
+ Migrating to AddMacrosTable (20110606000001)
53044
+  (0.2ms) BEGIN
53045
+  (2.3ms) CREATE TABLE "macros" ("id" serial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "owner" text, "name" text, "description" text, "actions" bytea, "prefs" bytea)
53046
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110606000001')
53047
+  (0.3ms) COMMIT
53048
+ Migrating to AddSettingsToTasksTable (20110622000000)
53049
+  (0.2ms) BEGIN
53050
+  (0.3ms) ALTER TABLE "tasks" ADD COLUMN "settings" bytea
53051
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110622000000')
53052
+  (0.3ms) COMMIT
53053
+ Migrating to AddListenersTable (20110624000001)
53054
+  (0.2ms) BEGIN
53055
+  (2.7ms) CREATE TABLE "listeners" ("id" serial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "workspace_id" integer DEFAULT 1 NOT NULL, "task_id" integer, "enabled" boolean DEFAULT 't', "owner" text, "payload" text, "address" text, "port" integer, "options" bytea)
53056
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110624000001')
53057
+  (0.4ms) COMMIT
53058
+ Migrating to AddMacroToListenersTable (20110625000001)
53059
+  (0.1ms) BEGIN
53060
+  (0.2ms) ALTER TABLE "listeners" ADD COLUMN "macro" text
53061
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110625000001')
53062
+  (0.3ms) COMMIT
53063
+ Migrating to AddNexposeConsolesTable (20110630000001)
53064
+  (0.1ms) BEGIN
53065
+  (2.4ms) CREATE TABLE "nexpose_consoles" ("id" serial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "enabled" boolean DEFAULT 't', "owner" text, "address" text, "port" integer DEFAULT 3780, "username" text, "password" text, "status" text, "version" text, "cert" text, "cached_sites" bytea)
53066
+  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110630000001')
53067
+  (0.4ms) COMMIT
53068
+ Migrating to AddNameToNexposeConsolesTable (20110630000002)
53069
+  (0.1ms) BEGIN
53070
+  (0.2ms) ALTER TABLE "nexpose_consoles" ADD COLUMN "name" text
53071
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110630000002')
53072
+  (0.3ms) COMMIT
53073
+ Migrating to AddProfilesTable (20110717000001)
53074
+  (0.1ms) BEGIN
53075
+  (2.4ms) CREATE TABLE "profiles" ("id" serial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "active" boolean DEFAULT 't', "name" text, "owner" text, "settings" bytea)
53076
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110717000001')
53077
+  (0.4ms) COMMIT
53078
+ Migrating to ExpandCredPtypeColumn (20110727163801)
53079
+  (0.1ms) BEGIN
53080
+  (0.2ms) ALTER TABLE "creds" ALTER COLUMN "ptype" TYPE character varying(256)
53081
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110727163801')
53082
+  (0.3ms) COMMIT
53083
+ Migrating to AddInitialIndexes (20110730000001)
53084
+  (0.1ms) BEGIN
53085
+  (0.8ms) CREATE INDEX "index_hosts_on_address" ON "hosts" ("address")
53086
+  (0.6ms) CREATE INDEX "index_hosts_on_address6" ON "hosts" ("address6")
53087
+  (0.5ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")
53088
+  (0.6ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")
53089
+  (0.7ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")
53090
+  (0.6ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")
53091
+  (0.5ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")
53092
+  (0.6ms) CREATE INDEX "index_services_on_port" ON "services" ("port")
53093
+  (0.6ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")
53094
+  (0.5ms) CREATE INDEX "index_services_on_state" ON "services" ("state")
53095
+  (0.5ms) CREATE INDEX "index_services_on_name" ON "services" ("name")
53096
+  (0.6ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")
53097
+  (0.6ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")
53098
+  (0.5ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")
53099
+  (0.6ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")
53100
+  (0.6ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")
53101
+  (0.5ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")
53102
+  (0.6ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")
53103
+  (0.6ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")
53104
+  (0.6ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")
53105
+  (0.6ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")
53106
+  (0.5ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")
53107
+  (0.6ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")
53108
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110730000001')
53109
+  (0.5ms) COMMIT
53110
+ Migrating to PruneIndexes (20110812000001)
53111
+  (0.1ms) BEGIN
53112
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110812000001')
53113
+  (0.3ms) COMMIT
53114
+ Migrating to ExpandNotes (20110922000000)
53115
+  (0.1ms) BEGIN
53116
+  (0.2ms) ALTER TABLE "notes" ALTER COLUMN "data" TYPE text
53117
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110922000000')
53118
+  (0.3ms) COMMIT
53119
+ Migrating to AddModRefTable (20110928101300)
53120
+  (0.1ms) BEGIN
53121
+  (2.1ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text) 
53122
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110928101300')
53123
+  (0.4ms) COMMIT
53124
+ Migrating to AddDisplayNameToReportsTable (20111011110000)
53125
+  (0.1ms) BEGIN
53126
+  (0.2ms) ALTER TABLE "reports" ADD COLUMN "name" character varying(63)
53127
+ AddDisplayNameToReportsTable::Report Load (0.3ms) SELECT "reports".* FROM "reports"
53128
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20111011110000')
53129
+  (0.3ms) COMMIT
53130
+ Migrating to InetColumns (20111203000000)
53131
+  (0.1ms) BEGIN
53132
+  (5.8ms) ALTER TABLE "hosts" ALTER COLUMN "address" TYPE INET using address::INET
53133
+  (0.4ms) ALTER TABLE "hosts" DROP "address6"
53134
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20111203000000')
53135
+  (1.8ms) COMMIT
53136
+ Migrating to MoreInetColumns (20111204000000)
53137
+  (0.3ms) BEGIN
53138
+  (4.0ms) ALTER TABLE "wmap_requests" ALTER COLUMN "address" TYPE INET using address::INET
53139
+  (0.3ms) ALTER TABLE "wmap_requests" DROP "address6"
53140
+  (3.6ms) ALTER TABLE "wmap_targets" ALTER COLUMN "address" TYPE INET using address::INET
53141
+  (0.3ms) ALTER TABLE "wmap_targets" DROP "address6"
53142
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20111204000000')
53143
+  (1.1ms) COMMIT
53144
+ Migrating to AddScopeToHosts (20111210000000)
53145
+  (0.2ms) BEGIN
53146
+  (0.3ms) ALTER TABLE "hosts" ADD COLUMN "scope" text
53147
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20111210000000')
53148
+  (0.3ms) COMMIT
53149
+ Migrating to AddVirtualHostToHosts (20120126110000)
53150
+  (0.1ms) BEGIN
53151
+  (0.2ms) ALTER TABLE "hosts" ADD COLUMN "virtual_host" text
53152
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120126110000')
53153
+  (0.3ms) COMMIT
53154
+ Migrating to RenameWorkspaceMembers (20120411173220)
53155
+  (0.1ms) BEGIN
53156
+  (0.2ms) ALTER TABLE "project_members" RENAME TO "workspace_members"
53157
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120411173220')
53158
+  (0.3ms) COMMIT
53159
+ Migrating to AddCounterCachesToHosts (20120601152442)
53160
+  (0.1ms) BEGIN
53161
+  (4.8ms) ALTER TABLE "hosts" ADD COLUMN "note_count" integer DEFAULT 0
53162
+  (4.8ms) ALTER TABLE "hosts" ADD COLUMN "vuln_count" integer DEFAULT 0
53163
+  (4.8ms) ALTER TABLE "hosts" ADD COLUMN "service_count" integer DEFAULT 0
53164
+ Mdm::Host Load (0.7ms) SELECT "hosts".* FROM "hosts" 
53165
+  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120601152442')
53166
+  (3.4ms) COMMIT
53167
+ Migrating to AddVulnDetails (20120625000000)
53168
+  (0.4ms) BEGIN
53169
+  (4.0ms) CREATE TABLE "vuln_details" ("id" serial primary key, "vuln_id" integer, "cvss_score" float, "cvss_vector" character varying(255), "title" character varying(255), "description" text, "solution" text, "proof" bytea, "nx_console_id" integer, "nx_device_id" integer, "nx_vuln_id" character varying(255), "nx_severity" float, "nx_pci_severity" float, "nx_published" timestamp, "nx_added" timestamp, "nx_modified" timestamp, "nx_tags" text) 
53170
+  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000000')
53171
+  (0.5ms) COMMIT
53172
+ Migrating to AddHostDetails (20120625000001)
53173
+  (0.2ms) BEGIN
53174
+  (2.5ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer) 
53175
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000001')
53176
+  (0.4ms) COMMIT
53177
+ Migrating to ExpandDetails (20120625000002)
53178
+  (0.1ms) BEGIN
53179
+  (0.2ms) ALTER TABLE "vuln_details" ADD COLUMN "nx_vuln_status" text
53180
+  (0.2ms) ALTER TABLE "vuln_details" ADD COLUMN "nx_proof_key" text
53181
+  (0.2ms) ALTER TABLE "vuln_details" ADD COLUMN "src" character varying(255)
53182
+  (0.2ms) ALTER TABLE "host_details" ADD COLUMN "src" character varying(255)
53183
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000002')
53184
+  (0.3ms) COMMIT
53185
+ Migrating to ExpandDetails2 (20120625000003)
53186
+  (0.1ms) BEGIN
53187
+  (1.1ms) ALTER TABLE "host_details" ADD COLUMN "nx_site_name" character varying(255)
53188
+  (0.2ms) ALTER TABLE "host_details" ADD COLUMN "nx_site_importance" character varying(255)
53189
+  (0.2ms) ALTER TABLE "host_details" ADD COLUMN "nx_scan_template" character varying(255)
53190
+  (0.2ms) ALTER TABLE "host_details" ADD COLUMN "nx_risk_score" float
53191
+  (0.2ms) ALTER TABLE "vuln_details" ADD COLUMN "nx_scan_id" integer
53192
+  (0.2ms) ALTER TABLE "vuln_details" ADD COLUMN "nx_vulnerable_since" timestamp
53193
+  (0.2ms) ALTER TABLE "vuln_details" ADD COLUMN "nx_pci_compliance_status" character varying(255)
53194
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000003')
53195
+  (0.3ms) COMMIT
53196
+ Migrating to AddVulnAttempts (20120625000004)
53197
+  (0.1ms) BEGIN
53198
+  (2.6ms) CREATE TABLE "vuln_attempts" ("id" serial primary key, "vuln_id" integer, "attempted_at" timestamp, "exploited" boolean, "fail_reason" character varying(255), "username" character varying(255), "module" text, "session_id" integer, "loot_id" integer)
53199
+  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000004')
53200
+  (0.3ms) COMMIT
53201
+ Migrating to AddVulnAndHostCounterCaches (20120625000005)
53202
+  (0.2ms) BEGIN
53203
+  (4.9ms) ALTER TABLE "hosts" ADD COLUMN "host_detail_count" integer DEFAULT 0
53204
+  (2.8ms) ALTER TABLE "vulns" ADD COLUMN "vuln_detail_count" integer DEFAULT 0
53205
+  (2.7ms) ALTER TABLE "vulns" ADD COLUMN "vuln_attempt_count" integer DEFAULT 0
53206
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000005')
53207
+  (2.4ms) COMMIT
53208
+ Migrating to AddModuleDetails (20120625000006)
53209
+  (0.2ms) BEGIN
53210
+  (3.0ms) CREATE TABLE "module_details" ("id" serial primary key, "mtime" timestamp, "file" text, "mtype" character varying(255), "refname" text, "fullname" text, "name" text, "rank" integer, "description" text, "license" character varying(255), "privileged" boolean, "disclosure_date" timestamp, "default_target" integer, "default_action" text, "stance" character varying(255), "ready" boolean)
53211
+  (0.6ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")
53212
+  (0.5ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")
53213
+  (0.6ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")
53214
+  (0.6ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")
53215
+  (2.3ms) CREATE TABLE "module_authors" ("id" serial primary key, "module_detail_id" integer, "name" text, "email" text) 
53216
+  (0.6ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("module_detail_id")
53217
+  (2.4ms) CREATE TABLE "module_mixins" ("id" serial primary key, "module_detail_id" integer, "name" text) 
53218
+  (0.6ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("module_detail_id")
53219
+  (2.1ms) CREATE TABLE "module_targets" ("id" serial primary key, "module_detail_id" integer, "index" integer, "name" text) 
53220
+  (0.6ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("module_detail_id")
53221
+  (2.2ms) CREATE TABLE "module_actions" ("id" serial primary key, "module_detail_id" integer, "name" text) 
53222
+  (0.6ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("module_detail_id")
53223
+  (2.2ms) CREATE TABLE "module_refs" ("id" serial primary key, "module_detail_id" integer, "name" text) 
53224
+  (0.6ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("module_detail_id")
53225
+  (0.6ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")
53226
+  (2.4ms) CREATE TABLE "module_archs" ("id" serial primary key, "module_detail_id" integer, "name" text)
53227
+  (0.6ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("module_detail_id")
53228
+  (2.1ms) CREATE TABLE "module_platforms" ("id" serial primary key, "module_detail_id" integer, "name" text)
53229
+  (0.6ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("module_detail_id")
53230
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000006')
53231
+  (0.9ms) COMMIT
53232
+ Migrating to AddExploitAttempts (20120625000007)
53233
+  (0.5ms) BEGIN
53234
+  (2.6ms) CREATE TABLE "exploit_attempts" ("id" serial primary key, "host_id" integer, "service_id" integer, "vuln_id" integer, "attempted_at" timestamp, "exploited" boolean, "fail_reason" character varying(255), "username" character varying(255), "module" text, "session_id" integer, "loot_id" integer, "port" integer, "proto" character varying(255)) 
53235
+  (4.7ms) ALTER TABLE "hosts" ADD COLUMN "exploit_attempt_count" integer DEFAULT 0
53236
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000007')
53237
+  (1.6ms) COMMIT
53238
+ Migrating to AddFailMessage (20120625000008)
53239
+  (0.3ms) BEGIN
53240
+  (0.4ms) ALTER TABLE "vuln_attempts" ADD COLUMN "fail_detail" text
53241
+  (0.4ms) ALTER TABLE "exploit_attempts" ADD COLUMN "fail_detail" text
53242
+  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000008')
53243
+  (0.4ms) COMMIT
53244
+ Migrating to AddOwnerAndPayloadToWebVulns (20120718202805)
53245
+  (0.1ms) BEGIN
53246
+  (0.4ms) ALTER TABLE "web_vulns" ADD COLUMN "owner" character varying(255)
53247
+  (0.3ms) ALTER TABLE "web_vulns" ADD COLUMN "payload" text
53248
+  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120718202805')
53249
+  (0.3ms) COMMIT
53250
+ Migrating to ChangeRequiredColumnsToNullFalseInWebVulns (20130228214900)
53251
+  (0.1ms) BEGIN
53252
+  (0.4ms) ALTER TABLE "web_vulns" ALTER "category" SET NOT NULL
53253
+  (0.2ms) ALTER TABLE "web_vulns" ALTER "confidence" SET NOT NULL
53254
+  (0.2ms) ALTER TABLE "web_vulns" ALTER "method" SET NOT NULL
53255
+  (0.3ms) ALTER TABLE "web_vulns" ALTER "name" SET NOT NULL
53256
+  (0.3ms) ALTER TABLE "web_vulns" ALTER "params" SET NOT NULL
53257
+  (0.2ms) ALTER TABLE "web_vulns" ALTER "path" SET NOT NULL
53258
+  (0.2ms) ALTER TABLE "web_vulns" ALTER "pname" SET NOT NULL
53259
+  (0.2ms) ALTER TABLE "web_vulns" ALTER "proof" SET NOT NULL
53260
+  (0.3ms) ALTER TABLE "web_vulns" ALTER "risk" SET NOT NULL
53261
+  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130228214900')
53262
+  (0.3ms) COMMIT
53263
+ Migrating to ChangeForeignKeyInModuleActions (20130412154159)
53264
+  (0.1ms) BEGIN
53265
+  (0.3ms) ALTER TABLE "module_actions" RENAME COLUMN "module_detail_id" TO "detail_id"
53266
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130412154159')
53267
+  (0.3ms) COMMIT
53268
+ Migrating to ChangeForeignKeyInModuleArchs (20130412171844)
53269
+  (0.1ms) BEGIN
53270
+  (0.2ms) ALTER TABLE "module_archs" RENAME COLUMN "module_detail_id" TO "detail_id"
53271
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130412171844')
53272
+  (0.2ms) COMMIT
53273
+ Migrating to ChangeForeignKeyInModuleAuthors (20130412173121)
53274
+  (0.1ms) BEGIN
53275
+  (0.2ms) ALTER TABLE "module_authors" RENAME COLUMN "module_detail_id" TO "detail_id"
53276
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130412173121')
53277
+  (0.2ms) COMMIT
53278
+ Migrating to ChangeForeignKeyInModuleMixins (20130412173640)
53279
+  (0.1ms) BEGIN
53280
+  (0.2ms) ALTER TABLE "module_mixins" RENAME COLUMN "module_detail_id" TO "detail_id"
53281
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130412173640')
53282
+  (0.2ms) COMMIT
53283
+ Migrating to ChangeForeignKeyInModulePlatforms (20130412174254)
53284
+  (0.1ms) BEGIN
53285
+  (0.2ms) ALTER TABLE "module_platforms" RENAME COLUMN "module_detail_id" TO "detail_id"
53286
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130412174254')
53287
+  (0.2ms) COMMIT
53288
+ Migrating to ChangeForeignKeyInModuleRefs (20130412174719)
53289
+  (0.1ms) BEGIN
53290
+  (0.2ms) ALTER TABLE "module_refs" RENAME COLUMN "module_detail_id" TO "detail_id"
53291
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130412174719')
53292
+  (0.3ms) COMMIT
53293
+ Migrating to ChangeForeignKeyInModuleTargets (20130412175040)
53294
+  (0.1ms) BEGIN
53295
+  (0.2ms) ALTER TABLE "module_targets" RENAME COLUMN "module_detail_id" TO "detail_id"
53296
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130412175040')
53297
+  (0.3ms) COMMIT
53298
+ Migrating to AddCredsCounterCache (20130423211152)
53299
+  (0.1ms) BEGIN
53300
+  (5.4ms) ALTER TABLE "hosts" ADD COLUMN "cred_count" integer DEFAULT 0
53301
+ Mdm::Cred Load (0.3ms) SELECT "creds".* FROM "creds" 
53302
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130423211152')
53303
+  (1.6ms) COMMIT
53304
+ Migrating to ChangeRequiredColumnsToNullFalseInHosts (20130430151353)
53305
+  (0.2ms) BEGIN
53306
+  (0.3ms) ALTER TABLE "hosts" ALTER "address" SET NOT NULL
53307
+  (0.2ms) ALTER TABLE "hosts" ALTER "workspace_id" SET NOT NULL
53308
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130430151353')
53309
+  (0.3ms) COMMIT
53310
+ Migrating to EnforceAddressUniquenessInWorkspaceInHosts (20130430162145)
53311
+  (0.1ms) BEGIN
53312
+  (0.8ms)
53313
+ SELECT workspace_id, address, count_addr
53314
+ FROM (
53315
+ SELECT workspace_id, address, COUNT(address) AS count_addr
53316
+ FROM hosts
53317
+ GROUP BY address, workspace_id
53318
+ ) X
53319
+ WHERE count_addr > 1
53320
+
53321
+  (0.2ms) DROP INDEX "index_hosts_on_address"
53322
+  (0.8ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")
53323
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130430162145')
53324
+  (0.5ms) COMMIT
53325
+ Migrating to RemoveCampaigns (20130510021637)
53326
+  (0.1ms) BEGIN
53327
+  (0.8ms) DROP TABLE "attachments"
53328
+  (0.2ms) DROP TABLE "attachments_email_templates"
53329
+  (0.8ms) DROP TABLE "email_addresses"
53330
+  (0.7ms) DROP TABLE "email_templates"
53331
+  (0.6ms) DROP TABLE "web_templates"
53332
+  (0.7ms) DROP TABLE "campaigns"
53333
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130510021637')
53334
+  (1.7ms) COMMIT
53335
+ Migrating to ChangeWebVulnsConfidenceToInteger (20130515164311)
53336
+  (0.2ms) BEGIN
53337
+  (4.0ms) ALTER TABLE web_vulns ALTER COLUMN confidence TYPE integer USING confidence::integer
53338
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130515164311')
53339
+  (0.9ms) COMMIT
53340
+ Migrating to ValidMdmWebVulnParams (20130515172727)
53341
+  (0.1ms) BEGIN
53342
+ Mdm::WebVuln Load (0.5ms) SELECT "web_vulns".* FROM "web_vulns" ORDER BY "web_vulns"."id" ASC LIMIT 1000
53343
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130515172727')
53344
+  (0.3ms) COMMIT
53345
+ Migrating to MakingVulnsRefsARealArModel (20130516204810)
53346
+  (0.1ms) BEGIN
53347
+  (2.1ms) ALTER TABLE "vulns_refs" ADD COLUMN "id" serial primary key
53348
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130516204810')
53349
+  (0.5ms) COMMIT
53350
+ Migrating to CreateTaskCreds (20130522001343)
53351
+  (0.1ms) BEGIN
53352
+  (1.5ms) CREATE TABLE "task_creds" ("id" serial primary key, "task_id" integer NOT NULL, "cred_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
53353
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130522001343')
53354
+  (0.3ms) COMMIT
53355
+ Migrating to CreateTaskHosts (20130522032517)
53356
+  (0.1ms) BEGIN
53357
+  (1.7ms) CREATE TABLE "task_hosts" ("id" serial primary key, "task_id" integer NOT NULL, "host_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
53358
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130522032517')
53359
+  (0.3ms) COMMIT
53360
+ Migrating to CreateTaskServices (20130522041110)
53361
+  (0.1ms) BEGIN
53362
+  (2.5ms) CREATE TABLE "task_services" ("id" serial primary key, "task_id" integer NOT NULL, "service_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
53363
+  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130522041110')
53364
+  (0.5ms) COMMIT
53365
+ Migrating to RemoveCampaignIdFromClients (20130525015035)
53366
+  (0.2ms) BEGIN
53367
+  (0.4ms) ALTER TABLE "clients" DROP "campaign_id"
53368
+  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130525015035')
53369
+  (0.4ms) COMMIT
53370
+ Migrating to DropTableImportedCreds (20130525212420)
53371
+  (0.1ms) BEGIN
53372
+  (1.4ms) DROP TABLE "imported_creds"
53373
+  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130525212420')
53374
+  (1.0ms) COMMIT
53375
+ Migrating to MakingHostTagsARealArModel (20130531144949)
53376
+  (0.1ms) BEGIN
53377
+  (3.4ms) ALTER TABLE "hosts_tags" ADD COLUMN "id" serial primary key
53378
+  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130531144949')
53379
+  (0.7ms) COMMIT
53380
+ Migrating to CreateTaskSessions (20130604145732)
53381
+  (0.2ms) BEGIN
53382
+  (2.6ms) CREATE TABLE "task_sessions" ("id" serial primary key, "task_id" integer NOT NULL, "session_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
53383
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130604145732')
53384
+  (0.4ms) COMMIT
53385
+ Migrating to RemovePnameValidation (20130717150737)
53386
+  (0.2ms) BEGIN
53387
+  (0.3ms) ALTER TABLE "web_vulns" ALTER COLUMN "pname" TYPE text
53388
+  (0.2ms) ALTER TABLE "web_vulns" ALTER "pname" DROP NOT NULL
53389
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130717150737')
53390
+  (0.2ms) COMMIT
53391
+ Migrating to CreateMetasploitCredentialPublics (20140331173835)
53392
+  (0.1ms) BEGIN
53393
+  (2.3ms) CREATE TABLE "metasploit_credential_publics" ("id" serial primary key, "username" character varying(255) NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
53394
+  (0.6ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")
53395
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140331173835')
53396
+  (0.3ms) COMMIT
53397
+ Migrating to CreateMetasploitCredentialPrivates (20140407212345)
53398
+  (0.1ms) BEGIN
53399
+  (2.7ms) CREATE TABLE "metasploit_credential_privates" ("id" serial primary key, "type" character varying(255) NOT NULL, "data" text NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
53400
+  (0.6ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")
53401
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140407212345')
53402
+  (0.3ms) COMMIT
53403
+ Migrating to CreateMetasploitCredentialRealms (20140410132401)
53404
+  (0.2ms) BEGIN
53405
+  (2.2ms) CREATE TABLE "metasploit_credential_realms" ("id" serial primary key, "key" character varying(255) NOT NULL, "value" character varying(255) NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
53406
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140410132401')
53407
+  (0.4ms) COMMIT
53408
+ Migrating to UniqueMetasploitCredentialRealms (20140410161611)
53409
+  (0.1ms) BEGIN
53410
+  (0.6ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")
53411
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140410161611')
53412
+  (0.2ms) COMMIT
53413
+ Migrating to CreateMetasploitCredentialOriginManuals (20140410191213)
53414
+  (0.1ms) BEGIN
53415
+  (1.4ms) CREATE TABLE "metasploit_credential_origin_manuals" ("id" serial primary key, "user_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
53416
+  (0.5ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")
53417
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140410191213')
53418
+  (0.3ms) COMMIT
53419
+ Migrating to CreateMetasploitCredentialOriginImports (20140410205410)
53420
+  (0.1ms) BEGIN
53421
+  (2.5ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
53422
+  (0.6ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")
53423
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140410205410')
53424
+  (0.3ms) COMMIT
53425
+ Migrating to CreateMetasploitCredentialOriginSessions (20140411142102)
53426
+  (0.1ms) BEGIN
53427
+  (2.4ms) CREATE TABLE "metasploit_credential_origin_sessions" ("id" serial primary key, "post_reference_name" text NOT NULL, "session_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
53428
+  (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")
53429
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140411142102')
53430
+  (0.4ms) COMMIT
53431
+ Migrating to CreateMetasploitCredentialOriginServices (20140411205325)
53432
+  (0.1ms) BEGIN
53433
+  (2.2ms) CREATE TABLE "metasploit_credential_origin_services" ("id" serial primary key, "service_id" integer NOT NULL, "module_full_name" text NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
53434
+  (0.6ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")
53435
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140411205325')
53436
+  (0.3ms) COMMIT
53437
+ Migrating to CreateMetasploitCredentialCores (20140414192550)
53438
+  (0.2ms) BEGIN
53439
+  (1.7ms) CREATE TABLE "metasploit_credential_cores" ("id" serial primary key, "origin_id" integer NOT NULL, "origin_type" character varying(255) NOT NULL, "private_id" integer, "public_id" integer, "realm_id" integer, "workspace_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
53440
+  (1.0ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")
53441
+  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")
53442
+  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")
53443
+  (1.0ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")
53444
+  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")
53445
+  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140414192550')
53446
+  (0.5ms) COMMIT
53447
+ Migrating to CreateMetasploitCredentialLogins (20140417140933)
53448
+  (0.3ms) BEGIN
53449
+  (3.9ms) CREATE TABLE "metasploit_credential_logins" ("id" serial primary key, "core_id" integer NOT NULL, "service_id" integer NOT NULL, "access_level" character varying(255), "status" character varying(255) NOT NULL, "last_attempted_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
53450
+  (0.7ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")
53451
+  (0.6ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")
53452
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140417140933')
53453
+  (0.3ms) COMMIT
53454
+ Migrating to AddLoginsCounterCacheToCores (20140520140817)
53455
+  (0.2ms) BEGIN
53456
+  (3.7ms) ALTER TABLE "metasploit_credential_cores" ADD COLUMN "logins_count" integer DEFAULT 0
53457
+ Metasploit::Credential::Core Load (0.4ms) SELECT "metasploit_credential_cores".* FROM "metasploit_credential_cores"
53458
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140520140817')
53459
+  (0.9ms) COMMIT
53460
+ Migrating to AddJtrFormatToMetasploitCredentialPrivates (20140603163708)
53461
+  (0.1ms) BEGIN
53462
+  (0.2ms) ALTER TABLE "metasploit_credential_privates" ADD COLUMN "jtr_format" character varying(255)
53463
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140603163708')
53464
+  (0.3ms) COMMIT
53465
+ Migrating to CreateMetasploitCredentialOriginCrackedPasswords (20140605173747)
53466
+  (0.1ms) BEGIN
53467
+  (1.6ms) CREATE TABLE "metasploit_credential_origin_cracked_passwords" ("id" serial primary key, "metasploit_credential_core_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
53468
+  (0.5ms) CREATE INDEX "originating_credential_cores" ON "metasploit_credential_origin_cracked_passwords" ("metasploit_credential_core_id")
53469
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140605173747')
53470
+  (0.4ms) COMMIT
53471
+ Migrating to CreateCredentialCoresTasksJoinTable (20140702184622)
53472
+  (0.1ms) BEGIN
53473
+  (0.5ms) CREATE TABLE "credential_cores_tasks" ("core_id" integer, "task_id" integer) 
53474
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140702184622')
53475
+  (0.3ms) COMMIT
53476
+ Migrating to CreateCredentialLoginsTasksJoinTable (20140703144541)
53477
+  (0.1ms) BEGIN
53478
+  (0.4ms) CREATE TABLE "credential_logins_tasks" ("login_id" integer, "task_id" integer) 
53479
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140703144541')
53480
+  (0.3ms) COMMIT
53481
+ Migrating to OldCredsToNewCreds (20140722174919)
53482
+  (0.1ms) BEGIN
53483
+ Mdm::Workspace Load (0.3ms) SELECT "workspaces".* FROM "workspaces" 
53484
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140722174919')
53485
+  (0.4ms) COMMIT
53486
+  (1.0ms) SELECT version FROM schema_migrations ORDER BY version
53487
+ Connecting to database specified by database.yml
53488
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
53489
+  (1.2ms) SELECT version FROM schema_migrations ORDER BY version
53490
+  (112.2ms) DROP DATABASE IF EXISTS "metasploit_credential_test"
53491
+  (233.5ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'
53492
+ Connecting to database specified by database.yml
53493
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
53494
+  (1.2ms) SELECT version FROM schema_migrations ORDER BY version
53495
+  (119.7ms) DROP DATABASE IF EXISTS "metasploit_credential_test"
53496
+  (223.9ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'
53497
+ Connecting to database specified by database.yml
53498
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
53499
+  (1.2ms) SELECT version FROM schema_migrations ORDER BY version
53500
+  (119.7ms) DROP DATABASE IF EXISTS "metasploit_credential_test"
53501
+  (222.5ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'
53502
+ Connecting to database specified by database.yml
53503
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
53504
+  (1.1ms) SELECT version FROM schema_migrations ORDER BY version
53505
+  (120.0ms) DROP DATABASE IF EXISTS "metasploit_credential_test"
53506
+  (222.9ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'