Connecting to database specified by database.yml Connecting to database specified by database.yml  (70.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (4.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Connecting to database specified by database.yml  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Connecting to database specified by database.yml Connecting to database specified by database.yml  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateMetasploitCredentialPublics (20140331173835)  (0.1ms) BEGIN  (35.9ms) CREATE TABLE "metasploit_credential_publics" ("id" serial primary key, "username" character varying(255) NOT NULL, "workspace_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.2ms) ROLLBACK Connecting to database specified by database.yml  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateMetasploitCredentialPublics (20140331173835)  (0.1ms) BEGIN  (4.2ms) CREATE TABLE "metasploit_credential_publics" ("id" serial primary key, "username" character varying(255) NOT NULL, "workspace_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_publics" ON "metasploit_credential_publics" ("workspace_id", "username")  (1.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140331173835')  (0.4ms) COMMIT  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" Migrating to CreateMetasploitCredentialPublics (20140331173835)  (0.1ms) BEGIN  (0.2ms) ROLLBACK Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (5027.1ms) DROP DATABASE IF EXISTS "metasploit_credential_test" PG::ObjectInUse: ERROR: database "metasploit_credential_test" is being accessed by other users DETAIL: There is 1 other session using the database. : DROP DATABASE IF EXISTS "metasploit_credential_test" Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (5027.8ms) DROP DATABASE IF EXISTS "metasploit_credential_test" PG::ObjectInUse: ERROR: database "metasploit_credential_test" is being accessed by other users DETAIL: There is 1 other session using the database. : DROP DATABASE IF EXISTS "metasploit_credential_test" Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (126.9ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (355.5ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (4.4ms) CREATE TABLE "metasploit_credential_publics" ("id" serial primary key, "username" character varying(255) NOT NULL, "workspace_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_metasploit_credential_publics" ON "metasploit_credential_publics" ("workspace_id", "username")  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835') Connecting to database specified by database.yml  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateTables (0)  (0.1ms) BEGIN  (15.4ms) 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))   (5.1ms) CREATE UNIQUE INDEX "index_hosts_on_address" ON "hosts" ("address")  (2.5ms) 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))   (2.5ms) 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))  (2.3ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created" timestamp, "name" character varying(255), "data" text)   (2.4ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created" timestamp, "name" character varying(512))  (2.7ms) CREATE TABLE "vulns_refs" ("ref_id" integer, "vuln_id" integer)   (2.8ms) CREATE TABLE "notes" ("id" serial primary key, "host_id" integer, "created" timestamp, "ntype" character varying(512), "data" text)  (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ('0')  (1.0ms) COMMIT Migrating to AddWmapTables (1)  (0.4ms) BEGIN  (24.9ms) 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)  (4.7ms) 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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('1')  (0.5ms) COMMIT Migrating to AddWorkspaces (2)  (0.2ms) BEGIN  (7.2ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (6.8ms) ALTER TABLE "hosts" ADD COLUMN "workspace_id" integer  (13.1ms) DROP INDEX "index_hosts_on_address"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('2')  (0.9ms) COMMIT Migrating to MoveNotes (3)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "notes" DROP "host_id"  (19.7ms) ALTER TABLE "notes" ADD COLUMN "workspace_id" integer DEFAULT 1 NOT NULL  (0.4ms) ALTER TABLE "notes" ADD COLUMN "service_id" integer  (0.2ms) ALTER TABLE "notes" ADD COLUMN "host_id" integer  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('3')  (0.8ms) COMMIT Migrating to AddEventsTable (4)  (0.1ms) BEGIN  (14.6ms) 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))  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('4')  (6.3ms) COMMIT Migrating to ExpandInfo (5)  (4.9ms) BEGIN  (0.4ms) ALTER TABLE "events" DROP "info"  (0.3ms) ALTER TABLE "events" ADD COLUMN "info" character varying(4096)  (0.2ms) ALTER TABLE "notes" DROP "data"  (0.2ms) ALTER TABLE "notes" ADD COLUMN "data" character varying(4096)  (0.2ms) ALTER TABLE "vulns" DROP "data"  (0.2ms) ALTER TABLE "vulns" ADD COLUMN "data" character varying(4096)  (0.2ms) ALTER TABLE "hosts" DROP "info"  (0.2ms) ALTER TABLE "hosts" ADD COLUMN "info" character varying(4096)  (0.2ms) ALTER TABLE "services" DROP "info"  (0.2ms) ALTER TABLE "services" ADD COLUMN "info" character varying(4096)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('5')  (6.1ms) COMMIT Migrating to AddTimestamps (6)  (0.1ms) BEGIN  (6.6ms) ALTER TABLE "clients" RENAME COLUMN "created" TO "created_at"  (0.3ms) ALTER TABLE "hosts" RENAME COLUMN "created" TO "created_at"  (0.2ms) ALTER TABLE "notes" RENAME COLUMN "created" TO "created_at"  (0.2ms) ALTER TABLE "refs" RENAME COLUMN "created" TO "created_at"  (0.2ms) ALTER TABLE "services" RENAME COLUMN "created" TO "created_at"  (0.2ms) ALTER TABLE "vulns" RENAME COLUMN "created" TO "created_at"  (0.2ms) ALTER TABLE "wmap_requests" RENAME COLUMN "created" TO "created_at"  (0.2ms) ALTER TABLE "wmap_targets" ADD COLUMN "created_at" timestamp  (0.2ms) ALTER TABLE "clients" ADD COLUMN "updated_at" timestamp  (0.2ms) ALTER TABLE "events" ADD COLUMN "updated_at" timestamp  (0.2ms) ALTER TABLE "hosts" ADD COLUMN "updated_at" timestamp  (0.2ms) ALTER TABLE "notes" ADD COLUMN "updated_at" timestamp  (0.2ms) ALTER TABLE "refs" ADD COLUMN "updated_at" timestamp  (0.2ms) ALTER TABLE "services" ADD COLUMN "updated_at" timestamp  (0.2ms) ALTER TABLE "vulns" ADD COLUMN "updated_at" timestamp  (0.2ms) ALTER TABLE "wmap_requests" ADD COLUMN "updated_at" timestamp  (0.4ms) ALTER TABLE "wmap_targets" ADD COLUMN "updated_at" timestamp  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('6')  (5.9ms) COMMIT Migrating to AddLoots (7)  (0.3ms) BEGIN  (21.0ms) 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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('7')  (5.0ms) COMMIT Migrating to CreateUsers (8)  (0.6ms) BEGIN  (14.6ms) 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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('8')  (6.1ms) COMMIT Migrating to AddLootsCtype (9)  (4.3ms) BEGIN  (0.3ms) ALTER TABLE "loots" ADD COLUMN "content_type" character varying(255)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('9')  (5.6ms) COMMIT Migrating to AddAlertFields (10)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "notes" ADD COLUMN "critical" boolean  (0.2ms) ALTER TABLE "notes" ADD COLUMN "seen" boolean  (0.2ms) ALTER TABLE "events" ADD COLUMN "critical" boolean  (0.2ms) ALTER TABLE "events" ADD COLUMN "seen" boolean  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('10')  (5.6ms) COMMIT Migrating to AddReports (11)  (0.1ms) BEGIN  (7.6ms) 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)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('11')  (0.5ms) COMMIT Migrating to AddTasks (12)  (0.1ms) BEGIN  (14.4ms) 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)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('12')  (5.9ms) COMMIT Migrating to AddTasksResult (13)  (4.8ms) BEGIN  (0.3ms) ALTER TABLE "tasks" ADD COLUMN "result" text  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('13')  (5.6ms) COMMIT Migrating to AddLootsFields (14)  (0.2ms) BEGIN  (0.4ms) ALTER TABLE "loots" ADD COLUMN "name" text  (0.2ms) ALTER TABLE "loots" ADD COLUMN "info" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('14')  (6.2ms) COMMIT Migrating to RenameUser (15)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "events" DROP "user"  (0.2ms) ALTER TABLE "events" ADD COLUMN "username" character varying(255)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('15')  (6.0ms) COMMIT Migrating to AddHostPurpose (16)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "hosts" ADD COLUMN "purpose" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('16')  (6.2ms) COMMIT Migrating to ExpandInfo2 (17)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "events" DROP "info"  (0.2ms) ALTER TABLE "events" ADD COLUMN "info" character varying(65536)  (0.2ms) ALTER TABLE "notes" DROP "data"  (0.2ms) ALTER TABLE "notes" ADD COLUMN "data" character varying(65536)  (0.2ms) ALTER TABLE "vulns" DROP "data"  (0.2ms) ALTER TABLE "vulns" ADD COLUMN "data" character varying(65536)  (0.2ms) ALTER TABLE "hosts" DROP "info"  (0.2ms) ALTER TABLE "hosts" ADD COLUMN "info" character varying(65536)  (0.2ms) ALTER TABLE "services" DROP "info"  (0.2ms) ALTER TABLE "services" ADD COLUMN "info" character varying(65536)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('17')  (5.9ms) COMMIT Migrating to AddWorkspaceUserInfo (18)  (0.2ms) BEGIN  (6.8ms) ALTER TABLE "workspaces" ADD COLUMN "boundary" character varying(4096)  (0.3ms) ALTER TABLE "users" ADD COLUMN "fullname" character varying(255)  (0.2ms) ALTER TABLE "users" ADD COLUMN "email" character varying(255)  (0.2ms) ALTER TABLE "users" ADD COLUMN "phone" character varying(255)  (0.2ms) ALTER TABLE "users" ADD COLUMN "company" character varying(255)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('18')  (6.2ms) COMMIT Migrating to AddWorkspaceDesc (19)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "workspaces" ADD COLUMN "description" character varying(4096)  (0.2ms) ALTER TABLE "hosts" ADD COLUMN "comments" character varying(4096)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('19')  (5.9ms) COMMIT Migrating to AddUserPreferences (20)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "users" ADD COLUMN "prefs" character varying(524288)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20')  (5.8ms) COMMIT Migrating to StandardizeInfoAndData (21)  (0.4ms) BEGIN  (0.4ms) ALTER TABLE "vulns" DROP "data"  (0.2ms) ALTER TABLE "vulns" ADD COLUMN "info" character varying(65536)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('21')  (6.0ms) COMMIT Migrating to EnlargeEventInfo (22)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "events" ALTER COLUMN "info" TYPE text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('22')  (6.1ms) COMMIT Migrating to AddReportDownloadedAt (23)  (0.2ms) BEGIN  (0.4ms) ALTER TABLE "reports" ADD COLUMN "downloaded_at" timestamp  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('23')  (6.2ms) COMMIT Migrating to ConvertServiceInfoToText (24)  (0.3ms) BEGIN  (0.4ms) ALTER TABLE "services" ALTER COLUMN "info" TYPE text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('24')  (6.0ms) COMMIT Migrating to AddUserAdmin (25)  (0.3ms) BEGIN  (20.8ms) ALTER TABLE "users" ADD COLUMN "admin" boolean DEFAULT 't'  (0.5ms) CREATE TABLE "project_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('25')  (5.2ms) COMMIT Migrating to AddCredsTable (26)  (0.3ms) BEGIN  (26.2ms) 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))  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('26')  (0.5ms) COMMIT Migrating to MigrateCredData (20100819123300)  (0.2ms) BEGIN Mdm::Note Load (0.3ms) SELECT "notes".* FROM "notes" Mdm::Note Load (0.2ms) SELECT "notes".* FROM "notes"   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100819123300')  (5.5ms) COMMIT Migrating to AddExploitedTable (20100824151500)  (0.1ms) BEGIN  (14.5ms) 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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100824151500')  (6.2ms) COMMIT Migrating to AddOwnerToWorkspaces (20100908001428)  (4.9ms) BEGIN  (0.3ms) ALTER TABLE "workspaces" ADD COLUMN "owner_id" integer  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100908001428')  (6.1ms) COMMIT Migrating to AddReportTemplates (20100911122000)  (0.1ms) BEGIN  (14.6ms) 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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100911122000')  (6.2ms) COMMIT Migrating to RequireAdminFlag (20100916151530)  (4.7ms) BEGIN SQL (0.3ms) UPDATE "users" SET "admin" = 't' WHERE "users"."admin" IS NULL  (0.4ms) ALTER TABLE "users" ALTER COLUMN "admin" TYPE boolean  (0.2ms) ALTER TABLE "users" ALTER COLUMN "admin" SET DEFAULT 't'  (0.2ms) UPDATE "users" SET "admin"='t' WHERE "admin" IS NULL  (0.2ms) ALTER TABLE "users" ALTER "admin" SET NOT NULL  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100916151530')  (6.1ms) COMMIT Migrating to AddCampaignsAndTemplates (20100916175000)  (0.2ms) BEGIN  (14.4ms) 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)   (12.4ms) CREATE TABLE "email_templates" ("id" serial primary key, "name" character varying(512), "subject" character varying(1024), "body" text, "parent_id" integer, "campaign_id" integer)  (2.6ms) 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)   (1.8ms) CREATE TABLE "attachments_email_templates" ("attachment_id" integer, "email_template_id" integer)  (2.5ms) 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)   (2.3ms) CREATE TABLE "web_templates" ("id" serial primary key, "name" character varying(512), "title" character varying(512), "body" character varying(524288), "campaign_id" integer)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100916175000')  (0.8ms) COMMIT Migrating to AddGenerateExeColumn (20100920012100)  (0.3ms) BEGIN  (14.6ms) ALTER TABLE "email_templates" ADD COLUMN "generate_exe" boolean DEFAULT 'f' NOT NULL  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100920012100')  (6.5ms) COMMIT Migrating to AddTemplatePrefs (20100926214000)  (0.2ms) BEGIN  (0.4ms) ALTER TABLE "email_templates" DROP "generate_exe"  (0.2ms) ALTER TABLE "email_templates" ADD COLUMN "prefs" text  (0.2ms) ALTER TABLE "web_templates" ADD COLUMN "prefs" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100926214000')  (5.8ms) COMMIT Migrating to AddWebTables (20101001000000)  (0.2ms) BEGIN  (14.8ms) 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)  (9.2ms) 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)   (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)  (4.1ms) 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))   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101001000000')  (0.9ms) COMMIT Migrating to AddQuery (20101002000000)  (0.5ms) BEGIN  (0.5ms) ALTER TABLE "web_forms" ADD COLUMN "query" text  (0.4ms) ALTER TABLE "web_vulns" ADD COLUMN "query" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101002000000')  (6.0ms) COMMIT Migrating to AddVulnInfo (20101007000000)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "web_vulns" ADD COLUMN "category" text  (0.2ms) ALTER TABLE "web_vulns" ADD COLUMN "confidence" text  (0.2ms) ALTER TABLE "web_vulns" ADD COLUMN "description" text  (0.2ms) ALTER TABLE "web_vulns" ADD COLUMN "blame" text  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101007000000')  (5.7ms) COMMIT Migrating to AddClientsToCampaigns (20101008111800)  (0.2ms) BEGIN  (0.4ms) ALTER TABLE "clients" ADD COLUMN "campaign_id" integer  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101008111800')  (6.2ms) COMMIT Migrating to AddCampaignAttachments (20101009023300)  (0.2ms) BEGIN  (0.4ms) ALTER TABLE "attachments" ADD COLUMN "campaign_id" integer  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101009023300')  (5.8ms) COMMIT Migrating to AddImportedCreds (20101104135100)  (0.2ms) BEGIN  (14.1ms) 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')   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101104135100')  (6.1ms) COMMIT Migrating to FixWebTables (20101203000000)  (5.0ms) BEGIN  (0.3ms) ALTER TABLE "web_pages" ALTER COLUMN "path" TYPE text  (0.2ms) ALTER TABLE "web_pages" ALTER COLUMN "query" TYPE text  (0.2ms) ALTER TABLE "web_pages" ALTER COLUMN "cookie" TYPE text  (0.2ms) ALTER TABLE "web_pages" ALTER COLUMN "auth" TYPE text  (0.2ms) ALTER TABLE "web_pages" ALTER COLUMN "ctype" TYPE text  (0.2ms) ALTER TABLE "web_pages" ALTER COLUMN "location" TYPE text  (0.2ms) ALTER TABLE "web_pages" ALTER COLUMN "path" TYPE text  (0.2ms) ALTER TABLE "web_vulns" ALTER COLUMN "path" TYPE text  (0.2ms) ALTER TABLE "web_vulns" ALTER COLUMN "pname" TYPE text  (0.2ms) ALTER TABLE "web_pages" ADD COLUMN "request" text  (0.2ms) ALTER TABLE "web_vulns" ADD COLUMN "request" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101203000000')  (5.8ms) COMMIT Migrating to ExpandHostComment (20101203000001)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "hosts" ALTER COLUMN "comments" TYPE text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101203000001')  (5.8ms) COMMIT Migrating to AddLimitToNetworkToWorkspaces (20101206212033)  (0.2ms) BEGIN  (14.9ms) ALTER TABLE "workspaces" ADD COLUMN "limit_to_network" boolean DEFAULT 'f' NOT NULL  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101206212033')  (11.7ms) COMMIT Migrating to AddModuleUuidToTasks (20110112154300)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "tasks" ADD COLUMN "module_uuid" character varying(8)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110112154300')  (5.4ms) COMMIT Migrating to AddHostTags (20110204112800)  (0.2ms) BEGIN  (14.3ms) 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)   (0.7ms) CREATE TABLE "hosts_tags" ("host_id" integer, "tag_id" integer)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110204112800')  (6.3ms) COMMIT Migrating to AddSessionTable (20110317144932)  (4.5ms) BEGIN  (14.7ms) 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))  (7.8ms) 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)  AddSessionTable::Event Load (1.3ms) SELECT "events".* FROM "events" WHERE "events"."name" = 'session_close' AddSessionTable::Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."name" = 'session_open' AddSessionTable::Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."name" = 'session_command' AddSessionTable::Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."name" = 'session_output' AddSessionTable::Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."name" = 'session_upload' AddSessionTable::Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."name" = 'session_download'  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110317144932')  (0.4ms) COMMIT Migrating to AddLocalIdToSessionTable (20110414180600)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "sessions" ADD COLUMN "local_id" integer  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110414180600')  (5.4ms) COMMIT Migrating to AddRoutesTable (20110415175705)  (0.1ms) BEGIN  (14.7ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))   (0.4ms) ALTER TABLE "sessions" DROP "routes"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110415175705')  (6.0ms) COMMIT Migrating to ConvertBinary (20110422000000)  (0.3ms) BEGIN  (0.3ms) ALTER TABLE "web_pages" RENAME COLUMN "body" TO "body_text"  (0.2ms) ALTER TABLE "web_pages" RENAME COLUMN "request" TO "request_text"  (0.2ms) ALTER TABLE "web_vulns" RENAME COLUMN "request" TO "request_text"  (0.2ms) ALTER TABLE "web_vulns" RENAME COLUMN "proof" TO "proof_text"  (0.2ms) ALTER TABLE "web_pages" ADD COLUMN "body" bytea  (0.2ms) ALTER TABLE "web_pages" ADD COLUMN "request" bytea  (0.2ms) ALTER TABLE "web_vulns" ADD COLUMN "request" bytea  (0.2ms) ALTER TABLE "web_vulns" ADD COLUMN "proof" bytea ConvertBinary::WebPage Load (0.3ms) SELECT "web_pages".* FROM "web_pages" ConvertBinary::WebPage Load (0.2ms) SELECT "web_pages".* FROM "web_pages"  ConvertBinary::WebVuln Load (327.0ms) SELECT "web_vulns".* FROM "web_vulns" ConvertBinary::WebVuln Load (0.3ms) SELECT "web_vulns".* FROM "web_vulns"   (0.3ms) ALTER TABLE "web_pages" DROP "body_text"  (0.2ms) ALTER TABLE "web_pages" DROP "request_text"  (0.2ms) ALTER TABLE "web_vulns" DROP "request_text"  (0.4ms) ALTER TABLE "web_vulns" DROP "proof_text"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110422000000')  (2.0ms) COMMIT Migrating to AddLastSeenToSessions (20110425095900)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "sessions" ADD COLUMN "last_seen" timestamp  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110425095900')  (6.2ms) COMMIT Migrating to TrackSuccessfulExploits (20110513143900)  (0.2ms) BEGIN  (0.4ms) ALTER TABLE "vulns" ADD COLUMN "exploited_at" timestamp TrackSuccessfulExploits::ExploitedHost Load (0.3ms) SELECT "exploited_hosts".* FROM "exploited_hosts"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110513143900')  (5.7ms) COMMIT Migrating to RenameAndPruneNessusVulns (20110517160800)  (0.2ms) BEGIN RenameAndPruneNessusVulns::Vuln Load (0.4ms) SELECT "vulns".* FROM "vulns"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110517160800')  (6.0ms) COMMIT Migrating to AddTaskIdToReportsTable (20110527000000)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "reports" ADD COLUMN "task_id" integer  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110527000000')  (6.0ms) COMMIT Migrating to AddApiKeysTable (20110527000001)  (0.2ms) BEGIN  (14.1ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110527000001')  (6.3ms) COMMIT Migrating to AddMacrosTable (20110606000001)  (4.9ms) BEGIN  (14.0ms) 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)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110606000001')  (6.3ms) COMMIT Migrating to AddSettingsToTasksTable (20110622000000)  (5.0ms) BEGIN  (0.3ms) ALTER TABLE "tasks" ADD COLUMN "settings" bytea  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110622000000')  (6.1ms) COMMIT Migrating to AddListenersTable (20110624000001)  (0.3ms) BEGIN  (14.1ms) 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)  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110624000001')  (5.8ms) COMMIT Migrating to AddMacroToListenersTable (20110625000001)  (4.9ms) BEGIN  (0.5ms) ALTER TABLE "listeners" ADD COLUMN "macro" text  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110625000001')  (5.8ms) COMMIT Migrating to AddNexposeConsolesTable (20110630000001)  (0.2ms) BEGIN  (14.7ms) 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)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110630000001')  (6.0ms) COMMIT Migrating to AddNameToNexposeConsolesTable (20110630000002)  (4.5ms) BEGIN  (0.4ms) ALTER TABLE "nexpose_consoles" ADD COLUMN "name" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110630000002')  (6.2ms) COMMIT Migrating to AddProfilesTable (20110717000001)  (0.2ms) BEGIN  (20.5ms) 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)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110717000001')  (5.0ms) COMMIT Migrating to ExpandCredPtypeColumn (20110727163801)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "creds" ALTER COLUMN "ptype" TYPE character varying(256)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110727163801')  (6.2ms) COMMIT Migrating to AddInitialIndexes (20110730000001)  (0.3ms) BEGIN  (6.7ms) CREATE INDEX "index_hosts_on_address" ON "hosts" ("address")  (6.8ms) CREATE INDEX "index_hosts_on_address6" ON "hosts" ("address6")  (6.7ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.7ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.6ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (0.6ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.6ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.6ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.6ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.6ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (0.7ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.7ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (0.6ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (0.8ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (0.7ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (0.7ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.6ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.6ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.6ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (0.7ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (0.7ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (0.6ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.7ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110730000001')  (0.4ms) COMMIT Migrating to PruneIndexes (20110812000001)  (0.2ms) BEGIN  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110812000001')  (6.2ms) COMMIT Migrating to ExpandNotes (20110922000000)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "notes" ALTER COLUMN "data" TYPE text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110922000000')  (6.1ms) COMMIT Migrating to AddModRefTable (20110928101300)  (0.2ms) BEGIN  (14.5ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110928101300')  (6.2ms) COMMIT Migrating to AddDisplayNameToReportsTable (20111011110000)  (4.9ms) BEGIN  (0.4ms) ALTER TABLE "reports" ADD COLUMN "name" character varying(63) AddDisplayNameToReportsTable::Report Load (0.3ms) SELECT "reports".* FROM "reports"  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20111011110000')  (5.9ms) COMMIT Migrating to InetColumns (20111203000000)  (0.3ms) BEGIN  (28.3ms) ALTER TABLE "hosts" ALTER COLUMN "address" TYPE INET using address::INET  (0.3ms) ALTER TABLE "hosts" DROP "address6"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20111203000000')  (1.2ms) COMMIT Migrating to MoreInetColumns (20111204000000)  (0.1ms) BEGIN  (14.4ms) ALTER TABLE "wmap_requests" ALTER COLUMN "address" TYPE INET using address::INET  (0.2ms) ALTER TABLE "wmap_requests" DROP "address6"  (13.2ms) ALTER TABLE "wmap_targets" ALTER COLUMN "address" TYPE INET using address::INET  (0.3ms) ALTER TABLE "wmap_targets" DROP "address6"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20111204000000')  (0.9ms) COMMIT Migrating to AddScopeToHosts (20111210000000)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "hosts" ADD COLUMN "scope" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20111210000000')  (5.6ms) COMMIT Migrating to AddVirtualHostToHosts (20120126110000)  (0.2ms) BEGIN  (0.5ms) ALTER TABLE "hosts" ADD COLUMN "virtual_host" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120126110000')  (5.7ms) COMMIT Migrating to RenameWorkspaceMembers (20120411173220)  (0.2ms) BEGIN  (0.4ms) ALTER TABLE "project_members" RENAME TO "workspace_members"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120411173220')  (0.3ms) COMMIT Migrating to AddCounterCachesToHosts (20120601152442)  (0.1ms) BEGIN  (31.5ms) ALTER TABLE "hosts" ADD COLUMN "note_count" integer DEFAULT 0  (4.5ms) ALTER TABLE "hosts" ADD COLUMN "vuln_count" integer DEFAULT 0  (4.6ms) ALTER TABLE "hosts" ADD COLUMN "service_count" integer DEFAULT 0 Mdm::Host Load (0.4ms) SELECT "hosts".* FROM "hosts"   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120601152442')  (2.2ms) COMMIT Migrating to AddVulnDetails (20120625000000)  (0.2ms) BEGIN  (14.1ms) 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)   (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000000')  (5.9ms) COMMIT Migrating to AddHostDetails (20120625000001)  (4.4ms) BEGIN  (8.1ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000001')  (6.2ms) COMMIT Migrating to ExpandDetails (20120625000002)  (5.8ms) BEGIN  (0.3ms) ALTER TABLE "vuln_details" ADD COLUMN "nx_vuln_status" text  (0.2ms) ALTER TABLE "vuln_details" ADD COLUMN "nx_proof_key" text  (0.2ms) ALTER TABLE "vuln_details" ADD COLUMN "src" character varying(255)  (0.2ms) ALTER TABLE "host_details" ADD COLUMN "src" character varying(255)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000002')  (5.5ms) COMMIT Migrating to ExpandDetails2 (20120625000003)  (0.1ms) BEGIN  (6.8ms) ALTER TABLE "host_details" ADD COLUMN "nx_site_name" character varying(255)  (0.2ms) ALTER TABLE "host_details" ADD COLUMN "nx_site_importance" character varying(255)  (0.2ms) ALTER TABLE "host_details" ADD COLUMN "nx_scan_template" character varying(255)  (0.2ms) ALTER TABLE "host_details" ADD COLUMN "nx_risk_score" float  (0.3ms) ALTER TABLE "vuln_details" ADD COLUMN "nx_scan_id" integer  (0.2ms) ALTER TABLE "vuln_details" ADD COLUMN "nx_vulnerable_since" timestamp  (0.2ms) ALTER TABLE "vuln_details" ADD COLUMN "nx_pci_compliance_status" character varying(255)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000003')  (5.6ms) COMMIT Migrating to AddVulnAttempts (20120625000004)  (0.2ms) BEGIN  (15.0ms) 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)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000004')  (6.3ms) COMMIT Migrating to AddVulnAndHostCounterCaches (20120625000005)  (5.0ms) BEGIN  (28.6ms) ALTER TABLE "hosts" ADD COLUMN "host_detail_count" integer DEFAULT 0  (3.1ms) ALTER TABLE "vulns" ADD COLUMN "vuln_detail_count" integer DEFAULT 0  (2.9ms) ALTER TABLE "vulns" ADD COLUMN "vuln_attempt_count" integer DEFAULT 0  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000005')  (1.7ms) COMMIT Migrating to AddModuleDetails (20120625000006)  (0.2ms) BEGIN  (14.1ms) 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)  (6.4ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (5.5ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.8ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.8ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (2.1ms) CREATE TABLE "module_authors" ("id" serial primary key, "module_detail_id" integer, "name" text, "email" text)   (0.7ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("module_detail_id")  (2.4ms) CREATE TABLE "module_mixins" ("id" serial primary key, "module_detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("module_detail_id")  (4.2ms) CREATE TABLE "module_targets" ("id" serial primary key, "module_detail_id" integer, "index" integer, "name" text)   (1.0ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("module_detail_id")  (3.9ms) CREATE TABLE "module_actions" ("id" serial primary key, "module_detail_id" integer, "name" text)   (1.1ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("module_detail_id")  (3.7ms) CREATE TABLE "module_refs" ("id" serial primary key, "module_detail_id" integer, "name" text)   (1.0ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("module_detail_id")  (0.7ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.3ms) CREATE TABLE "module_archs" ("id" serial primary key, "module_detail_id" integer, "name" text)  (0.6ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("module_detail_id")  (2.4ms) CREATE TABLE "module_platforms" ("id" serial primary key, "module_detail_id" integer, "name" text)  (0.7ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("module_detail_id")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000006')  (1.0ms) COMMIT Migrating to AddExploitAttempts (20120625000007)  (0.5ms) BEGIN  (14.7ms) 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))   (12.2ms) ALTER TABLE "hosts" ADD COLUMN "exploit_attempt_count" integer DEFAULT 0  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000007')  (1.1ms) COMMIT Migrating to AddFailMessage (20120625000008)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "vuln_attempts" ADD COLUMN "fail_detail" text  (0.2ms) ALTER TABLE "exploit_attempts" ADD COLUMN "fail_detail" text  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000008')  (6.0ms) COMMIT Migrating to AddOwnerAndPayloadToWebVulns (20120718202805)  (0.2ms) BEGIN  (0.5ms) ALTER TABLE "web_vulns" ADD COLUMN "owner" character varying(255)  (0.4ms) ALTER TABLE "web_vulns" ADD COLUMN "payload" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120718202805')  (0.4ms) COMMIT Migrating to ChangeRequiredColumnsToNullFalseInWebVulns (20130228214900)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "web_vulns" ALTER "category" SET NOT NULL  (0.2ms) ALTER TABLE "web_vulns" ALTER "confidence" SET NOT NULL  (0.2ms) ALTER TABLE "web_vulns" ALTER "method" SET NOT NULL  (0.2ms) ALTER TABLE "web_vulns" ALTER "name" SET NOT NULL  (0.2ms) ALTER TABLE "web_vulns" ALTER "params" SET NOT NULL  (0.2ms) ALTER TABLE "web_vulns" ALTER "path" SET NOT NULL  (0.2ms) ALTER TABLE "web_vulns" ALTER "pname" SET NOT NULL  (0.2ms) ALTER TABLE "web_vulns" ALTER "proof" SET NOT NULL  (0.2ms) ALTER TABLE "web_vulns" ALTER "risk" SET NOT NULL  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130228214900')  (6.2ms) COMMIT Migrating to ChangeForeignKeyInModuleActions (20130412154159)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "module_actions" RENAME COLUMN "module_detail_id" TO "detail_id"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130412154159')  (6.0ms) COMMIT Migrating to ChangeForeignKeyInModuleArchs (20130412171844)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "module_archs" RENAME COLUMN "module_detail_id" TO "detail_id"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130412171844')  (6.2ms) COMMIT Migrating to ChangeForeignKeyInModuleAuthors (20130412173121)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "module_authors" RENAME COLUMN "module_detail_id" TO "detail_id"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130412173121')  (5.6ms) COMMIT Migrating to ChangeForeignKeyInModuleMixins (20130412173640)  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "module_mixins" RENAME COLUMN "module_detail_id" TO "detail_id"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130412173640')  (6.1ms) COMMIT Migrating to ChangeForeignKeyInModulePlatforms (20130412174254)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "module_platforms" RENAME COLUMN "module_detail_id" TO "detail_id"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130412174254')  (5.8ms) COMMIT Migrating to ChangeForeignKeyInModuleRefs (20130412174719)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "module_refs" RENAME COLUMN "module_detail_id" TO "detail_id"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130412174719')  (5.9ms) COMMIT Migrating to ChangeForeignKeyInModuleTargets (20130412175040)  (0.3ms) BEGIN  (0.3ms) ALTER TABLE "module_targets" RENAME COLUMN "module_detail_id" TO "detail_id"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130412175040')  (5.6ms) COMMIT Migrating to AddCredsCounterCache (20130423211152)  (0.1ms) BEGIN  (28.2ms) ALTER TABLE "hosts" ADD COLUMN "cred_count" integer DEFAULT 0 Mdm::Cred Load (0.3ms) SELECT "creds".* FROM "creds"   (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130423211152')  (1.1ms) COMMIT Migrating to ChangeRequiredColumnsToNullFalseInHosts (20130430151353)  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "hosts" ALTER "address" SET NOT NULL  (0.2ms) ALTER TABLE "hosts" ALTER "workspace_id" SET NOT NULL  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130430151353')  (6.0ms) COMMIT Migrating to EnforceAddressUniquenessInWorkspaceInHosts (20130430162145)  (0.2ms) BEGIN  (0.8ms) SELECT workspace_id, address, count_addr FROM ( SELECT workspace_id, address, COUNT(address) AS count_addr FROM hosts GROUP BY address, workspace_id ) X WHERE count_addr > 1  (0.2ms) DROP INDEX "index_hosts_on_address"  (6.2ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130430162145')  (6.2ms) COMMIT Migrating to RemoveCampaigns (20130510021637)  (0.2ms) BEGIN  (0.9ms) DROP TABLE "attachments"  (0.3ms) DROP TABLE "attachments_email_templates"  (0.7ms) DROP TABLE "email_addresses"  (0.6ms) DROP TABLE "email_templates"  (0.6ms) DROP TABLE "web_templates"  (0.7ms) DROP TABLE "campaigns"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130510021637')  (7.1ms) COMMIT Migrating to ChangeWebVulnsConfidenceToInteger (20130515164311)  (0.3ms) BEGIN  (27.0ms) ALTER TABLE web_vulns ALTER COLUMN confidence TYPE integer USING confidence::integer  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130515164311')  (0.9ms) COMMIT Migrating to ValidMdmWebVulnParams (20130515172727)  (0.2ms) BEGIN Mdm::WebVuln Load (0.4ms) SELECT "web_vulns".* FROM "web_vulns" ORDER BY "web_vulns"."id" ASC LIMIT 1000  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130515172727')  (6.2ms) COMMIT Migrating to MakingVulnsRefsARealArModel (20130516204810)  (0.2ms) BEGIN  (8.2ms) ALTER TABLE "vulns_refs" ADD COLUMN "id" serial primary key  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130516204810')  (6.5ms) COMMIT Migrating to CreateTaskCreds (20130522001343)  (5.7ms) BEGIN  (7.7ms) 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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130522001343')  (5.8ms) COMMIT Migrating to CreateTaskHosts (20130522032517)  (6.2ms) BEGIN  (7.9ms) 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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130522032517')  (5.8ms) COMMIT Migrating to CreateTaskServices (20130522041110)  (5.7ms) BEGIN  (7.4ms) 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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130522041110')  (6.1ms) COMMIT Migrating to RemoveCampaignIdFromClients (20130525015035)  (6.1ms) BEGIN  (0.3ms) ALTER TABLE "clients" DROP "campaign_id"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130525015035')  (6.2ms) COMMIT Migrating to DropTableImportedCreds (20130525212420)  (0.2ms) BEGIN  (0.8ms) DROP TABLE "imported_creds"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130525212420')  (6.3ms) COMMIT Migrating to MakingHostTagsARealArModel (20130531144949)  (0.1ms) BEGIN  (7.9ms) ALTER TABLE "hosts_tags" ADD COLUMN "id" serial primary key  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130531144949')  (6.3ms) COMMIT Migrating to CreateTaskSessions (20130604145732)  (6.1ms) BEGIN  (7.9ms) 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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130604145732')  (5.8ms) COMMIT Migrating to RemovePnameValidation (20130717150737)  (5.7ms) BEGIN  (0.3ms) ALTER TABLE "web_vulns" ALTER COLUMN "pname" TYPE text  (0.2ms) ALTER TABLE "web_vulns" ALTER "pname" DROP NOT NULL  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130717150737')  (5.9ms) COMMIT Migrating to CreateMetasploitCredentialPublics (20140331173835)  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (110.5ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (228.3ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.1ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.7ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (2.9ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.6ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.8ms) 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), "fail_detail" text)  (2.6ms) 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)   (2.7ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.5ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.8ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.8ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (0.9ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (1.0ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.3ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (2.9ms) 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, "macro" text)   (2.7ms) 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, "content_type" character varying(255), "name" text, "info" text)  (3.1ms) 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)   (1.9ms) CREATE TABLE "metasploit_credential_publics" ("id" serial primary key, "username" character varying(255) NOT NULL, "workspace_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_publics" ON "metasploit_credential_publics" ("workspace_id", "username")  (2.5ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)  (2.9ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.8ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.9ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)   (0.7ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (3.1ms) 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)   (0.9ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.8ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.9ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.8ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.7ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.7ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.5ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.7ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.7ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (4.2ms) 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, "name" text)   (3.4ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)  (0.8ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.7ms) 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)  (2.5ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)   (0.9ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.7ms) 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)   (3.1ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))  (2.9ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))   (2.9ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)  (0.9ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.9ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.8ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.9ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.8ms) 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)   (2.7ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)  (3.1ms) 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)   (2.0ms) 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)  (1.8ms) 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)   (2.0ms) 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)  (1.9ms) 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)   (3.1ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)  (3.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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)   (2.7ms) 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, "fail_detail" text)  (3.2ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))   (3.1ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)  (0.9ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (2.0ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)  (2.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, "query" text)   (0.8ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.9ms) 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, "headers" text, "body" bytea, "request" bytea)   (0.9ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (1.0ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.9ms) 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)  (0.8ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.9ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.9ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.1ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)  (1.0ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.8ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.9ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (2.8ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)  (3.0ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)   (0.7ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)  (3.5ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml Connecting to database specified by database.yml  (20.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Connecting to database specified by database.yml  (2.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (3.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateMetasploitCredentialPublics (20140331173835)  (0.1ms) BEGIN  (3.4ms) 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)   (0.7ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140331173835')  (0.3ms) COMMIT  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (111.9ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (240.8ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (7.1ms) 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)  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835') Connecting to database specified by database.yml  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (113.6ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (241.0ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (4.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)  (1.5ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835') Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (113.4ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (239.4ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (4.5ms) 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)  (1.1ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835') Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (113.8ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (236.5ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.9ms) 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)  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835') Connecting to database specified by database.yml  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (113.0ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (239.2ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (4.4ms) 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)  (1.2ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835') Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (115.0ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (238.7ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (4.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)  (1.3ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835') Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (115.1ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (459.3ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (4.6ms) 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)  (1.1ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835') Connecting to database specified by database.yml  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (113.9ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (243.0ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (4.4ms) 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)  (12.3ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (6.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835') Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (114.0ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (239.1ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.6ms) 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)  (1.2ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835') Connecting to database specified by database.yml  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (113.3ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (237.5ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (6.6ms) 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)  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835') Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateMetasploitCredentialPublics (20140331173835) Migrating to CreateMetasploitCredentialPrivates (20140407212345)  (0.1ms) BEGIN  (29.1ms) CREATE TABLE "metasploit_credential_privates" ("id" serial primary key, "type" character varying(255) NOT NULL, "data" text NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140407212345')  (1.8ms) COMMIT  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Connecting to database specified by database.yml  (2.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateMetasploitCredentialPublics (20140331173835)  (0.1ms) BEGIN  (20.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)   (5.6ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140331173835')  (0.4ms) COMMIT Migrating to CreateMetasploitCredentialPrivates (20140407212345)  (0.1ms) BEGIN  (2.8ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140407212345')  (0.3ms) COMMIT  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" Connecting to database specified by database.yml  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (5026.0ms) DROP DATABASE IF EXISTS "metasploit_credential_test" PG::ObjectInUse: ERROR: database "metasploit_credential_test" is being accessed by other users DETAIL: There is 1 other session using the database. : DROP DATABASE IF EXISTS "metasploit_credential_test" Connecting to database specified by database.yml  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (114.8ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (399.6ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (11.5ms) 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)  (1.1ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (2.0ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (2.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835') Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (112.6ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (239.8ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (7.2ms) 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)  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (2.0ms) 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)  (0.7ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835') Connecting to database specified by database.yml  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (5028.8ms) DROP DATABASE IF EXISTS "metasploit_credential_test" PG::ObjectInUse: ERROR: database "metasploit_credential_test" is being accessed by other users DETAIL: There is 1 other session using the database. : DROP DATABASE IF EXISTS "metasploit_credential_test" Connecting to database specified by database.yml  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (114.8ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (265.7ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.3ms) 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)  (1.1ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (2.2ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835') Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (116.4ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (242.5ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (7.6ms) 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)  (1.2ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.9ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835') Connecting to database specified by database.yml  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (120.3ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (249.8ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (31.2ms) 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)  (1.2ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (2.2ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835') Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (114.7ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (242.2ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.8ms) 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)  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (2.0ms) 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)  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835') Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (118.8ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (331.3ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.4ms) 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)  (1.2ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (2.0ms) 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)  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835') Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (112.8ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (239.3ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.3ms) 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)  (1.3ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (2.0ms) 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)  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835') Connecting to database specified by database.yml  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (113.8ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (244.8ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.3ms) 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)  (1.1ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.8ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835') Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (110.8ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (359.0ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.2ms) 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)  (1.4ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (2.1ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835') Connecting to database specified by database.yml  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (113.3ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (234.7ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.3ms) 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)  (1.2ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (2.0ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835') Connecting to database specified by database.yml  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (113.3ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (240.8ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.4ms) 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)  (1.3ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (2.0ms) 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)  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835') Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (112.9ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (237.9ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.3ms) 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)  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (2.0ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835') Connecting to database specified by database.yml  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (114.3ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (238.0ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.2ms) 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)  (1.1ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.9ms) 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)  (1.2ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835') Connecting to database specified by database.yml Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (115.8ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (350.8ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.4ms) 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)  (1.2ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.9ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835') Connecting to database specified by database.yml  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (115.5ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (246.7ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.5ms) 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)  (1.1ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (2.0ms) 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)  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835') Connecting to database specified by database.yml  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (115.3ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (241.0ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.2ms) 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)  (1.4ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (2.0ms) 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)  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835') Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (112.9ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (241.5ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.3ms) 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)  (1.1ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.9ms) 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)  (1.3ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835') Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (116.4ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (358.7ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (7.5ms) 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)  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (2.2ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835') Connecting to database specified by database.yml  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (113.5ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (238.3ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.2ms) 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)  (1.1ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.8ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835') Connecting to database specified by database.yml  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (114.9ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (245.6ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.4ms) 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)  (1.1ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (2.1ms) 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)  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835') Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (114.0ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (240.5ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (6.5ms) 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)  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.9ms) 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)  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835') Connecting to database specified by database.yml  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (115.2ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (242.9ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.3ms) 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)  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (2.0ms) 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)  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835') Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (112.8ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (239.7ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.1ms) 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)  (1.2ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.8ms) 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)  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835') Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (114.1ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (239.2ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.4ms) 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)  (1.2ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.9ms) 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)  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835') Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (114.9ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (240.3ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.4ms) 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)  (1.1ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.8ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835') Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (110.7ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (379.4ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.2ms) 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)  (1.1ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (2.1ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835') Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (113.9ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (243.1ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.5ms) 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)  (1.2ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.8ms) 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)  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835') Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (113.1ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (242.7ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.3ms) 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)  (1.1ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.9ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835') Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (113.5ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (244.0ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.8ms) 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)  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.9ms) 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)  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835') Connecting to database specified by database.yml  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (113.7ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (234.8ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (6.1ms) 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)  (1.3ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.9ms) 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)  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835') Connecting to database specified by database.yml Connecting to database specified by database.yml  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (115.0ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (242.1ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.4ms) 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)  (1.2ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.9ms) 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)  (1.1ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835') Connecting to database specified by database.yml  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (117.3ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (238.0ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (7.0ms) 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)  (1.2ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.9ms) 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)  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835') Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (118.6ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (365.3ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.6ms) 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)  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (2.0ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835') Connecting to database specified by database.yml  (1.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateMetasploitCredentialPublics (20140331173835) Migrating to CreateMetasploitCredentialPrivates (20140407212345) Migrating to CreateMetasploitCredentialRealms (20140410132401)  (0.1ms) BEGIN  (60.3ms) 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)   (1.6ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140410132401')  (0.7ms) COMMIT  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" Connecting to database specified by database.yml  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (5028.0ms) DROP DATABASE IF EXISTS "metasploit_credential_test" PG::ObjectInUse: ERROR: database "metasploit_credential_test" is being accessed by other users DETAIL: There is 1 other session using the database. : DROP DATABASE IF EXISTS "metasploit_credential_test" Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (117.2ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (386.1ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (9.4ms) 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)  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.9ms) 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)  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (3.8ms) 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)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345') Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (112.1ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (235.9ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.9ms) 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)  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.8ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.7ms) 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)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345') Connecting to database specified by database.yml  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (110.5ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (264.5ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (4.8ms) 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)  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.8ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.4ms) 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)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345') Connecting to database specified by database.yml  (6.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (115.3ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (352.7ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (4.8ms) 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)  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.8ms) 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)  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.6ms) 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)  (2.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345') Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (110.6ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (234.7ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (4.8ms) 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)  (1.1ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.7ms) 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)  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (3.6ms) 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)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345') Connecting to database specified by database.yml  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (109.9ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (234.6ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (4.9ms) 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)  (1.1ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.8ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.5ms) 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)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345') Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateMetasploitCredentialPublics (20140331173835) Migrating to CreateMetasploitCredentialPrivates (20140407212345) Migrating to CreateMetasploitCredentialRealms (20140410132401) Migrating to UniqueMetasploitCredentialRealms (20140410161611)  (0.2ms) BEGIN  (3.5ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140410161611')  (0.6ms) COMMIT  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" Connecting to database specified by database.yml  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (112.0ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (240.8ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.1ms) 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)  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.9ms) 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)  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.7ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401') Connecting to database specified by database.yml Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (114.4ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (235.5ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (4.8ms) 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)  (1.2ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.9ms) 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)  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.7ms) 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)  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401') Connecting to database specified by database.yml  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateMetasploitCredentialPublics (20140331173835) Migrating to CreateMetasploitCredentialPrivates (20140407212345) Migrating to CreateMetasploitCredentialRealms (20140410132401) Migrating to UniqueMetasploitCredentialRealms (20140410161611) Migrating to CreateMetasploitCredentialOriginManuals (20140410191213)  (0.1ms) BEGIN  (8.7ms) 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)   (6.6ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140410191213')  (0.8ms) COMMIT  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Connecting to database specified by database.yml  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateTables (0)  (0.1ms) BEGIN  (21.6ms) 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))   (0.8ms) CREATE UNIQUE INDEX "index_hosts_on_address" ON "hosts" ("address")  (3.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))   (2.4ms) 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))  (4.0ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created" timestamp, "name" character varying(255), "data" text)   (2.5ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created" timestamp, "name" character varying(512))  (22.1ms) CREATE TABLE "vulns_refs" ("ref_id" integer, "vuln_id" integer)   (19.0ms) CREATE TABLE "notes" ("id" serial primary key, "host_id" integer, "created" timestamp, "ntype" character varying(512), "data" text)  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('0')  (1.3ms) COMMIT Migrating to AddWmapTables (1)  (0.4ms) BEGIN  (14.1ms) 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)  (14.4ms) 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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('1')  (0.4ms) COMMIT Migrating to AddWorkspaces (2)  (0.2ms) BEGIN  (7.1ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.4ms) ALTER TABLE "hosts" ADD COLUMN "workspace_id" integer  (19.1ms) DROP INDEX "index_hosts_on_address"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('2')  (0.9ms) COMMIT Migrating to MoveNotes (3)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "notes" DROP "host_id"  (26.4ms) ALTER TABLE "notes" ADD COLUMN "workspace_id" integer DEFAULT 1 NOT NULL  (0.3ms) ALTER TABLE "notes" ADD COLUMN "service_id" integer  (0.2ms) ALTER TABLE "notes" ADD COLUMN "host_id" integer  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('3')  (0.8ms) COMMIT Migrating to AddEventsTable (4)  (0.1ms) BEGIN  (13.8ms) 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))  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('4')  (6.3ms) COMMIT Migrating to ExpandInfo (5)  (5.0ms) BEGIN  (0.4ms) ALTER TABLE "events" DROP "info"  (0.4ms) ALTER TABLE "events" ADD COLUMN "info" character varying(4096)  (0.4ms) ALTER TABLE "notes" DROP "data"  (0.3ms) ALTER TABLE "notes" ADD COLUMN "data" character varying(4096)  (0.4ms) ALTER TABLE "vulns" DROP "data"  (0.3ms) ALTER TABLE "vulns" ADD COLUMN "data" character varying(4096)  (0.3ms) ALTER TABLE "hosts" DROP "info"  (0.3ms) ALTER TABLE "hosts" ADD COLUMN "info" character varying(4096)  (0.3ms) ALTER TABLE "services" DROP "info"  (0.2ms) ALTER TABLE "services" ADD COLUMN "info" character varying(4096)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('5')  (5.6ms) COMMIT Migrating to AddTimestamps (6)  (0.2ms) BEGIN  (0.4ms) ALTER TABLE "clients" RENAME COLUMN "created" TO "created_at"  (0.3ms) ALTER TABLE "hosts" RENAME COLUMN "created" TO "created_at"  (0.3ms) ALTER TABLE "notes" RENAME COLUMN "created" TO "created_at"  (0.3ms) ALTER TABLE "refs" RENAME COLUMN "created" TO "created_at"  (0.3ms) ALTER TABLE "services" RENAME COLUMN "created" TO "created_at"  (0.3ms) ALTER TABLE "vulns" RENAME COLUMN "created" TO "created_at"  (0.2ms) ALTER TABLE "wmap_requests" RENAME COLUMN "created" TO "created_at"  (0.2ms) ALTER TABLE "wmap_targets" ADD COLUMN "created_at" timestamp  (0.2ms) ALTER TABLE "clients" ADD COLUMN "updated_at" timestamp  (0.2ms) ALTER TABLE "events" ADD COLUMN "updated_at" timestamp  (0.2ms) ALTER TABLE "hosts" ADD COLUMN "updated_at" timestamp  (0.2ms) ALTER TABLE "notes" ADD COLUMN "updated_at" timestamp  (0.2ms) ALTER TABLE "refs" ADD COLUMN "updated_at" timestamp  (0.2ms) ALTER TABLE "services" ADD COLUMN "updated_at" timestamp  (0.2ms) ALTER TABLE "vulns" ADD COLUMN "updated_at" timestamp  (0.2ms) ALTER TABLE "wmap_requests" ADD COLUMN "updated_at" timestamp  (0.2ms) ALTER TABLE "wmap_targets" ADD COLUMN "updated_at" timestamp  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('6')  (5.7ms) COMMIT Migrating to AddLoots (7)  (0.1ms) BEGIN  (14.3ms) 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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('7')  (5.8ms) COMMIT Migrating to CreateUsers (8)  (4.9ms) BEGIN  (14.8ms) 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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('8')  (6.4ms) COMMIT Migrating to AddLootsCtype (9)  (4.8ms) BEGIN  (0.4ms) ALTER TABLE "loots" ADD COLUMN "content_type" character varying(255)  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('9')  (5.8ms) COMMIT Migrating to AddAlertFields (10)  (0.3ms) BEGIN  (0.4ms) ALTER TABLE "notes" ADD COLUMN "critical" boolean  (0.3ms) ALTER TABLE "notes" ADD COLUMN "seen" boolean  (0.3ms) ALTER TABLE "events" ADD COLUMN "critical" boolean  (0.3ms) ALTER TABLE "events" ADD COLUMN "seen" boolean  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('10')  (5.8ms) COMMIT Migrating to AddReports (11)  (0.3ms) BEGIN  (20.6ms) 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)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('11')  (4.4ms) COMMIT Migrating to AddTasks (12)  (0.2ms) BEGIN  (23.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)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('12')  (6.1ms) COMMIT Migrating to AddTasksResult (13)  (6.0ms) BEGIN  (0.4ms) ALTER TABLE "tasks" ADD COLUMN "result" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('13')  (6.2ms) COMMIT Migrating to AddLootsFields (14)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "loots" ADD COLUMN "name" text  (0.2ms) ALTER TABLE "loots" ADD COLUMN "info" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('14')  (6.1ms) COMMIT Migrating to RenameUser (15)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "events" DROP "user"  (0.2ms) ALTER TABLE "events" ADD COLUMN "username" character varying(255)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('15')  (6.2ms) COMMIT Migrating to AddHostPurpose (16)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "hosts" ADD COLUMN "purpose" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('16')  (6.0ms) COMMIT Migrating to ExpandInfo2 (17)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "events" DROP "info"  (0.2ms) ALTER TABLE "events" ADD COLUMN "info" character varying(65536)  (0.2ms) ALTER TABLE "notes" DROP "data"  (0.2ms) ALTER TABLE "notes" ADD COLUMN "data" character varying(65536)  (0.2ms) ALTER TABLE "vulns" DROP "data"  (0.2ms) ALTER TABLE "vulns" ADD COLUMN "data" character varying(65536)  (0.2ms) ALTER TABLE "hosts" DROP "info"  (0.2ms) ALTER TABLE "hosts" ADD COLUMN "info" character varying(65536)  (6.5ms) ALTER TABLE "services" DROP "info"  (0.4ms) ALTER TABLE "services" ADD COLUMN "info" character varying(65536)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('17')  (5.9ms) COMMIT Migrating to AddWorkspaceUserInfo (18)  (0.1ms) BEGIN  (7.1ms) ALTER TABLE "workspaces" ADD COLUMN "boundary" character varying(4096)  (0.5ms) ALTER TABLE "users" ADD COLUMN "fullname" character varying(255)  (0.2ms) ALTER TABLE "users" ADD COLUMN "email" character varying(255)  (0.2ms) ALTER TABLE "users" ADD COLUMN "phone" character varying(255)  (0.2ms) ALTER TABLE "users" ADD COLUMN "company" character varying(255)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('18')  (10.6ms) COMMIT Migrating to AddWorkspaceDesc (19)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "workspaces" ADD COLUMN "description" character varying(4096)  (0.2ms) ALTER TABLE "hosts" ADD COLUMN "comments" character varying(4096)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('19')  (7.5ms) COMMIT Migrating to AddUserPreferences (20)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "users" ADD COLUMN "prefs" character varying(524288)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20')  (9.6ms) COMMIT Migrating to StandardizeInfoAndData (21)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "vulns" DROP "data"  (0.2ms) ALTER TABLE "vulns" ADD COLUMN "info" character varying(65536)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('21')  (7.1ms) COMMIT Migrating to EnlargeEventInfo (22)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "events" ALTER COLUMN "info" TYPE text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('22')  (6.0ms) COMMIT Migrating to AddReportDownloadedAt (23)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "reports" ADD COLUMN "downloaded_at" timestamp  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('23')  (6.1ms) COMMIT Migrating to ConvertServiceInfoToText (24)  (0.3ms) BEGIN  (0.3ms) ALTER TABLE "services" ALTER COLUMN "info" TYPE text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('24')  (6.0ms) COMMIT Migrating to AddUserAdmin (25)  (0.2ms) BEGIN  (14.1ms) ALTER TABLE "users" ADD COLUMN "admin" boolean DEFAULT 't'  (0.5ms) CREATE TABLE "project_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('25')  (6.4ms) COMMIT Migrating to AddCredsTable (26)  (0.2ms) BEGIN  (14.5ms) 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))  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('26')  (5.9ms) COMMIT Migrating to MigrateCredData (20100819123300)  (5.0ms) BEGIN Mdm::Note Load (0.3ms) SELECT "notes".* FROM "notes" Mdm::Note Load (0.2ms) SELECT "notes".* FROM "notes"   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100819123300')  (5.8ms) COMMIT Migrating to AddExploitedTable (20100824151500)  (0.2ms) BEGIN  (14.6ms) 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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100824151500')  (6.2ms) COMMIT Migrating to AddOwnerToWorkspaces (20100908001428)  (5.0ms) BEGIN  (0.5ms) ALTER TABLE "workspaces" ADD COLUMN "owner_id" integer  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100908001428')  (5.7ms) COMMIT Migrating to AddReportTemplates (20100911122000)  (0.2ms) BEGIN  (14.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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100911122000')  (6.4ms) COMMIT Migrating to RequireAdminFlag (20100916151530)  (4.8ms) BEGIN SQL (0.3ms) UPDATE "users" SET "admin" = 't' WHERE "users"."admin" IS NULL  (0.4ms) ALTER TABLE "users" ALTER COLUMN "admin" TYPE boolean  (0.2ms) ALTER TABLE "users" ALTER COLUMN "admin" SET DEFAULT 't'  (0.2ms) UPDATE "users" SET "admin"='t' WHERE "admin" IS NULL  (0.1ms) ALTER TABLE "users" ALTER "admin" SET NOT NULL  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100916151530')  (6.3ms) COMMIT Migrating to AddCampaignsAndTemplates (20100916175000)  (0.2ms) BEGIN  (14.5ms) 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)   (13.1ms) CREATE TABLE "email_templates" ("id" serial primary key, "name" character varying(512), "subject" character varying(1024), "body" text, "parent_id" integer, "campaign_id" integer)  (2.7ms) 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)   (0.5ms) CREATE TABLE "attachments_email_templates" ("attachment_id" integer, "email_template_id" integer)  (2.2ms) 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)   (3.1ms) CREATE TABLE "web_templates" ("id" serial primary key, "name" character varying(512), "title" character varying(512), "body" character varying(524288), "campaign_id" integer)  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100916175000')  (0.9ms) COMMIT Migrating to AddGenerateExeColumn (20100920012100)  (0.5ms) BEGIN  (14.8ms) ALTER TABLE "email_templates" ADD COLUMN "generate_exe" boolean DEFAULT 'f' NOT NULL  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100920012100')  (6.3ms) COMMIT Migrating to AddTemplatePrefs (20100926214000)  (0.1ms) BEGIN  (0.4ms) ALTER TABLE "email_templates" DROP "generate_exe"  (0.2ms) ALTER TABLE "email_templates" ADD COLUMN "prefs" text  (0.2ms) ALTER TABLE "web_templates" ADD COLUMN "prefs" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100926214000')  (6.1ms) COMMIT Migrating to AddWebTables (20101001000000)  (0.1ms) BEGIN  (13.9ms) 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)  (13.2ms) 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)   (2.4ms) 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)  (2.4ms) 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))   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101001000000')  (0.7ms) COMMIT Migrating to AddQuery (20101002000000)  (0.3ms) BEGIN  (0.2ms) ALTER TABLE "web_forms" ADD COLUMN "query" text  (0.3ms) ALTER TABLE "web_vulns" ADD COLUMN "query" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101002000000')  (5.9ms) COMMIT Migrating to AddVulnInfo (20101007000000)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "web_vulns" ADD COLUMN "category" text  (0.2ms) ALTER TABLE "web_vulns" ADD COLUMN "confidence" text  (0.2ms) ALTER TABLE "web_vulns" ADD COLUMN "description" text  (0.2ms) ALTER TABLE "web_vulns" ADD COLUMN "blame" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101007000000')  (6.2ms) COMMIT Migrating to AddClientsToCampaigns (20101008111800)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "clients" ADD COLUMN "campaign_id" integer  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101008111800')  (8.5ms) COMMIT Migrating to AddCampaignAttachments (20101009023300)  (0.3ms) BEGIN  (0.3ms) ALTER TABLE "attachments" ADD COLUMN "campaign_id" integer  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101009023300')  (7.5ms) COMMIT Migrating to AddImportedCreds (20101104135100)  (0.3ms) BEGIN  (14.2ms) 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')   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101104135100')  (6.1ms) COMMIT Migrating to FixWebTables (20101203000000)  (5.0ms) BEGIN  (0.4ms) ALTER TABLE "web_pages" ALTER COLUMN "path" TYPE text  (0.2ms) ALTER TABLE "web_pages" ALTER COLUMN "query" TYPE text  (0.2ms) ALTER TABLE "web_pages" ALTER COLUMN "cookie" TYPE text  (0.2ms) ALTER TABLE "web_pages" ALTER COLUMN "auth" TYPE text  (0.2ms) ALTER TABLE "web_pages" ALTER COLUMN "ctype" TYPE text  (0.2ms) ALTER TABLE "web_pages" ALTER COLUMN "location" TYPE text  (0.2ms) ALTER TABLE "web_pages" ALTER COLUMN "path" TYPE text  (0.2ms) ALTER TABLE "web_vulns" ALTER COLUMN "path" TYPE text  (0.2ms) ALTER TABLE "web_vulns" ALTER COLUMN "pname" TYPE text  (0.2ms) ALTER TABLE "web_pages" ADD COLUMN "request" text  (0.2ms) ALTER TABLE "web_vulns" ADD COLUMN "request" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101203000000')  (5.8ms) COMMIT Migrating to ExpandHostComment (20101203000001)  (0.3ms) BEGIN  (0.3ms) ALTER TABLE "hosts" ALTER COLUMN "comments" TYPE text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101203000001')  (6.1ms) COMMIT Migrating to AddLimitToNetworkToWorkspaces (20101206212033)  (0.2ms) BEGIN  (14.1ms) ALTER TABLE "workspaces" ADD COLUMN "limit_to_network" boolean DEFAULT 'f' NOT NULL  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101206212033')  (6.7ms) COMMIT Migrating to AddModuleUuidToTasks (20110112154300)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "tasks" ADD COLUMN "module_uuid" character varying(8)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110112154300')  (6.1ms) COMMIT Migrating to AddHostTags (20110204112800)  (0.2ms) BEGIN  (14.5ms) 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)   (0.6ms) CREATE TABLE "hosts_tags" ("host_id" integer, "tag_id" integer)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110204112800')  (6.0ms) COMMIT Migrating to AddSessionTable (20110317144932)  (4.4ms) BEGIN  (14.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))  (7.0ms) 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)  AddSessionTable::Event Load (1.3ms) SELECT "events".* FROM "events" WHERE "events"."name" = 'session_close' AddSessionTable::Event Load (0.3ms) SELECT "events".* FROM "events" WHERE "events"."name" = 'session_open' AddSessionTable::Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."name" = 'session_command' AddSessionTable::Event Load (0.3ms) SELECT "events".* FROM "events" WHERE "events"."name" = 'session_output' AddSessionTable::Event Load (0.3ms) SELECT "events".* FROM "events" WHERE "events"."name" = 'session_upload' AddSessionTable::Event Load (0.3ms) SELECT "events".* FROM "events" WHERE "events"."name" = 'session_download'  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110317144932')  (0.8ms) COMMIT Migrating to AddLocalIdToSessionTable (20110414180600)  (0.3ms) BEGIN  (0.5ms) ALTER TABLE "sessions" ADD COLUMN "local_id" integer  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110414180600')  (5.5ms) COMMIT Migrating to AddRoutesTable (20110415175705)  (0.2ms) BEGIN  (14.3ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))   (0.3ms) ALTER TABLE "sessions" DROP "routes"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110415175705')  (11.3ms) COMMIT Migrating to ConvertBinary (20110422000000)  (0.3ms) BEGIN  (0.3ms) ALTER TABLE "web_pages" RENAME COLUMN "body" TO "body_text"  (0.2ms) ALTER TABLE "web_pages" RENAME COLUMN "request" TO "request_text"  (0.3ms) ALTER TABLE "web_vulns" RENAME COLUMN "request" TO "request_text"  (0.2ms) ALTER TABLE "web_vulns" RENAME COLUMN "proof" TO "proof_text"  (0.3ms) ALTER TABLE "web_pages" ADD COLUMN "body" bytea  (0.3ms) ALTER TABLE "web_pages" ADD COLUMN "request" bytea  (0.3ms) ALTER TABLE "web_vulns" ADD COLUMN "request" bytea  (0.2ms) ALTER TABLE "web_vulns" ADD COLUMN "proof" bytea ConvertBinary::WebPage Load (0.4ms) SELECT "web_pages".* FROM "web_pages" ConvertBinary::WebPage Load (0.2ms) SELECT "web_pages".* FROM "web_pages"  ConvertBinary::WebVuln Load (0.4ms) SELECT "web_vulns".* FROM "web_vulns" ConvertBinary::WebVuln Load (0.2ms) SELECT "web_vulns".* FROM "web_vulns"   (0.3ms) ALTER TABLE "web_pages" DROP "body_text"  (0.2ms) ALTER TABLE "web_pages" DROP "request_text"  (0.3ms) ALTER TABLE "web_vulns" DROP "request_text"  (0.2ms) ALTER TABLE "web_vulns" DROP "proof_text"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110422000000')  (6.0ms) COMMIT Migrating to AddLastSeenToSessions (20110425095900)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "sessions" ADD COLUMN "last_seen" timestamp  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110425095900')  (11.0ms) COMMIT Migrating to TrackSuccessfulExploits (20110513143900)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "vulns" ADD COLUMN "exploited_at" timestamp TrackSuccessfulExploits::ExploitedHost Load (0.3ms) SELECT "exploited_hosts".* FROM "exploited_hosts"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110513143900')  (6.1ms) COMMIT Migrating to RenameAndPruneNessusVulns (20110517160800)  (0.2ms) BEGIN RenameAndPruneNessusVulns::Vuln Load (0.2ms) SELECT "vulns".* FROM "vulns"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110517160800')  (6.0ms) COMMIT Migrating to AddTaskIdToReportsTable (20110527000000)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "reports" ADD COLUMN "task_id" integer  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110527000000')  (5.9ms) COMMIT Migrating to AddApiKeysTable (20110527000001)  (0.3ms) BEGIN  (14.4ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110527000001')  (5.9ms) COMMIT Migrating to AddMacrosTable (20110606000001)  (4.5ms) BEGIN  (13.8ms) 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)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110606000001')  (6.4ms) COMMIT Migrating to AddSettingsToTasksTable (20110622000000)  (5.0ms) BEGIN  (0.4ms) ALTER TABLE "tasks" ADD COLUMN "settings" bytea  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110622000000')  (6.2ms) COMMIT Migrating to AddListenersTable (20110624000001)  (0.3ms) BEGIN  (20.2ms) 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)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110624000001')  (4.8ms) COMMIT Migrating to AddMacroToListenersTable (20110625000001)  (0.3ms) BEGIN  (0.3ms) ALTER TABLE "listeners" ADD COLUMN "macro" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110625000001')  (5.7ms) COMMIT Migrating to AddNexposeConsolesTable (20110630000001)  (0.3ms) BEGIN  (15.2ms) 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)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110630000001')  (6.1ms) COMMIT Migrating to AddNameToNexposeConsolesTable (20110630000002)  (5.0ms) BEGIN  (0.4ms) ALTER TABLE "nexpose_consoles" ADD COLUMN "name" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110630000002')  (6.3ms) COMMIT Migrating to AddProfilesTable (20110717000001)  (0.2ms) BEGIN  (14.6ms) 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)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110717000001')  (6.3ms) COMMIT Migrating to ExpandCredPtypeColumn (20110727163801)  (4.4ms) BEGIN  (0.3ms) ALTER TABLE "creds" ALTER COLUMN "ptype" TYPE character varying(256)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110727163801')  (6.0ms) COMMIT Migrating to AddInitialIndexes (20110730000001)  (0.2ms) BEGIN  (6.7ms) CREATE INDEX "index_hosts_on_address" ON "hosts" ("address")  (7.0ms) CREATE INDEX "index_hosts_on_address6" ON "hosts" ("address6")  (6.5ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.7ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.7ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (0.6ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.7ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.7ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.6ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.6ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (0.8ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.7ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (0.6ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (0.7ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (0.7ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (0.7ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.6ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.6ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.6ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (0.7ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (0.6ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (0.6ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.6ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110730000001')  (0.5ms) COMMIT Migrating to PruneIndexes (20110812000001)  (0.1ms) BEGIN  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110812000001')  (5.7ms) COMMIT Migrating to ExpandNotes (20110922000000)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "notes" ALTER COLUMN "data" TYPE text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110922000000')  (6.2ms) COMMIT Migrating to AddModRefTable (20110928101300)  (0.2ms) BEGIN  (14.1ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110928101300')  (5.8ms) COMMIT Migrating to AddDisplayNameToReportsTable (20111011110000)  (4.5ms) BEGIN  (0.5ms) ALTER TABLE "reports" ADD COLUMN "name" character varying(63) AddDisplayNameToReportsTable::Report Load (0.5ms) SELECT "reports".* FROM "reports"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20111011110000')  (5.6ms) COMMIT Migrating to InetColumns (20111203000000)  (0.1ms) BEGIN  (28.8ms) ALTER TABLE "hosts" ALTER COLUMN "address" TYPE INET using address::INET  (0.3ms) ALTER TABLE "hosts" DROP "address6"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20111203000000')  (1.2ms) COMMIT Migrating to MoreInetColumns (20111204000000)  (0.1ms) BEGIN  (14.2ms) ALTER TABLE "wmap_requests" ALTER COLUMN "address" TYPE INET using address::INET  (0.3ms) ALTER TABLE "wmap_requests" DROP "address6"  (13.6ms) ALTER TABLE "wmap_targets" ALTER COLUMN "address" TYPE INET using address::INET  (0.2ms) ALTER TABLE "wmap_targets" DROP "address6"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20111204000000')  (1.1ms) COMMIT Migrating to AddScopeToHosts (20111210000000)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "hosts" ADD COLUMN "scope" text  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20111210000000')  (6.2ms) COMMIT Migrating to AddVirtualHostToHosts (20120126110000)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "hosts" ADD COLUMN "virtual_host" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120126110000')  (6.3ms) COMMIT Migrating to RenameWorkspaceMembers (20120411173220)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "project_members" RENAME TO "workspace_members"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120411173220')  (0.3ms) COMMIT Migrating to AddCounterCachesToHosts (20120601152442)  (0.1ms) BEGIN  (28.1ms) ALTER TABLE "hosts" ADD COLUMN "note_count" integer DEFAULT 0  (4.8ms) ALTER TABLE "hosts" ADD COLUMN "vuln_count" integer DEFAULT 0  (5.0ms) ALTER TABLE "hosts" ADD COLUMN "service_count" integer DEFAULT 0 Mdm::Host Load (0.4ms) SELECT "hosts".* FROM "hosts"   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120601152442')  (2.2ms) COMMIT Migrating to AddVulnDetails (20120625000000)  (0.4ms) BEGIN  (15.3ms) 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)   (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000000')  (5.8ms) COMMIT Migrating to AddHostDetails (20120625000001)  (0.2ms) BEGIN  (7.6ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000001')  (5.4ms) COMMIT Migrating to ExpandDetails (20120625000002)  (6.0ms) BEGIN  (0.4ms) ALTER TABLE "vuln_details" ADD COLUMN "nx_vuln_status" text  (0.2ms) ALTER TABLE "vuln_details" ADD COLUMN "nx_proof_key" text  (0.2ms) ALTER TABLE "vuln_details" ADD COLUMN "src" character varying(255)  (0.2ms) ALTER TABLE "host_details" ADD COLUMN "src" character varying(255)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000002')  (5.9ms) COMMIT Migrating to ExpandDetails2 (20120625000003)  (0.2ms) BEGIN  (7.2ms) ALTER TABLE "host_details" ADD COLUMN "nx_site_name" character varying(255)  (0.3ms) ALTER TABLE "host_details" ADD COLUMN "nx_site_importance" character varying(255)  (0.2ms) ALTER TABLE "host_details" ADD COLUMN "nx_scan_template" character varying(255)  (0.2ms) ALTER TABLE "host_details" ADD COLUMN "nx_risk_score" float  (0.2ms) ALTER TABLE "vuln_details" ADD COLUMN "nx_scan_id" integer  (0.2ms) ALTER TABLE "vuln_details" ADD COLUMN "nx_vulnerable_since" timestamp  (0.2ms) ALTER TABLE "vuln_details" ADD COLUMN "nx_pci_compliance_status" character varying(255)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000003')  (6.1ms) COMMIT Migrating to AddVulnAttempts (20120625000004)  (0.2ms) BEGIN  (14.5ms) 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)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000004')  (8.9ms) COMMIT Migrating to AddVulnAndHostCounterCaches (20120625000005)  (0.3ms) BEGIN  (27.6ms) ALTER TABLE "hosts" ADD COLUMN "host_detail_count" integer DEFAULT 0  (3.2ms) ALTER TABLE "vulns" ADD COLUMN "vuln_detail_count" integer DEFAULT 0  (2.8ms) ALTER TABLE "vulns" ADD COLUMN "vuln_attempt_count" integer DEFAULT 0  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000005')  (1.7ms) COMMIT Migrating to AddModuleDetails (20120625000006)  (0.2ms) BEGIN  (14.6ms) 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)  (6.6ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (0.9ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.7ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.7ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (2.5ms) CREATE TABLE "module_authors" ("id" serial primary key, "module_detail_id" integer, "name" text, "email" text)   (0.6ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("module_detail_id")  (2.3ms) CREATE TABLE "module_mixins" ("id" serial primary key, "module_detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("module_detail_id")  (2.2ms) CREATE TABLE "module_targets" ("id" serial primary key, "module_detail_id" integer, "index" integer, "name" text)   (0.7ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("module_detail_id")  (2.2ms) CREATE TABLE "module_actions" ("id" serial primary key, "module_detail_id" integer, "name" text)   (0.6ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("module_detail_id")  (2.2ms) CREATE TABLE "module_refs" ("id" serial primary key, "module_detail_id" integer, "name" text)   (0.5ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("module_detail_id")  (0.6ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.2ms) CREATE TABLE "module_archs" ("id" serial primary key, "module_detail_id" integer, "name" text)  (0.6ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("module_detail_id")  (2.3ms) CREATE TABLE "module_platforms" ("id" serial primary key, "module_detail_id" integer, "name" text)  (0.6ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("module_detail_id")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000006')  (1.2ms) COMMIT Migrating to AddExploitAttempts (20120625000007)  (0.5ms) BEGIN  (13.7ms) 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))   (18.3ms) ALTER TABLE "hosts" ADD COLUMN "exploit_attempt_count" integer DEFAULT 0  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000007')  (1.8ms) COMMIT Migrating to AddFailMessage (20120625000008)  (0.3ms) BEGIN  (0.3ms) ALTER TABLE "vuln_attempts" ADD COLUMN "fail_detail" text  (0.2ms) ALTER TABLE "exploit_attempts" ADD COLUMN "fail_detail" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000008')  (5.9ms) COMMIT Migrating to AddOwnerAndPayloadToWebVulns (20120718202805)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "web_vulns" ADD COLUMN "owner" character varying(255)  (0.3ms) ALTER TABLE "web_vulns" ADD COLUMN "payload" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120718202805')  (5.4ms) COMMIT Migrating to ChangeRequiredColumnsToNullFalseInWebVulns (20130228214900)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "web_vulns" ALTER "category" SET NOT NULL  (0.2ms) ALTER TABLE "web_vulns" ALTER "confidence" SET NOT NULL  (0.2ms) ALTER TABLE "web_vulns" ALTER "method" SET NOT NULL  (0.2ms) ALTER TABLE "web_vulns" ALTER "name" SET NOT NULL  (0.2ms) ALTER TABLE "web_vulns" ALTER "params" SET NOT NULL  (0.2ms) ALTER TABLE "web_vulns" ALTER "path" SET NOT NULL  (0.2ms) ALTER TABLE "web_vulns" ALTER "pname" SET NOT NULL  (0.2ms) ALTER TABLE "web_vulns" ALTER "proof" SET NOT NULL  (0.2ms) ALTER TABLE "web_vulns" ALTER "risk" SET NOT NULL  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130228214900')  (6.2ms) COMMIT Migrating to ChangeForeignKeyInModuleActions (20130412154159)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "module_actions" RENAME COLUMN "module_detail_id" TO "detail_id"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130412154159')  (6.2ms) COMMIT Migrating to ChangeForeignKeyInModuleArchs (20130412171844)  (0.2ms) BEGIN  (0.2ms) ALTER TABLE "module_archs" RENAME COLUMN "module_detail_id" TO "detail_id"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130412171844')  (6.0ms) COMMIT Migrating to ChangeForeignKeyInModuleAuthors (20130412173121)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "module_authors" RENAME COLUMN "module_detail_id" TO "detail_id"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130412173121')  (6.1ms) COMMIT Migrating to ChangeForeignKeyInModuleMixins (20130412173640)  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "module_mixins" RENAME COLUMN "module_detail_id" TO "detail_id"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130412173640')  (6.2ms) COMMIT Migrating to ChangeForeignKeyInModulePlatforms (20130412174254)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "module_platforms" RENAME COLUMN "module_detail_id" TO "detail_id"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130412174254')  (6.3ms) COMMIT Migrating to ChangeForeignKeyInModuleRefs (20130412174719)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "module_refs" RENAME COLUMN "module_detail_id" TO "detail_id"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130412174719')  (5.9ms) COMMIT Migrating to ChangeForeignKeyInModuleTargets (20130412175040)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "module_targets" RENAME COLUMN "module_detail_id" TO "detail_id"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130412175040')  (5.9ms) COMMIT Migrating to AddCredsCounterCache (20130423211152)  (0.2ms) BEGIN  (28.1ms) ALTER TABLE "hosts" ADD COLUMN "cred_count" integer DEFAULT 0 Mdm::Cred Load (0.3ms) SELECT "creds".* FROM "creds"   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130423211152')  (1.1ms) COMMIT Migrating to ChangeRequiredColumnsToNullFalseInHosts (20130430151353)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "hosts" ALTER "address" SET NOT NULL  (0.2ms) ALTER TABLE "hosts" ALTER "workspace_id" SET NOT NULL  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130430151353')  (5.9ms) COMMIT Migrating to EnforceAddressUniquenessInWorkspaceInHosts (20130430162145)  (0.2ms) BEGIN  (0.8ms) SELECT workspace_id, address, count_addr FROM ( SELECT workspace_id, address, COUNT(address) AS count_addr FROM hosts GROUP BY address, workspace_id ) X WHERE count_addr > 1  (0.2ms) DROP INDEX "index_hosts_on_address"  (6.9ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130430162145')  (6.6ms) COMMIT Migrating to RemoveCampaigns (20130510021637)  (0.1ms) BEGIN  (0.8ms) DROP TABLE "attachments"  (0.3ms) DROP TABLE "attachments_email_templates"  (0.7ms) DROP TABLE "email_addresses"  (0.6ms) DROP TABLE "email_templates"  (0.7ms) DROP TABLE "web_templates"  (0.7ms) DROP TABLE "campaigns"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130510021637')  (7.2ms) COMMIT Migrating to ChangeWebVulnsConfidenceToInteger (20130515164311)  (0.2ms) BEGIN  (26.2ms) ALTER TABLE web_vulns ALTER COLUMN confidence TYPE integer USING confidence::integer  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130515164311')  (0.8ms) COMMIT Migrating to ValidMdmWebVulnParams (20130515172727)  (0.1ms) BEGIN Mdm::WebVuln Load (0.5ms) SELECT "web_vulns".* FROM "web_vulns" ORDER BY "web_vulns"."id" ASC LIMIT 1000  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130515172727')  (6.1ms) COMMIT Migrating to MakingVulnsRefsARealArModel (20130516204810)  (0.2ms) BEGIN  (8.0ms) ALTER TABLE "vulns_refs" ADD COLUMN "id" serial primary key  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130516204810')  (6.6ms) COMMIT Migrating to CreateTaskCreds (20130522001343)  (5.8ms) BEGIN  (7.6ms) 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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130522001343')  (5.7ms) COMMIT Migrating to CreateTaskHosts (20130522032517)  (6.1ms) BEGIN  (7.8ms) 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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130522032517')  (6.2ms) COMMIT Migrating to CreateTaskServices (20130522041110)  (6.1ms) BEGIN  (2.1ms) 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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130522041110')  (0.4ms) COMMIT Migrating to RemoveCampaignIdFromClients (20130525015035)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "clients" DROP "campaign_id"  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130525015035')  (5.8ms) COMMIT Migrating to DropTableImportedCreds (20130525212420)  (0.2ms) BEGIN  (0.9ms) DROP TABLE "imported_creds"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130525212420')  (6.5ms) COMMIT Migrating to MakingHostTagsARealArModel (20130531144949)  (0.2ms) BEGIN  (8.1ms) ALTER TABLE "hosts_tags" ADD COLUMN "id" serial primary key  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130531144949')  (6.3ms) COMMIT Migrating to CreateTaskSessions (20130604145732)  (6.1ms) BEGIN  (7.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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130604145732')  (6.3ms) COMMIT Migrating to RemovePnameValidation (20130717150737)  (6.1ms) BEGIN  (0.4ms) ALTER TABLE "web_vulns" ALTER COLUMN "pname" TYPE text  (0.2ms) ALTER TABLE "web_vulns" ALTER "pname" DROP NOT NULL  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130717150737')  (6.1ms) COMMIT Migrating to CreateMetasploitCredentialPublics (20140331173835) Migrating to CreateMetasploitCredentialPrivates (20140407212345) Migrating to CreateMetasploitCredentialRealms (20140410132401) Migrating to UniqueMetasploitCredentialRealms (20140410161611) Migrating to CreateMetasploitCredentialOriginManuals (20140410191213)  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (127.1ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (351.6ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.0ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.5ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (3.0ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.7ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (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), "fail_detail" text)  (2.5ms) 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)   (3.0ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.4ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.8ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.9ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.3ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.9ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (1.9ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (2.9ms) 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, "macro" text)   (2.7ms) 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, "content_type" character varying(255), "name" text, "info" text)  (19.9ms) 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)   (2.1ms) 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)  (0.7ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.6ms) 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)  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.9ms) 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)  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.9ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.6ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)  (2.6ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)   (0.7ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.8ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.5ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)   (0.8ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.7ms) 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)   (1.0ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.8ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.8ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.8ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.6ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.3ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)  (0.7ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.3ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.7ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.7ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (2.8ms) 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, "name" text)   (2.8ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)  (0.9ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (3.2ms) 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)  (3.0ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)   (0.9ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.7ms) 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)   (2.8ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))  (2.6ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))   (2.5ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)  (0.8ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.8ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.8ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.7ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.8ms) 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)   (3.0ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)  (2.9ms) 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)   (1.8ms) 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)  (1.8ms) 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)   (2.1ms) 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)  (1.8ms) 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)   (2.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, "result" text, "module_uuid" character varying(8), "settings" bytea)  (3.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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)   (3.1ms) 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, "fail_detail" text)  (3.3ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))   (3.0ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)  (0.9ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (1.8ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)  (2.7ms) 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, "query" text)   (0.7ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.7ms) 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, "headers" text, "body" bytea, "request" bytea)   (0.8ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.9ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.6ms) 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)  (0.9ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.9ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.8ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (2.7ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)  (0.9ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.8ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.8ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (2.8ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)  (2.7ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)   (0.7ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)  (2.7ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (6.7ms) SELECT version FROM schema_migrations Connecting to database specified by database.yml  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateTables (0) Migrating to AddWmapTables (1) Migrating to AddWorkspaces (2) Migrating to MoveNotes (3) Migrating to AddEventsTable (4) Migrating to ExpandInfo (5) Migrating to AddTimestamps (6) Migrating to AddLoots (7) Migrating to CreateUsers (8) Migrating to AddLootsCtype (9) Migrating to AddAlertFields (10) Migrating to AddReports (11) Migrating to AddTasks (12) Migrating to AddTasksResult (13) Migrating to AddLootsFields (14) Migrating to RenameUser (15) Migrating to AddHostPurpose (16) Migrating to ExpandInfo2 (17) Migrating to AddWorkspaceUserInfo (18) Migrating to AddWorkspaceDesc (19) Migrating to AddUserPreferences (20) Migrating to StandardizeInfoAndData (21) Migrating to EnlargeEventInfo (22) Migrating to AddReportDownloadedAt (23) Migrating to ConvertServiceInfoToText (24) Migrating to AddUserAdmin (25) Migrating to AddCredsTable (26) Migrating to MigrateCredData (20100819123300) Migrating to AddExploitedTable (20100824151500) Migrating to AddOwnerToWorkspaces (20100908001428) Migrating to AddReportTemplates (20100911122000) Migrating to RequireAdminFlag (20100916151530) Migrating to AddCampaignsAndTemplates (20100916175000) Migrating to AddGenerateExeColumn (20100920012100) Migrating to AddTemplatePrefs (20100926214000) Migrating to AddWebTables (20101001000000) Migrating to AddQuery (20101002000000) Migrating to AddVulnInfo (20101007000000) Migrating to AddClientsToCampaigns (20101008111800) Migrating to AddCampaignAttachments (20101009023300) Migrating to AddImportedCreds (20101104135100) Migrating to FixWebTables (20101203000000) Migrating to ExpandHostComment (20101203000001) Migrating to AddLimitToNetworkToWorkspaces (20101206212033) Migrating to AddModuleUuidToTasks (20110112154300) Migrating to AddHostTags (20110204112800) Migrating to AddSessionTable (20110317144932) Migrating to AddLocalIdToSessionTable (20110414180600) Migrating to AddRoutesTable (20110415175705) Migrating to ConvertBinary (20110422000000) Migrating to AddLastSeenToSessions (20110425095900) Migrating to TrackSuccessfulExploits (20110513143900) Migrating to RenameAndPruneNessusVulns (20110517160800) Migrating to AddTaskIdToReportsTable (20110527000000) Migrating to AddApiKeysTable (20110527000001) Migrating to AddMacrosTable (20110606000001) Migrating to AddSettingsToTasksTable (20110622000000) Migrating to AddListenersTable (20110624000001) Migrating to AddMacroToListenersTable (20110625000001) Migrating to AddNexposeConsolesTable (20110630000001) Migrating to AddNameToNexposeConsolesTable (20110630000002) Migrating to AddProfilesTable (20110717000001) Migrating to ExpandCredPtypeColumn (20110727163801) Migrating to AddInitialIndexes (20110730000001) Migrating to PruneIndexes (20110812000001) Migrating to ExpandNotes (20110922000000) Migrating to AddModRefTable (20110928101300) Migrating to AddDisplayNameToReportsTable (20111011110000) Migrating to InetColumns (20111203000000) Migrating to MoreInetColumns (20111204000000) Migrating to AddScopeToHosts (20111210000000) Migrating to AddVirtualHostToHosts (20120126110000) Migrating to RenameWorkspaceMembers (20120411173220) Migrating to AddCounterCachesToHosts (20120601152442) Migrating to AddVulnDetails (20120625000000) Migrating to AddHostDetails (20120625000001) Migrating to ExpandDetails (20120625000002) Migrating to ExpandDetails2 (20120625000003) Migrating to AddVulnAttempts (20120625000004) Migrating to AddVulnAndHostCounterCaches (20120625000005) Migrating to AddModuleDetails (20120625000006) Migrating to AddExploitAttempts (20120625000007) Migrating to AddFailMessage (20120625000008) Migrating to AddOwnerAndPayloadToWebVulns (20120718202805) Migrating to ChangeRequiredColumnsToNullFalseInWebVulns (20130228214900) Migrating to ChangeForeignKeyInModuleActions (20130412154159) Migrating to ChangeForeignKeyInModuleArchs (20130412171844) Migrating to ChangeForeignKeyInModuleAuthors (20130412173121) Migrating to ChangeForeignKeyInModuleMixins (20130412173640) Migrating to ChangeForeignKeyInModulePlatforms (20130412174254) Migrating to ChangeForeignKeyInModuleRefs (20130412174719) Migrating to ChangeForeignKeyInModuleTargets (20130412175040) Migrating to AddCredsCounterCache (20130423211152) Migrating to ChangeRequiredColumnsToNullFalseInHosts (20130430151353) Migrating to EnforceAddressUniquenessInWorkspaceInHosts (20130430162145) Migrating to RemoveCampaigns (20130510021637) Migrating to ChangeWebVulnsConfidenceToInteger (20130515164311) Migrating to ValidMdmWebVulnParams (20130515172727) Migrating to MakingVulnsRefsARealArModel (20130516204810) Migrating to CreateTaskCreds (20130522001343) Migrating to CreateTaskHosts (20130522032517) Migrating to CreateTaskServices (20130522041110) Migrating to RemoveCampaignIdFromClients (20130525015035) Migrating to DropTableImportedCreds (20130525212420) Migrating to MakingHostTagsARealArModel (20130531144949) Migrating to CreateTaskSessions (20130604145732) Migrating to RemovePnameValidation (20130717150737) Migrating to CreateMetasploitCredentialPublics (20140331173835) Migrating to CreateMetasploitCredentialPrivates (20140407212345) Migrating to CreateMetasploitCredentialRealms (20140410132401) Migrating to UniqueMetasploitCredentialRealms (20140410161611) Migrating to CreateMetasploitCredentialOriginManuals (20140410191213) Migrating to CreateMetasploitCredentialOriginImports (20140410205410)  (0.1ms) BEGIN  (9.6ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.2ms) CREATE UNIQUE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140410205410')  (1.7ms) COMMIT  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" Migrating to CreateMetasploitCredentialOriginImports (20140410205410)  (0.2ms) BEGIN  (7.0ms) DROP INDEX "index_metasploit_credential_origin_imports_on_task_id"  (1.4ms) DROP TABLE "metasploit_credential_origin_imports"  (0.5ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20140410205410'  (6.3ms) COMMIT  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" Connecting to database specified by database.yml  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateTables (0) Migrating to AddWmapTables (1) Migrating to AddWorkspaces (2) Migrating to MoveNotes (3) Migrating to AddEventsTable (4) Migrating to ExpandInfo (5) Migrating to AddTimestamps (6) Migrating to AddLoots (7) Migrating to CreateUsers (8) Migrating to AddLootsCtype (9) Migrating to AddAlertFields (10) Migrating to AddReports (11) Migrating to AddTasks (12) Migrating to AddTasksResult (13) Migrating to AddLootsFields (14) Migrating to RenameUser (15) Migrating to AddHostPurpose (16) Migrating to ExpandInfo2 (17) Migrating to AddWorkspaceUserInfo (18) Migrating to AddWorkspaceDesc (19) Migrating to AddUserPreferences (20) Migrating to StandardizeInfoAndData (21) Migrating to EnlargeEventInfo (22) Migrating to AddReportDownloadedAt (23) Migrating to ConvertServiceInfoToText (24) Migrating to AddUserAdmin (25) Migrating to AddCredsTable (26) Migrating to MigrateCredData (20100819123300) Migrating to AddExploitedTable (20100824151500) Migrating to AddOwnerToWorkspaces (20100908001428) Migrating to AddReportTemplates (20100911122000) Migrating to RequireAdminFlag (20100916151530) Migrating to AddCampaignsAndTemplates (20100916175000) Migrating to AddGenerateExeColumn (20100920012100) Migrating to AddTemplatePrefs (20100926214000) Migrating to AddWebTables (20101001000000) Migrating to AddQuery (20101002000000) Migrating to AddVulnInfo (20101007000000) Migrating to AddClientsToCampaigns (20101008111800) Migrating to AddCampaignAttachments (20101009023300) Migrating to AddImportedCreds (20101104135100) Migrating to FixWebTables (20101203000000) Migrating to ExpandHostComment (20101203000001) Migrating to AddLimitToNetworkToWorkspaces (20101206212033) Migrating to AddModuleUuidToTasks (20110112154300) Migrating to AddHostTags (20110204112800) Migrating to AddSessionTable (20110317144932) Migrating to AddLocalIdToSessionTable (20110414180600) Migrating to AddRoutesTable (20110415175705) Migrating to ConvertBinary (20110422000000) Migrating to AddLastSeenToSessions (20110425095900) Migrating to TrackSuccessfulExploits (20110513143900) Migrating to RenameAndPruneNessusVulns (20110517160800) Migrating to AddTaskIdToReportsTable (20110527000000) Migrating to AddApiKeysTable (20110527000001) Migrating to AddMacrosTable (20110606000001) Migrating to AddSettingsToTasksTable (20110622000000) Migrating to AddListenersTable (20110624000001) Migrating to AddMacroToListenersTable (20110625000001) Migrating to AddNexposeConsolesTable (20110630000001) Migrating to AddNameToNexposeConsolesTable (20110630000002) Migrating to AddProfilesTable (20110717000001) Migrating to ExpandCredPtypeColumn (20110727163801) Migrating to AddInitialIndexes (20110730000001) Migrating to PruneIndexes (20110812000001) Migrating to ExpandNotes (20110922000000) Migrating to AddModRefTable (20110928101300) Migrating to AddDisplayNameToReportsTable (20111011110000) Migrating to InetColumns (20111203000000) Migrating to MoreInetColumns (20111204000000) Migrating to AddScopeToHosts (20111210000000) Migrating to AddVirtualHostToHosts (20120126110000) Migrating to RenameWorkspaceMembers (20120411173220) Migrating to AddCounterCachesToHosts (20120601152442) Migrating to AddVulnDetails (20120625000000) Migrating to AddHostDetails (20120625000001) Migrating to ExpandDetails (20120625000002) Migrating to ExpandDetails2 (20120625000003) Migrating to AddVulnAttempts (20120625000004) Migrating to AddVulnAndHostCounterCaches (20120625000005) Migrating to AddModuleDetails (20120625000006) Migrating to AddExploitAttempts (20120625000007) Migrating to AddFailMessage (20120625000008) Migrating to AddOwnerAndPayloadToWebVulns (20120718202805) Migrating to ChangeRequiredColumnsToNullFalseInWebVulns (20130228214900) Migrating to ChangeForeignKeyInModuleActions (20130412154159) Migrating to ChangeForeignKeyInModuleArchs (20130412171844) Migrating to ChangeForeignKeyInModuleAuthors (20130412173121) Migrating to ChangeForeignKeyInModuleMixins (20130412173640) Migrating to ChangeForeignKeyInModulePlatforms (20130412174254) Migrating to ChangeForeignKeyInModuleRefs (20130412174719) Migrating to ChangeForeignKeyInModuleTargets (20130412175040) Migrating to AddCredsCounterCache (20130423211152) Migrating to ChangeRequiredColumnsToNullFalseInHosts (20130430151353) Migrating to EnforceAddressUniquenessInWorkspaceInHosts (20130430162145) Migrating to RemoveCampaigns (20130510021637) Migrating to ChangeWebVulnsConfidenceToInteger (20130515164311) Migrating to ValidMdmWebVulnParams (20130515172727) Migrating to MakingVulnsRefsARealArModel (20130516204810) Migrating to CreateTaskCreds (20130522001343) Migrating to CreateTaskHosts (20130522032517) Migrating to CreateTaskServices (20130522041110) Migrating to RemoveCampaignIdFromClients (20130525015035) Migrating to DropTableImportedCreds (20130525212420) Migrating to MakingHostTagsARealArModel (20130531144949) Migrating to CreateTaskSessions (20130604145732) Migrating to RemovePnameValidation (20130717150737) Migrating to CreateMetasploitCredentialPublics (20140331173835) Migrating to CreateMetasploitCredentialPrivates (20140407212345) Migrating to CreateMetasploitCredentialRealms (20140410132401) Migrating to UniqueMetasploitCredentialRealms (20140410161611) Migrating to CreateMetasploitCredentialOriginManuals (20140410191213) Migrating to CreateMetasploitCredentialOriginImports (20140410205410)  (0.2ms) BEGIN  (8.2ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.9ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140410205410')  (1.0ms) COMMIT  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (131.3ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (356.7ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.7ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (4.5ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (3.1ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.9ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.8ms) 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), "fail_detail" text)  (2.8ms) 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)   (2.7ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.4ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.8ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.8ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.1ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (1.4ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.2ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.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, "macro" text)   (3.0ms) 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, "content_type" character varying(255), "name" text, "info" text)  (2.8ms) 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)   (2.8ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.9ms) 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)  (1.0ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (4.2ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (2.4ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.8ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.7ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)  (2.8ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)   (1.0ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.7ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.7ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)   (0.8ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.8ms) 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)   (0.9ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.8ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.8ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (1.0ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.6ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.7ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.7ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.8ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.0ms) 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, "name" text)   (3.1ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)  (0.8ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.9ms) 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)  (2.6ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)   (0.9ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.8ms) 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)   (2.9ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))  (2.7ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))   (2.8ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)  (0.9ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.8ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.8ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.8ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.7ms) 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)   (2.9ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)  (4.1ms) 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)   (2.1ms) 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)  (2.0ms) 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)   (1.9ms) 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)  (2.0ms) 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)   (2.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, "result" text, "module_uuid" character varying(8), "settings" bytea)  (3.0ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)   (2.7ms) 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, "fail_detail" text)  (3.2ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))   (2.9ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)  (0.9ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (1.9ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)  (2.7ms) 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, "query" text)   (0.9ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.9ms) 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, "headers" text, "body" bytea, "request" bytea)   (1.0ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (1.0ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.9ms) 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)  (0.8ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.8ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.8ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.2ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)  (0.9ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.9ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.9ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (2.8ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)  (2.7ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)   (0.8ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)  (2.9ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (1.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateTables (0) Migrating to AddWmapTables (1) Migrating to AddWorkspaces (2) Migrating to MoveNotes (3) Migrating to AddEventsTable (4) Migrating to ExpandInfo (5) Migrating to AddTimestamps (6) Migrating to AddLoots (7) Migrating to CreateUsers (8) Migrating to AddLootsCtype (9) Migrating to AddAlertFields (10) Migrating to AddReports (11) Migrating to AddTasks (12) Migrating to AddTasksResult (13) Migrating to AddLootsFields (14) Migrating to RenameUser (15) Migrating to AddHostPurpose (16) Migrating to ExpandInfo2 (17) Migrating to AddWorkspaceUserInfo (18) Migrating to AddWorkspaceDesc (19) Migrating to AddUserPreferences (20) Migrating to StandardizeInfoAndData (21) Migrating to EnlargeEventInfo (22) Migrating to AddReportDownloadedAt (23) Migrating to ConvertServiceInfoToText (24) Migrating to AddUserAdmin (25) Migrating to AddCredsTable (26) Migrating to MigrateCredData (20100819123300) Migrating to AddExploitedTable (20100824151500) Migrating to AddOwnerToWorkspaces (20100908001428) Migrating to AddReportTemplates (20100911122000) Migrating to RequireAdminFlag (20100916151530) Migrating to AddCampaignsAndTemplates (20100916175000) Migrating to AddGenerateExeColumn (20100920012100) Migrating to AddTemplatePrefs (20100926214000) Migrating to AddWebTables (20101001000000) Migrating to AddQuery (20101002000000) Migrating to AddVulnInfo (20101007000000) Migrating to AddClientsToCampaigns (20101008111800) Migrating to AddCampaignAttachments (20101009023300) Migrating to AddImportedCreds (20101104135100) Migrating to FixWebTables (20101203000000) Migrating to ExpandHostComment (20101203000001) Migrating to AddLimitToNetworkToWorkspaces (20101206212033) Migrating to AddModuleUuidToTasks (20110112154300) Migrating to AddHostTags (20110204112800) Migrating to AddSessionTable (20110317144932) Migrating to AddLocalIdToSessionTable (20110414180600) Migrating to AddRoutesTable (20110415175705) Migrating to ConvertBinary (20110422000000) Migrating to AddLastSeenToSessions (20110425095900) Migrating to TrackSuccessfulExploits (20110513143900) Migrating to RenameAndPruneNessusVulns (20110517160800) Migrating to AddTaskIdToReportsTable (20110527000000) Migrating to AddApiKeysTable (20110527000001) Migrating to AddMacrosTable (20110606000001) Migrating to AddSettingsToTasksTable (20110622000000) Migrating to AddListenersTable (20110624000001) Migrating to AddMacroToListenersTable (20110625000001) Migrating to AddNexposeConsolesTable (20110630000001) Migrating to AddNameToNexposeConsolesTable (20110630000002) Migrating to AddProfilesTable (20110717000001) Migrating to ExpandCredPtypeColumn (20110727163801) Migrating to AddInitialIndexes (20110730000001) Migrating to PruneIndexes (20110812000001) Migrating to ExpandNotes (20110922000000) Migrating to AddModRefTable (20110928101300) Migrating to AddDisplayNameToReportsTable (20111011110000) Migrating to InetColumns (20111203000000) Migrating to MoreInetColumns (20111204000000) Migrating to AddScopeToHosts (20111210000000) Migrating to AddVirtualHostToHosts (20120126110000) Migrating to RenameWorkspaceMembers (20120411173220) Migrating to AddCounterCachesToHosts (20120601152442) Migrating to AddVulnDetails (20120625000000) Migrating to AddHostDetails (20120625000001) Migrating to ExpandDetails (20120625000002) Migrating to ExpandDetails2 (20120625000003) Migrating to AddVulnAttempts (20120625000004) Migrating to AddVulnAndHostCounterCaches (20120625000005) Migrating to AddModuleDetails (20120625000006) Migrating to AddExploitAttempts (20120625000007) Migrating to AddFailMessage (20120625000008) Migrating to AddOwnerAndPayloadToWebVulns (20120718202805) Migrating to ChangeRequiredColumnsToNullFalseInWebVulns (20130228214900) Migrating to ChangeForeignKeyInModuleActions (20130412154159) Migrating to ChangeForeignKeyInModuleArchs (20130412171844) Migrating to ChangeForeignKeyInModuleAuthors (20130412173121) Migrating to ChangeForeignKeyInModuleMixins (20130412173640) Migrating to ChangeForeignKeyInModulePlatforms (20130412174254) Migrating to ChangeForeignKeyInModuleRefs (20130412174719) Migrating to ChangeForeignKeyInModuleTargets (20130412175040) Migrating to AddCredsCounterCache (20130423211152) Migrating to ChangeRequiredColumnsToNullFalseInHosts (20130430151353) Migrating to EnforceAddressUniquenessInWorkspaceInHosts (20130430162145) Migrating to RemoveCampaigns (20130510021637) Migrating to ChangeWebVulnsConfidenceToInteger (20130515164311) Migrating to ValidMdmWebVulnParams (20130515172727) Migrating to MakingVulnsRefsARealArModel (20130516204810) Migrating to CreateTaskCreds (20130522001343) Migrating to CreateTaskHosts (20130522032517) Migrating to CreateTaskServices (20130522041110) Migrating to RemoveCampaignIdFromClients (20130525015035) Migrating to DropTableImportedCreds (20130525212420) Migrating to MakingHostTagsARealArModel (20130531144949) Migrating to CreateTaskSessions (20130604145732) Migrating to RemovePnameValidation (20130717150737) Migrating to CreateMetasploitCredentialPublics (20140331173835) Migrating to CreateMetasploitCredentialPrivates (20140407212345) Migrating to CreateMetasploitCredentialRealms (20140410132401) Migrating to UniqueMetasploitCredentialRealms (20140410161611) Migrating to CreateMetasploitCredentialOriginManuals (20140410191213) Migrating to CreateMetasploitCredentialOriginImports (20140410205410) Migrating to CreateMetasploitCredentialOriginSessions (20140411142102)  (11.7ms) BEGIN  (69.6ms) CREATE TABLE "metasploit_credential_origin_sessions" ("id" serial primary key, "post_reference_name" text, "session_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) ROLLBACK Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateTables (0) Migrating to AddWmapTables (1) Migrating to AddWorkspaces (2) Migrating to MoveNotes (3) Migrating to AddEventsTable (4) Migrating to ExpandInfo (5) Migrating to AddTimestamps (6) Migrating to AddLoots (7) Migrating to CreateUsers (8) Migrating to AddLootsCtype (9) Migrating to AddAlertFields (10) Migrating to AddReports (11) Migrating to AddTasks (12) Migrating to AddTasksResult (13) Migrating to AddLootsFields (14) Migrating to RenameUser (15) Migrating to AddHostPurpose (16) Migrating to ExpandInfo2 (17) Migrating to AddWorkspaceUserInfo (18) Migrating to AddWorkspaceDesc (19) Migrating to AddUserPreferences (20) Migrating to StandardizeInfoAndData (21) Migrating to EnlargeEventInfo (22) Migrating to AddReportDownloadedAt (23) Migrating to ConvertServiceInfoToText (24) Migrating to AddUserAdmin (25) Migrating to AddCredsTable (26) Migrating to MigrateCredData (20100819123300) Migrating to AddExploitedTable (20100824151500) Migrating to AddOwnerToWorkspaces (20100908001428) Migrating to AddReportTemplates (20100911122000) Migrating to RequireAdminFlag (20100916151530) Migrating to AddCampaignsAndTemplates (20100916175000) Migrating to AddGenerateExeColumn (20100920012100) Migrating to AddTemplatePrefs (20100926214000) Migrating to AddWebTables (20101001000000) Migrating to AddQuery (20101002000000) Migrating to AddVulnInfo (20101007000000) Migrating to AddClientsToCampaigns (20101008111800) Migrating to AddCampaignAttachments (20101009023300) Migrating to AddImportedCreds (20101104135100) Migrating to FixWebTables (20101203000000) Migrating to ExpandHostComment (20101203000001) Migrating to AddLimitToNetworkToWorkspaces (20101206212033) Migrating to AddModuleUuidToTasks (20110112154300) Migrating to AddHostTags (20110204112800) Migrating to AddSessionTable (20110317144932) Migrating to AddLocalIdToSessionTable (20110414180600) Migrating to AddRoutesTable (20110415175705) Migrating to ConvertBinary (20110422000000) Migrating to AddLastSeenToSessions (20110425095900) Migrating to TrackSuccessfulExploits (20110513143900) Migrating to RenameAndPruneNessusVulns (20110517160800) Migrating to AddTaskIdToReportsTable (20110527000000) Migrating to AddApiKeysTable (20110527000001) Migrating to AddMacrosTable (20110606000001) Migrating to AddSettingsToTasksTable (20110622000000) Migrating to AddListenersTable (20110624000001) Migrating to AddMacroToListenersTable (20110625000001) Migrating to AddNexposeConsolesTable (20110630000001) Migrating to AddNameToNexposeConsolesTable (20110630000002) Migrating to AddProfilesTable (20110717000001) Migrating to ExpandCredPtypeColumn (20110727163801) Migrating to AddInitialIndexes (20110730000001) Migrating to PruneIndexes (20110812000001) Migrating to ExpandNotes (20110922000000) Migrating to AddModRefTable (20110928101300) Migrating to AddDisplayNameToReportsTable (20111011110000) Migrating to InetColumns (20111203000000) Migrating to MoreInetColumns (20111204000000) Migrating to AddScopeToHosts (20111210000000) Migrating to AddVirtualHostToHosts (20120126110000) Migrating to RenameWorkspaceMembers (20120411173220) Migrating to AddCounterCachesToHosts (20120601152442) Migrating to AddVulnDetails (20120625000000) Migrating to AddHostDetails (20120625000001) Migrating to ExpandDetails (20120625000002) Migrating to ExpandDetails2 (20120625000003) Migrating to AddVulnAttempts (20120625000004) Migrating to AddVulnAndHostCounterCaches (20120625000005) Migrating to AddModuleDetails (20120625000006) Migrating to AddExploitAttempts (20120625000007) Migrating to AddFailMessage (20120625000008) Migrating to AddOwnerAndPayloadToWebVulns (20120718202805) Migrating to ChangeRequiredColumnsToNullFalseInWebVulns (20130228214900) Migrating to ChangeForeignKeyInModuleActions (20130412154159) Migrating to ChangeForeignKeyInModuleArchs (20130412171844) Migrating to ChangeForeignKeyInModuleAuthors (20130412173121) Migrating to ChangeForeignKeyInModuleMixins (20130412173640) Migrating to ChangeForeignKeyInModulePlatforms (20130412174254) Migrating to ChangeForeignKeyInModuleRefs (20130412174719) Migrating to ChangeForeignKeyInModuleTargets (20130412175040) Migrating to AddCredsCounterCache (20130423211152) Migrating to ChangeRequiredColumnsToNullFalseInHosts (20130430151353) Migrating to EnforceAddressUniquenessInWorkspaceInHosts (20130430162145) Migrating to RemoveCampaigns (20130510021637) Migrating to ChangeWebVulnsConfidenceToInteger (20130515164311) Migrating to ValidMdmWebVulnParams (20130515172727) Migrating to MakingVulnsRefsARealArModel (20130516204810) Migrating to CreateTaskCreds (20130522001343) Migrating to CreateTaskHosts (20130522032517) Migrating to CreateTaskServices (20130522041110) Migrating to RemoveCampaignIdFromClients (20130525015035) Migrating to DropTableImportedCreds (20130525212420) Migrating to MakingHostTagsARealArModel (20130531144949) Migrating to CreateTaskSessions (20130604145732) Migrating to RemovePnameValidation (20130717150737) Migrating to CreateMetasploitCredentialPublics (20140331173835) Migrating to CreateMetasploitCredentialPrivates (20140407212345) Migrating to CreateMetasploitCredentialRealms (20140410132401) Migrating to UniqueMetasploitCredentialRealms (20140410161611) Migrating to CreateMetasploitCredentialOriginManuals (20140410191213) Migrating to CreateMetasploitCredentialOriginImports (20140410205410) Migrating to CreateMetasploitCredentialOriginSessions (20140411142102)  (0.2ms) BEGIN  (4.6ms) CREATE TABLE "metasploit_credential_origin_sessions" ("id" serial primary key, "post_reference_name" text, "session_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.7ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (3.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140411142102')  (0.9ms) COMMIT  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (130.0ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (374.7ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.3ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.8ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (21.0ms) 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(256), "source_id" integer, "source_type" character varying(255))  (3.1ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.8ms) 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), "fail_detail" text)  (2.8ms) 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)   (3.0ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.5ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.1ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.9ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.9ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.4ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.9ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.9ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.1ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.2ms) 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, "macro" text)   (3.0ms) 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, "content_type" character varying(255), "name" text, "info" text)  (21.7ms) 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)   (3.3ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (2.0ms) 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)  (0.8ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (3.0ms) CREATE TABLE "metasploit_credential_origin_sessions" ("id" serial primary key, "post_reference_name" text, "session_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (3.0ms) 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)  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (2.2ms) 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)  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.9ms) 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)  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.9ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)  (3.0ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (3.5ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (3.3ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)   (0.8ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (3.1ms) 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)   (4.2ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.9ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.9ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (1.2ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (3.3ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)  (1.5ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.9ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.7ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.9ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)   (1.0ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.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, "name" text)   (3.0ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)  (1.0ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.7ms) 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)  (2.7ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)   (0.8ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (3.0ms) 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)   (3.0ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))  (2.7ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))   (2.7ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)  (0.9ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.9ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (1.0ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.9ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (3.2ms) 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)   (2.9ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)  (3.0ms) 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)   (2.1ms) 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)  (2.1ms) 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)   (2.0ms) 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)  (2.0ms) 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)   (2.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, "result" text, "module_uuid" character varying(8), "settings" bytea)  (3.2ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)   (3.1ms) 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, "fail_detail" text)  (3.2ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))   (3.1ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)  (1.0ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (1.9ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)  (2.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, "query" text)   (1.0ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.9ms) 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, "headers" text, "body" bytea, "request" bytea)   (1.0ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (1.0ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (3.2ms) 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)  (1.2ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.8ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (1.0ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.0ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)  (0.8ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.9ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (1.0ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (2.9ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)  (2.8ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)   (0.8ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)  (3.2ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (123.7ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (231.4ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (4.9ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.9ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (3.0ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.7ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.7ms) 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), "fail_detail" text)  (2.7ms) 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)   (4.1ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.5ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.8ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.9ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.2ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.9ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (1.9ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.0ms) 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, "macro" text)   (2.8ms) 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, "content_type" character varying(255), "name" text, "info" text)  (3.0ms) 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)   (2.6ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.0ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (2.0ms) 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)  (0.8ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.6ms) CREATE TABLE "metasploit_credential_origin_sessions" ("id" serial primary key, "post_reference_name" text, "session_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (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)  (1.1ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (2.0ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.7ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.9ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)  (3.0ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)   (1.0ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.7ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.8ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)   (0.9ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.9ms) 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)   (0.8ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.8ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.8ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.8ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.7ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.7ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (3.1ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.9ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.8ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.3ms) 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, "name" text)   (2.7ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)  (0.9ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.8ms) 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)  (2.7ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)   (0.8ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (8.5ms) 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)   (3.2ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))  (2.6ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))   (2.8ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)  (1.3ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.8ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.8ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.8ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.7ms) 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)   (2.9ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)  (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)   (1.9ms) 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)  (2.2ms) 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)   (1.8ms) 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)  (2.0ms) 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)   (3.1ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)  (2.8ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)   (2.8ms) 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, "fail_detail" text)  (3.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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))   (7.1ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)  (1.0ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (7.6ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)  (7.9ms) 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, "query" text)   (0.9ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.9ms) 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, "headers" text, "body" bytea, "request" bytea)   (0.9ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.8ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.9ms) 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)  (1.0ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.9ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.9ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.0ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)  (0.9ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.8ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.7ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (2.9ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)  (2.9ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)   (0.7ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)  (2.9ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" Migrating to CreateMetasploitCredentialOriginSessions (20140411142102)  (0.1ms) BEGIN  (0.6ms) DROP INDEX "unique_metasploit_credential_origin_sessions"  (0.9ms) DROP TABLE "metasploit_credential_origin_sessions"  (0.4ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20140411142102'  (7.1ms) COMMIT  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateTables (0) Migrating to AddWmapTables (1) Migrating to AddWorkspaces (2) Migrating to MoveNotes (3) Migrating to AddEventsTable (4) Migrating to ExpandInfo (5) Migrating to AddTimestamps (6) Migrating to AddLoots (7) Migrating to CreateUsers (8) Migrating to AddLootsCtype (9) Migrating to AddAlertFields (10) Migrating to AddReports (11) Migrating to AddTasks (12) Migrating to AddTasksResult (13) Migrating to AddLootsFields (14) Migrating to RenameUser (15) Migrating to AddHostPurpose (16) Migrating to ExpandInfo2 (17) Migrating to AddWorkspaceUserInfo (18) Migrating to AddWorkspaceDesc (19) Migrating to AddUserPreferences (20) Migrating to StandardizeInfoAndData (21) Migrating to EnlargeEventInfo (22) Migrating to AddReportDownloadedAt (23) Migrating to ConvertServiceInfoToText (24) Migrating to AddUserAdmin (25) Migrating to AddCredsTable (26) Migrating to MigrateCredData (20100819123300) Migrating to AddExploitedTable (20100824151500) Migrating to AddOwnerToWorkspaces (20100908001428) Migrating to AddReportTemplates (20100911122000) Migrating to RequireAdminFlag (20100916151530) Migrating to AddCampaignsAndTemplates (20100916175000) Migrating to AddGenerateExeColumn (20100920012100) Migrating to AddTemplatePrefs (20100926214000) Migrating to AddWebTables (20101001000000) Migrating to AddQuery (20101002000000) Migrating to AddVulnInfo (20101007000000) Migrating to AddClientsToCampaigns (20101008111800) Migrating to AddCampaignAttachments (20101009023300) Migrating to AddImportedCreds (20101104135100) Migrating to FixWebTables (20101203000000) Migrating to ExpandHostComment (20101203000001) Migrating to AddLimitToNetworkToWorkspaces (20101206212033) Migrating to AddModuleUuidToTasks (20110112154300) Migrating to AddHostTags (20110204112800) Migrating to AddSessionTable (20110317144932) Migrating to AddLocalIdToSessionTable (20110414180600) Migrating to AddRoutesTable (20110415175705) Migrating to ConvertBinary (20110422000000) Migrating to AddLastSeenToSessions (20110425095900) Migrating to TrackSuccessfulExploits (20110513143900) Migrating to RenameAndPruneNessusVulns (20110517160800) Migrating to AddTaskIdToReportsTable (20110527000000) Migrating to AddApiKeysTable (20110527000001) Migrating to AddMacrosTable (20110606000001) Migrating to AddSettingsToTasksTable (20110622000000) Migrating to AddListenersTable (20110624000001) Migrating to AddMacroToListenersTable (20110625000001) Migrating to AddNexposeConsolesTable (20110630000001) Migrating to AddNameToNexposeConsolesTable (20110630000002) Migrating to AddProfilesTable (20110717000001) Migrating to ExpandCredPtypeColumn (20110727163801) Migrating to AddInitialIndexes (20110730000001) Migrating to PruneIndexes (20110812000001) Migrating to ExpandNotes (20110922000000) Migrating to AddModRefTable (20110928101300) Migrating to AddDisplayNameToReportsTable (20111011110000) Migrating to InetColumns (20111203000000) Migrating to MoreInetColumns (20111204000000) Migrating to AddScopeToHosts (20111210000000) Migrating to AddVirtualHostToHosts (20120126110000) Migrating to RenameWorkspaceMembers (20120411173220) Migrating to AddCounterCachesToHosts (20120601152442) Migrating to AddVulnDetails (20120625000000) Migrating to AddHostDetails (20120625000001) Migrating to ExpandDetails (20120625000002) Migrating to ExpandDetails2 (20120625000003) Migrating to AddVulnAttempts (20120625000004) Migrating to AddVulnAndHostCounterCaches (20120625000005) Migrating to AddModuleDetails (20120625000006) Migrating to AddExploitAttempts (20120625000007) Migrating to AddFailMessage (20120625000008) Migrating to AddOwnerAndPayloadToWebVulns (20120718202805) Migrating to ChangeRequiredColumnsToNullFalseInWebVulns (20130228214900) Migrating to ChangeForeignKeyInModuleActions (20130412154159) Migrating to ChangeForeignKeyInModuleArchs (20130412171844) Migrating to ChangeForeignKeyInModuleAuthors (20130412173121) Migrating to ChangeForeignKeyInModuleMixins (20130412173640) Migrating to ChangeForeignKeyInModulePlatforms (20130412174254) Migrating to ChangeForeignKeyInModuleRefs (20130412174719) Migrating to ChangeForeignKeyInModuleTargets (20130412175040) Migrating to AddCredsCounterCache (20130423211152) Migrating to ChangeRequiredColumnsToNullFalseInHosts (20130430151353) Migrating to EnforceAddressUniquenessInWorkspaceInHosts (20130430162145) Migrating to RemoveCampaigns (20130510021637) Migrating to ChangeWebVulnsConfidenceToInteger (20130515164311) Migrating to ValidMdmWebVulnParams (20130515172727) Migrating to MakingVulnsRefsARealArModel (20130516204810) Migrating to CreateTaskCreds (20130522001343) Migrating to CreateTaskHosts (20130522032517) Migrating to CreateTaskServices (20130522041110) Migrating to RemoveCampaignIdFromClients (20130525015035) Migrating to DropTableImportedCreds (20130525212420) Migrating to MakingHostTagsARealArModel (20130531144949) Migrating to CreateTaskSessions (20130604145732) Migrating to RemovePnameValidation (20130717150737) Migrating to CreateMetasploitCredentialPublics (20140331173835) Migrating to CreateMetasploitCredentialPrivates (20140407212345) Migrating to CreateMetasploitCredentialRealms (20140410132401) Migrating to UniqueMetasploitCredentialRealms (20140410161611) Migrating to CreateMetasploitCredentialOriginManuals (20140410191213) Migrating to CreateMetasploitCredentialOriginImports (20140410205410) Migrating to CreateMetasploitCredentialOriginSessions (20140411142102)  (0.1ms) BEGIN  (22.1ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140411142102')  (0.7ms) COMMIT  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (127.7ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (226.9ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.1ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.8ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (2.9ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.5ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.9ms) 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), "fail_detail" text)  (2.6ms) 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)   (2.8ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.6ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (0.9ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.9ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.8ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.0ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.9ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.1ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.0ms) 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, "macro" text)   (2.8ms) 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, "content_type" character varying(255), "name" text, "info" text)  (2.7ms) 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)   (3.7ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.8ms) 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)  (0.8ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.6ms) 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)  (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (2.0ms) 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)  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.6ms) 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)  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (8.0ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)  (4.3ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.6ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.8ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)   (0.9ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.8ms) 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)   (1.1ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (1.0ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.8ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (1.1ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.9ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)  (1.0ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.7ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.8ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)  (1.1ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.9ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.6ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.1ms) 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, "name" text)   (3.9ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)  (1.2ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.8ms) 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)  (2.8ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)   (1.1ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (4.2ms) 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)   (3.0ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))  (4.3ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))   (3.0ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)  (0.9ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.9ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.9ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (1.2ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (4.0ms) 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)   (2.7ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)  (3.0ms) 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)   (2.3ms) 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)  (2.0ms) 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)   (2.6ms) 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)  (1.9ms) 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)   (2.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, "result" text, "module_uuid" character varying(8), "settings" bytea)  (3.0ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)   (2.7ms) 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, "fail_detail" text)  (2.8ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))   (4.3ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)  (0.8ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (1.9ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)  (2.9ms) 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, "query" text)   (0.8ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.7ms) 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, "headers" text, "body" bytea, "request" bytea)   (0.9ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.9ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.6ms) 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)  (0.8ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (1.0ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (5.1ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)  (1.1ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (5.6ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.9ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.1ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)  (2.6ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)   (0.6ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)  (3.2ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (3.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (5.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (6.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (6.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (5.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (4.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (3.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (126.8ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (245.4ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (4.9ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.8ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (3.1ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.7ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.8ms) 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), "fail_detail" text)  (2.6ms) 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)   (2.5ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.4ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (1.0ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.9ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.1ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.9ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.9ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.0ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.0ms) 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, "macro" text)   (2.8ms) 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, "content_type" character varying(255), "name" text, "info" text)  (2.9ms) 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)   (2.6ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.9ms) 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)  (0.9ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.6ms) 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)  (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (2.8ms) 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)  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (2.1ms) 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)  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.6ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (3.0ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)  (2.6ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.8ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.7ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)   (0.8ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (3.7ms) 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)   (0.9ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.8ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.8ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.8ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.6ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.7ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.7ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.7ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.7ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.1ms) 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, "name" text)   (2.9ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)  (0.9ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.8ms) 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)  (2.7ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)   (0.9ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.9ms) 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)   (3.0ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))  (3.8ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))   (2.8ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)  (0.8ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.9ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.9ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.8ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.8ms) 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)   (2.8ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)  (2.9ms) 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)   (1.8ms) 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)  (1.9ms) 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)   (1.8ms) 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)  (2.0ms) 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)   (3.4ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)  (2.8ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)   (2.8ms) 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, "fail_detail" text)  (3.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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))   (2.8ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)  (0.9ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (1.9ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)  (2.6ms) 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, "query" text)   (0.7ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.7ms) 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, "headers" text, "body" bytea, "request" bytea)   (0.9ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.9ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (3.0ms) 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)  (0.8ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.9ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (1.0ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)  (1.0ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.9ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.8ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (2.8ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)  (4.5ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)   (3.2ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)  (4.3ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)   (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (354.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateTables (0) Migrating to AddWmapTables (1) Migrating to AddWorkspaces (2) Migrating to MoveNotes (3) Migrating to AddEventsTable (4) Migrating to ExpandInfo (5) Migrating to AddTimestamps (6) Migrating to AddLoots (7) Migrating to CreateUsers (8) Migrating to AddLootsCtype (9) Migrating to AddAlertFields (10) Migrating to AddReports (11) Migrating to AddTasks (12) Migrating to AddTasksResult (13) Migrating to AddLootsFields (14) Migrating to RenameUser (15) Migrating to AddHostPurpose (16) Migrating to ExpandInfo2 (17) Migrating to AddWorkspaceUserInfo (18) Migrating to AddWorkspaceDesc (19) Migrating to AddUserPreferences (20) Migrating to StandardizeInfoAndData (21) Migrating to EnlargeEventInfo (22) Migrating to AddReportDownloadedAt (23) Migrating to ConvertServiceInfoToText (24) Migrating to AddUserAdmin (25) Migrating to AddCredsTable (26) Migrating to MigrateCredData (20100819123300) Migrating to AddExploitedTable (20100824151500) Migrating to AddOwnerToWorkspaces (20100908001428) Migrating to AddReportTemplates (20100911122000) Migrating to RequireAdminFlag (20100916151530) Migrating to AddCampaignsAndTemplates (20100916175000) Migrating to AddGenerateExeColumn (20100920012100) Migrating to AddTemplatePrefs (20100926214000) Migrating to AddWebTables (20101001000000) Migrating to AddQuery (20101002000000) Migrating to AddVulnInfo (20101007000000) Migrating to AddClientsToCampaigns (20101008111800) Migrating to AddCampaignAttachments (20101009023300) Migrating to AddImportedCreds (20101104135100) Migrating to FixWebTables (20101203000000) Migrating to ExpandHostComment (20101203000001) Migrating to AddLimitToNetworkToWorkspaces (20101206212033) Migrating to AddModuleUuidToTasks (20110112154300) Migrating to AddHostTags (20110204112800) Migrating to AddSessionTable (20110317144932) Migrating to AddLocalIdToSessionTable (20110414180600) Migrating to AddRoutesTable (20110415175705) Migrating to ConvertBinary (20110422000000) Migrating to AddLastSeenToSessions (20110425095900) Migrating to TrackSuccessfulExploits (20110513143900) Migrating to RenameAndPruneNessusVulns (20110517160800) Migrating to AddTaskIdToReportsTable (20110527000000) Migrating to AddApiKeysTable (20110527000001) Migrating to AddMacrosTable (20110606000001) Migrating to AddSettingsToTasksTable (20110622000000) Migrating to AddListenersTable (20110624000001) Migrating to AddMacroToListenersTable (20110625000001) Migrating to AddNexposeConsolesTable (20110630000001) Migrating to AddNameToNexposeConsolesTable (20110630000002) Migrating to AddProfilesTable (20110717000001) Migrating to ExpandCredPtypeColumn (20110727163801) Migrating to AddInitialIndexes (20110730000001) Migrating to PruneIndexes (20110812000001) Migrating to ExpandNotes (20110922000000) Migrating to AddModRefTable (20110928101300) Migrating to AddDisplayNameToReportsTable (20111011110000) Migrating to InetColumns (20111203000000) Migrating to MoreInetColumns (20111204000000) Migrating to AddScopeToHosts (20111210000000) Migrating to AddVirtualHostToHosts (20120126110000) Migrating to RenameWorkspaceMembers (20120411173220) Migrating to AddCounterCachesToHosts (20120601152442) Migrating to AddVulnDetails (20120625000000) Migrating to AddHostDetails (20120625000001) Migrating to ExpandDetails (20120625000002) Migrating to ExpandDetails2 (20120625000003) Migrating to AddVulnAttempts (20120625000004) Migrating to AddVulnAndHostCounterCaches (20120625000005) Migrating to AddModuleDetails (20120625000006) Migrating to AddExploitAttempts (20120625000007) Migrating to AddFailMessage (20120625000008) Migrating to AddOwnerAndPayloadToWebVulns (20120718202805) Migrating to ChangeRequiredColumnsToNullFalseInWebVulns (20130228214900) Migrating to ChangeForeignKeyInModuleActions (20130412154159) Migrating to ChangeForeignKeyInModuleArchs (20130412171844) Migrating to ChangeForeignKeyInModuleAuthors (20130412173121) Migrating to ChangeForeignKeyInModuleMixins (20130412173640) Migrating to ChangeForeignKeyInModulePlatforms (20130412174254) Migrating to ChangeForeignKeyInModuleRefs (20130412174719) Migrating to ChangeForeignKeyInModuleTargets (20130412175040) Migrating to AddCredsCounterCache (20130423211152) Migrating to ChangeRequiredColumnsToNullFalseInHosts (20130430151353) Migrating to EnforceAddressUniquenessInWorkspaceInHosts (20130430162145) Migrating to RemoveCampaigns (20130510021637) Migrating to ChangeWebVulnsConfidenceToInteger (20130515164311) Migrating to ValidMdmWebVulnParams (20130515172727) Migrating to MakingVulnsRefsARealArModel (20130516204810) Migrating to CreateTaskCreds (20130522001343) Migrating to CreateTaskHosts (20130522032517) Migrating to CreateTaskServices (20130522041110) Migrating to RemoveCampaignIdFromClients (20130525015035) Migrating to DropTableImportedCreds (20130525212420) Migrating to MakingHostTagsARealArModel (20130531144949) Migrating to CreateTaskSessions (20130604145732) Migrating to RemovePnameValidation (20130717150737) Migrating to CreateMetasploitCredentialPublics (20140331173835) Migrating to CreateMetasploitCredentialPrivates (20140407212345) Migrating to CreateMetasploitCredentialRealms (20140410132401) Migrating to UniqueMetasploitCredentialRealms (20140410161611) Migrating to CreateMetasploitCredentialOriginManuals (20140410191213) Migrating to CreateMetasploitCredentialOriginImports (20140410205410) Migrating to CreateMetasploitCredentialOriginSessions (20140411142102) Migrating to CreateMetasploitCredentialOriginServices (20140411205325)  (0.2ms) BEGIN  (5.3ms) 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)   (1.2ms) ROLLBACK Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateTables (0) Migrating to AddWmapTables (1) Migrating to AddWorkspaces (2) Migrating to MoveNotes (3) Migrating to AddEventsTable (4) Migrating to ExpandInfo (5) Migrating to AddTimestamps (6) Migrating to AddLoots (7) Migrating to CreateUsers (8) Migrating to AddLootsCtype (9) Migrating to AddAlertFields (10) Migrating to AddReports (11) Migrating to AddTasks (12) Migrating to AddTasksResult (13) Migrating to AddLootsFields (14) Migrating to RenameUser (15) Migrating to AddHostPurpose (16) Migrating to ExpandInfo2 (17) Migrating to AddWorkspaceUserInfo (18) Migrating to AddWorkspaceDesc (19) Migrating to AddUserPreferences (20) Migrating to StandardizeInfoAndData (21) Migrating to EnlargeEventInfo (22) Migrating to AddReportDownloadedAt (23) Migrating to ConvertServiceInfoToText (24) Migrating to AddUserAdmin (25) Migrating to AddCredsTable (26) Migrating to MigrateCredData (20100819123300) Migrating to AddExploitedTable (20100824151500) Migrating to AddOwnerToWorkspaces (20100908001428) Migrating to AddReportTemplates (20100911122000) Migrating to RequireAdminFlag (20100916151530) Migrating to AddCampaignsAndTemplates (20100916175000) Migrating to AddGenerateExeColumn (20100920012100) Migrating to AddTemplatePrefs (20100926214000) Migrating to AddWebTables (20101001000000) Migrating to AddQuery (20101002000000) Migrating to AddVulnInfo (20101007000000) Migrating to AddClientsToCampaigns (20101008111800) Migrating to AddCampaignAttachments (20101009023300) Migrating to AddImportedCreds (20101104135100) Migrating to FixWebTables (20101203000000) Migrating to ExpandHostComment (20101203000001) Migrating to AddLimitToNetworkToWorkspaces (20101206212033) Migrating to AddModuleUuidToTasks (20110112154300) Migrating to AddHostTags (20110204112800) Migrating to AddSessionTable (20110317144932) Migrating to AddLocalIdToSessionTable (20110414180600) Migrating to AddRoutesTable (20110415175705) Migrating to ConvertBinary (20110422000000) Migrating to AddLastSeenToSessions (20110425095900) Migrating to TrackSuccessfulExploits (20110513143900) Migrating to RenameAndPruneNessusVulns (20110517160800) Migrating to AddTaskIdToReportsTable (20110527000000) Migrating to AddApiKeysTable (20110527000001) Migrating to AddMacrosTable (20110606000001) Migrating to AddSettingsToTasksTable (20110622000000) Migrating to AddListenersTable (20110624000001) Migrating to AddMacroToListenersTable (20110625000001) Migrating to AddNexposeConsolesTable (20110630000001) Migrating to AddNameToNexposeConsolesTable (20110630000002) Migrating to AddProfilesTable (20110717000001) Migrating to ExpandCredPtypeColumn (20110727163801) Migrating to AddInitialIndexes (20110730000001) Migrating to PruneIndexes (20110812000001) Migrating to ExpandNotes (20110922000000) Migrating to AddModRefTable (20110928101300) Migrating to AddDisplayNameToReportsTable (20111011110000) Migrating to InetColumns (20111203000000) Migrating to MoreInetColumns (20111204000000) Migrating to AddScopeToHosts (20111210000000) Migrating to AddVirtualHostToHosts (20120126110000) Migrating to RenameWorkspaceMembers (20120411173220) Migrating to AddCounterCachesToHosts (20120601152442) Migrating to AddVulnDetails (20120625000000) Migrating to AddHostDetails (20120625000001) Migrating to ExpandDetails (20120625000002) Migrating to ExpandDetails2 (20120625000003) Migrating to AddVulnAttempts (20120625000004) Migrating to AddVulnAndHostCounterCaches (20120625000005) Migrating to AddModuleDetails (20120625000006) Migrating to AddExploitAttempts (20120625000007) Migrating to AddFailMessage (20120625000008) Migrating to AddOwnerAndPayloadToWebVulns (20120718202805) Migrating to ChangeRequiredColumnsToNullFalseInWebVulns (20130228214900) Migrating to ChangeForeignKeyInModuleActions (20130412154159) Migrating to ChangeForeignKeyInModuleArchs (20130412171844) Migrating to ChangeForeignKeyInModuleAuthors (20130412173121) Migrating to ChangeForeignKeyInModuleMixins (20130412173640) Migrating to ChangeForeignKeyInModulePlatforms (20130412174254) Migrating to ChangeForeignKeyInModuleRefs (20130412174719) Migrating to ChangeForeignKeyInModuleTargets (20130412175040) Migrating to AddCredsCounterCache (20130423211152) Migrating to ChangeRequiredColumnsToNullFalseInHosts (20130430151353) Migrating to EnforceAddressUniquenessInWorkspaceInHosts (20130430162145) Migrating to RemoveCampaigns (20130510021637) Migrating to ChangeWebVulnsConfidenceToInteger (20130515164311) Migrating to ValidMdmWebVulnParams (20130515172727) Migrating to MakingVulnsRefsARealArModel (20130516204810) Migrating to CreateTaskCreds (20130522001343) Migrating to CreateTaskHosts (20130522032517) Migrating to CreateTaskServices (20130522041110) Migrating to RemoveCampaignIdFromClients (20130525015035) Migrating to DropTableImportedCreds (20130525212420) Migrating to MakingHostTagsARealArModel (20130531144949) Migrating to CreateTaskSessions (20130604145732) Migrating to RemovePnameValidation (20130717150737) Migrating to CreateMetasploitCredentialPublics (20140331173835) Migrating to CreateMetasploitCredentialPrivates (20140407212345) Migrating to CreateMetasploitCredentialRealms (20140410132401) Migrating to UniqueMetasploitCredentialRealms (20140410161611) Migrating to CreateMetasploitCredentialOriginManuals (20140410191213) Migrating to CreateMetasploitCredentialOriginImports (20140410205410) Migrating to CreateMetasploitCredentialOriginSessions (20140411142102) Migrating to CreateMetasploitCredentialOriginServices (20140411205325)  (0.1ms) BEGIN  (5.7ms) 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)   (0.7ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140411205325')  (0.9ms) COMMIT  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (127.7ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (361.4ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.4ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.0ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (24.4ms) 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(256), "source_id" integer, "source_type" character varying(255))  (3.0ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (3.0ms) 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), "fail_detail" text)  (2.9ms) 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)   (3.2ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.5ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.9ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.9ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.0ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.7ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.9ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.4ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.3ms) 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, "macro" text)   (2.9ms) 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, "content_type" character varying(255), "name" text, "info" text)  (3.2ms) 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)   (2.5ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.9ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.8ms) 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)  (0.8ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.7ms) 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)  (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.9ms) 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)  (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (3.8ms) 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)  (1.3ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (2.2ms) 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)  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.9ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.7ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)  (2.5ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.5ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.6ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)   (0.9ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (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)   (0.8ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (1.1ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.9ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (1.3ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (3.0ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.7ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (6.6ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (3.2ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (7.3ms) 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, "name" text)   (3.0ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)  (0.9ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.8ms) 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)  (2.7ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)   (0.9ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (3.0ms) 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)   (3.0ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))  (2.8ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))   (3.0ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)  (0.9ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.8ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.9ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.9ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.9ms) 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)   (2.9ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)  (2.9ms) 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)   (1.9ms) 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)  (2.0ms) 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)   (2.1ms) 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)  (2.0ms) 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)   (3.1ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)  (3.0ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)   (2.9ms) 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, "fail_detail" text)  (2.8ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))   (3.0ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)  (1.1ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (1.9ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)  (2.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, "query" text)   (0.8ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.9ms) 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, "headers" text, "body" bytea, "request" bytea)   (0.8ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.9ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (3.2ms) 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)  (0.8ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (1.1ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (1.0ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.6ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)  (0.9ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.9ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.8ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (2.9ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)  (2.9ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)   (0.8ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)  (3.0ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (24.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (122.6ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (387.4ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.0ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.7ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (3.0ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.6ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.8ms) 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), "fail_detail" text)  (2.8ms) 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)   (2.7ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.4ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.2ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (1.0ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.8ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.2ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (1.0ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.0ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.0ms) 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, "macro" text)   (2.7ms) 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, "content_type" character varying(255), "name" text, "info" text)  (2.9ms) 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)   (2.4ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.9ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.8ms) 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)  (0.9ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.8ms) 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)  (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.7ms) 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)  (1.0ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (2.8ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.8ms) 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)  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.9ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.6ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)  (2.6ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.9ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.8ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)   (0.8ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (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)   (0.9ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.7ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.8ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.8ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.8ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.6ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.6ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (3.2ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.0ms) 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, "name" text)   (2.8ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)  (0.8ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.6ms) 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)  (2.7ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)   (0.8ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (3.3ms) 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)   (3.1ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))  (2.9ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))   (2.8ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)  (0.9ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.8ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.8ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.9ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.7ms) 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)   (2.8ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)  (3.0ms) 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)   (2.0ms) 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)  (1.9ms) 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)   (1.7ms) 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)  (1.9ms) 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)   (2.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, "result" text, "module_uuid" character varying(8), "settings" bytea)  (2.8ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)   (3.8ms) 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, "fail_detail" text)  (3.2ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))   (2.9ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)  (0.8ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (1.7ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)  (2.5ms) 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, "query" text)   (0.9ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.9ms) 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, "headers" text, "body" bytea, "request" bytea)   (0.9ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.8ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.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)  (0.9ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.8ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.9ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.2ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)  (0.9ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.9ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.8ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.2ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)  (2.6ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)   (0.8ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)  (9.0ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)   (5.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (7.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (124.6ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (359.3ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (4.9ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.0ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (3.0ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.5ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.9ms) 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), "fail_detail" text)  (2.5ms) 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)   (2.9ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.8ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.1ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.9ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.8ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.2ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.9ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.9ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (1.9ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.0ms) 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, "macro" text)   (2.9ms) 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, "content_type" character varying(255), "name" text, "info" text)  (2.9ms) 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)   (2.5ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.9ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.8ms) 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)  (0.8ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.7ms) 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)  (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.8ms) 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)  (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (3.0ms) 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)  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (2.0ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (3.1ms) 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)  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.8ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)  (2.6ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.5ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.6ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)   (0.9ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.9ms) 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)   (0.9ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.8ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.7ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.9ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.9ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.5ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.7ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.9ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.8ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (2.8ms) 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, "name" text)   (2.8ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)  (0.9ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.7ms) 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)  (2.7ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)   (1.2ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (3.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)   (2.8ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))  (2.6ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))   (2.7ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)  (1.0ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (1.0ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.9ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (1.1ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.7ms) 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)   (3.0ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)  (2.8ms) 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)   (2.1ms) 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)  (2.1ms) 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)   (1.9ms) 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)  (2.3ms) 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)   (2.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, "result" text, "module_uuid" character varying(8), "settings" bytea)  (3.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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)   (2.8ms) 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, "fail_detail" text)  (3.2ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))   (2.9ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)  (4.8ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (2.4ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)  (6.5ms) 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, "query" text)   (8.5ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (3.2ms) 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, "headers" text, "body" bytea, "request" bytea)   (0.9ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.9ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.8ms) 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)  (0.8ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.8ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.9ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.5ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)  (0.8ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.8ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (1.0ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.1ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)  (2.8ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)   (0.8ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)  (2.8ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (124.8ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (360.7ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.1ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.8ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (3.1ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.7ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.7ms) 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), "fail_detail" text)  (2.7ms) 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)   (2.9ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.6ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.4ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.9ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.9ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.1ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.9ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.9ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.0ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.0ms) 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, "macro" text)   (2.8ms) 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, "content_type" character varying(255), "name" text, "info" text)  (3.0ms) 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)   (2.6ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.8ms) 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)  (0.8ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (3.1ms) 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)  (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (3.8ms) 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)  (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (3.0ms) 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)  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (2.0ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.8ms) 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)  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.6ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)  (2.7ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.6ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.8ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)   (1.0ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.9ms) 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)   (1.0ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.9ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.9ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.9ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.9ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (3.3ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.9ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)  (1.0ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.9ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (3.0ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (2.9ms) 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, "name" text)   (2.7ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)  (0.9ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (3.0ms) 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)  (3.0ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)   (1.1ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.8ms) 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)   (2.7ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))  (2.6ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))   (2.6ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)  (1.3ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (1.1ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.9ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.8ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.6ms) 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)   (3.3ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)  (4.1ms) 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)   (2.1ms) 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)  (2.3ms) 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)   (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)  (2.3ms) 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)   (2.8ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)  (2.8ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)   (3.5ms) 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, "fail_detail" text)  (3.3ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))   (3.1ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)  (0.8ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (1.8ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)  (3.0ms) 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, "query" text)   (1.0ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.9ms) 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, "headers" text, "body" bytea, "request" bytea)   (0.9ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (1.3ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (4.0ms) 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)  (0.8ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.9ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.9ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.4ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)  (1.3ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (1.0ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.9ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (2.9ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)  (2.6ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)   (0.8ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)  (2.7ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (2.9ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (123.2ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (227.9ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.3ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.9ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (4.5ms) 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(256), "source_id" integer, "source_type" character varying(255))  (3.0ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.9ms) 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), "fail_detail" text)  (2.8ms) 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)   (2.7ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.5ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.8ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.9ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.1ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (1.1ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.0ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.0ms) 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, "macro" text)   (2.7ms) 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, "content_type" character varying(255), "name" text, "info" text)  (2.8ms) 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)   (2.7ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.8ms) 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)  (0.9ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.6ms) 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)  (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.8ms) 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)  (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (2.8ms) 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)  (1.1ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.9ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.9ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.6ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)  (2.5ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.7ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.6ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)   (0.9ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.7ms) 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)   (0.8ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.8ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (1.0ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (1.0ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.8ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)  (1.0ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.6ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.8ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.9ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.7ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (2.9ms) 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, "name" text)   (2.7ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)  (0.9ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.7ms) 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)  (2.8ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)   (0.8ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.8ms) 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)   (2.6ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))  (3.5ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))   (2.8ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)  (0.9ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.8ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.7ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.9ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.6ms) 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)   (3.3ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)  (2.9ms) 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)   (1.9ms) 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)  (2.0ms) 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)   (1.7ms) 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)  (1.8ms) 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)   (2.8ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)  (2.9ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)   (2.9ms) 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, "fail_detail" text)  (3.1ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))   (2.8ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)  (0.9ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (1.8ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)  (2.6ms) 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, "query" text)   (0.9ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.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, "headers" text, "body" bytea, "request" bytea)   (0.9ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.9ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.8ms) 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)  (0.8ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.9ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.8ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)  (1.0ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (1.0ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.8ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.0ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)  (2.5ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)   (0.7ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)  (2.6ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (124.4ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (230.9ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.0ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.8ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (3.0ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.9ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.9ms) 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), "fail_detail" text)  (2.6ms) 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)   (2.8ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.3ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.1ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.8ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.8ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.0ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.9ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.8ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.0ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.3ms) 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, "macro" text)   (2.6ms) 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, "content_type" character varying(255), "name" text, "info" text)  (2.8ms) 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)   (2.4ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.9ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.9ms) 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)  (1.0ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.7ms) 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)  (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.6ms) 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)  (1.0ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (2.8ms) 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)  (1.4ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (2.0ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.8ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.6ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)  (2.6ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.6ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.7ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)   (0.7ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.9ms) 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)   (0.9ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.7ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.7ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (1.0ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.6ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.6ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.8ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.9ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)   (0.7ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (2.8ms) 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, "name" text)   (2.7ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)  (0.9ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.8ms) 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)  (2.9ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)   (0.9ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.9ms) 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)   (3.1ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))  (2.7ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))   (2.6ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)  (0.9ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.9ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.9ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.9ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.7ms) 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)   (3.0ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)  (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)   (2.1ms) 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)  (2.1ms) 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)   (1.8ms) 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)  (1.9ms) 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)   (2.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, "result" text, "module_uuid" character varying(8), "settings" bytea)  (2.9ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)   (2.7ms) 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, "fail_detail" text)  (3.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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))   (2.8ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)  (1.0ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (2.1ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)  (2.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, "query" text)   (0.8ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.9ms) 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, "headers" text, "body" bytea, "request" bytea)   (0.9ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.8ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (8.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)  (0.9ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.9ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.8ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (5.4ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)  (4.9ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (1.0ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (1.0ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (2.9ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)  (4.0ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)   (4.0ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)  (3.0ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)   (5.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (122.2ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (240.9ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (4.8ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.5ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (3.1ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.8ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.8ms) 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), "fail_detail" text)  (2.9ms) 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)   (2.9ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (5.6ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.4ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.9ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.8ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.1ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.9ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.8ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (1.9ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.0ms) 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, "macro" text)   (4.0ms) 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, "content_type" character varying(255), "name" text, "info" text)  (2.9ms) 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)   (2.6ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.9ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.8ms) 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)  (0.7ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.6ms) 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)  (1.1ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (4.2ms) 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)  (1.3ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (3.5ms) 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)  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.8ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.9ms) 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)  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.7ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)  (2.6ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.7ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.7ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.6ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)   (0.8ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.8ms) 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)   (0.8ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.9ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (1.1ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (1.4ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (4.2ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)  (1.1ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (4.2ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)  (1.0ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.9ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.7ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (3.1ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.0ms) 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, "name" text)   (2.8ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)  (0.9ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.7ms) 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)  (2.6ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)   (0.8ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.7ms) 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)   (3.8ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))  (4.2ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))   (4.5ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)  (1.2ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (4.8ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.9ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.9ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.6ms) 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)   (2.8ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)  (3.2ms) 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)   (1.9ms) 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)  (1.9ms) 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)   (1.8ms) 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)  (2.0ms) 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)   (2.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, "result" text, "module_uuid" character varying(8), "settings" bytea)  (3.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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)   (3.4ms) 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, "fail_detail" text)  (2.9ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))   (2.6ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)  (0.8ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (2.1ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)  (4.4ms) 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, "query" text)   (1.1ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (4.7ms) 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, "headers" text, "body" bytea, "request" bytea)   (1.1ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (1.1ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.9ms) 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)  (0.9ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.8ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.9ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (2.9ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)  (0.9ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.9ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.8ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (2.8ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)  (5.8ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)   (1.2ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)  (3.1ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (124.3ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (227.1ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (28.1ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (14.0ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (19.0ms) 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(256), "source_id" integer, "source_type" character varying(255))  (19.7ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (20.5ms) 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), "fail_detail" text)  (13.0ms) 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)   (2.7ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.3ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.8ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (1.7ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.5ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (1.1ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.9ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.0ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.1ms) 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, "macro" text)   (19.9ms) 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, "content_type" character varying(255), "name" text, "info" text)  (14.9ms) 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)   (2.6ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.8ms) 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)  (0.8ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.5ms) 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)  (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.7ms) 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)  (1.2ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (2.9ms) 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)  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.8ms) 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)  (0.7ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (3.0ms) 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)  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.6ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)  (2.7ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)   (0.7ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.6ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.7ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.6ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)   (0.8ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (3.9ms) 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)   (0.9ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.9ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.8ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.8ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (3.2ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)  (1.1ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (3.7ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)  (1.0ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.6ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)  (1.0ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.9ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (4.1ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)   (1.2ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.2ms) 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, "name" text)   (3.2ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)  (0.9ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (4.1ms) 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)  (4.0ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)   (0.9ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (3.8ms) 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)   (3.7ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))  (2.7ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))   (2.6ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)  (0.9ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.9ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.8ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.9ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.8ms) 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)   (2.9ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)  (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)   (1.8ms) 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)  (1.8ms) 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)   (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)  (1.8ms) 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)   (2.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, "result" text, "module_uuid" character varying(8), "settings" bytea)  (2.8ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)   (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, "fail_detail" text)  (3.2ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))   (3.1ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)  (0.8ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (1.8ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)  (3.0ms) 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, "query" text)   (0.9ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.9ms) 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, "headers" text, "body" bytea, "request" bytea)   (0.9ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.8ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.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)  (0.8ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.8ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.8ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (2.9ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)  (0.8ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.8ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (1.0ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.2ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)  (2.7ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)   (0.8ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)  (2.7ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (121.4ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (229.8ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (37.9ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (20.1ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (24.6ms) 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(256), "source_id" integer, "source_type" character varying(255))  (25.5ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (24.2ms) 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), "fail_detail" text)  (2.6ms) 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)   (2.6ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (4.3ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.9ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.8ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.0ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (1.5ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.1ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.2ms) 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, "macro" text)   (3.0ms) 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, "content_type" character varying(255), "name" text, "info" text)  (25.9ms) 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)   (2.9ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.0ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.8ms) 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)  (0.7ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.4ms) 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)  (1.1ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.6ms) 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)  (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (2.8ms) 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)  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.8ms) 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)  (0.7ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.7ms) 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)  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.5ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)  (2.4ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.3ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.8ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)   (1.0ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (3.3ms) 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)   (0.7ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (1.0ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.9ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.9ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (3.0ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (3.2ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (3.1ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.8ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)   (11.7ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (14.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, "name" text)   (2.9ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)  (0.9ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (3.1ms) 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)  (2.6ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)   (0.8ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (3.2ms) 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)   (3.0ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))  (2.6ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))   (3.1ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)  (0.9ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.7ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.9ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.8ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.8ms) 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)   (2.8ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)  (3.0ms) 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)   (1.9ms) 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)  (2.0ms) 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)   (1.9ms) 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)  (1.9ms) 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)   (3.0ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)  (3.5ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)   (2.7ms) 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, "fail_detail" text)  (3.1ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))   (2.9ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)  (0.9ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (1.9ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)  (2.6ms) 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, "query" text)   (0.9ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.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, "headers" text, "body" bytea, "request" bytea)   (0.8ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.7ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (3.0ms) 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)  (0.9ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.8ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.9ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.0ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)  (0.8ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.8ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.8ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (2.9ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)  (3.0ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)   (0.7ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)  (2.7ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (125.6ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (232.2ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (4.8ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.6ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (2.7ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.9ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (4.0ms) 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), "fail_detail" text)  (3.4ms) 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)   (2.9ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (4.7ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (0.9ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.9ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.8ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.0ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.8ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.6ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.0ms) 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, "macro" text)   (2.7ms) 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, "content_type" character varying(255), "name" text, "info" text)  (2.7ms) 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)   (2.5ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.7ms) 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)  (0.8ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.6ms) 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)  (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.8ms) 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)  (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (3.4ms) 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)  (1.1ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.8ms) 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)  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.8ms) 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)  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.7ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)  (2.4ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)   (0.7ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.4ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (3.6ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)   (1.0ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (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)   (0.9ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.8ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.8ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.7ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.7ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)  (0.7ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.6ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)  (1.2ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.6ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)  (3.0ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.9ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.8ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)   (0.7ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (2.8ms) 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, "name" text)   (2.7ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)  (0.9ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.6ms) 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)  (2.5ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)   (0.7ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.7ms) 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)   (2.9ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))  (2.5ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))   (2.9ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)  (0.8ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.7ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.9ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.8ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.7ms) 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)   (5.4ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)  (3.0ms) 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)   (2.7ms) 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)  (2.0ms) 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)   (1.9ms) 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)  (1.9ms) 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)   (2.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, "result" text, "module_uuid" character varying(8), "settings" bytea)  (2.9ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)   (2.8ms) 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, "fail_detail" text)  (3.1ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))   (2.9ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)  (0.8ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (1.9ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)  (2.6ms) 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, "query" text)   (1.0ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (3.0ms) 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, "headers" text, "body" bytea, "request" bytea)   (0.9ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.9ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.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)  (0.9ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.9ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.8ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.0ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)  (0.8ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.8ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.9ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (2.9ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)  (3.5ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)   (0.8ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)  (2.9ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (129.2ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (226.5ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (4.8ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.6ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (3.1ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.7ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.9ms) 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), "fail_detail" text)  (2.7ms) 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)   (2.7ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.5ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.9ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.8ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.1ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (1.2ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.1ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (2.9ms) 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, "macro" text)   (2.7ms) 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, "content_type" character varying(255), "name" text, "info" text)  (2.8ms) 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)   (2.6ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.9ms) 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)  (0.8ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.6ms) 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)  (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.7ms) 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)  (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (2.0ms) 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)  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.9ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.6ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)  (2.4ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (3.0ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.6ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)   (1.0ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (3.1ms) 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)   (0.8ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.8ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.7ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.7ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.6ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (3.0ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)  (1.0ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (3.0ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (1.0ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (3.0ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.0ms) 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, "name" text)   (3.1ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)  (1.0ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.6ms) 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)  (2.9ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)   (0.8ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.6ms) 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)   (3.8ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))  (2.8ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))   (3.0ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)  (0.8ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.8ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.9ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.8ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.7ms) 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)   (3.0ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)  (2.9ms) 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)   (1.7ms) 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)  (2.0ms) 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)   (1.8ms) 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)  (2.1ms) 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)   (2.8ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)  (2.9ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)   (2.8ms) 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, "fail_detail" text)  (3.2ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))   (2.8ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)  (0.9ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (1.8ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)  (2.7ms) 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, "query" text)   (0.9ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.6ms) 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, "headers" text, "body" bytea, "request" bytea)   (0.8ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (1.0ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (3.0ms) 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)  (0.9ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.9ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.8ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (2.7ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)  (0.8ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.9ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.9ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.1ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)  (3.3ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)   (0.9ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)  (3.7ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (128.4ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (228.0ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.0ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.7ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (2.9ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.7ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (4.5ms) 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), "fail_detail" text)  (3.7ms) 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)   (3.6ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.8ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.1ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.9ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.7ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (0.9ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.8ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (1.8ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.4ms) 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, "macro" text)   (2.9ms) 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, "content_type" character varying(255), "name" text, "info" text)  (2.8ms) 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)   (2.5ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.8ms) 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)  (0.7ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.5ms) 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)  (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.6ms) 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)  (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (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)  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.7ms) 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)  (0.7ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.7ms) 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)  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.5ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)  (3.1ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (4.7ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)   (1.0ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (3.0ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)   (0.8ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.7ms) 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)   (0.9ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.8ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.7ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.9ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.8ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)  (1.0ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.5ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.5ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.7ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.8ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.6ms) 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, "name" text)   (2.9ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)  (0.7ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.6ms) 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)  (2.7ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)   (0.7ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.7ms) 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)   (5.1ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))  (2.9ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))   (3.2ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)  (1.2ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.8ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.8ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.8ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.6ms) 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)   (2.8ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)  (2.8ms) 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)   (1.8ms) 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)  (2.0ms) 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)   (1.8ms) 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)  (2.5ms) 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)   (3.7ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)  (2.9ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)   (2.7ms) 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, "fail_detail" text)  (3.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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))   (2.6ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)  (0.7ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (1.7ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)  (2.5ms) 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, "query" text)   (0.7ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.7ms) 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, "headers" text, "body" bytea, "request" bytea)   (0.9ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.7ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.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)  (0.8ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.7ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.9ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.6ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)  (2.7ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (1.1ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (1.1ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.1ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)  (2.7ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)   (0.7ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)  (2.9ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (125.1ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (231.3ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (4.9ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.7ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (2.9ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.6ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (3.3ms) 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), "fail_detail" text)  (2.7ms) 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)   (2.8ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.2ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (0.9ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.8ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.7ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.0ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.9ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (1.0ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (1.9ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.1ms) 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, "macro" text)   (2.9ms) 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, "content_type" character varying(255), "name" text, "info" text)  (2.8ms) 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)   (2.5ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.8ms) 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)  (0.7ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.6ms) 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)  (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.7ms) 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)  (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (3.1ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.7ms) 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)  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.9ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.6ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)  (2.5ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.6ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.6ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)   (0.9ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.8ms) 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)   (0.9ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.9ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.8ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.8ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.7ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)  (1.1ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (3.7ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.9ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.8ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.1ms) 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, "name" text)   (2.8ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)  (1.0ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.7ms) 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)  (2.8ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)   (0.8ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.7ms) 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)   (2.8ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))  (2.6ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))   (2.8ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)  (0.9ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.9ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.9ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.8ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.8ms) 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)   (3.0ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)  (2.8ms) 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)   (1.9ms) 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)  (2.0ms) 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)   (2.4ms) 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)  (2.0ms) 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)   (2.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, "result" text, "module_uuid" character varying(8), "settings" bytea)  (3.0ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)   (2.7ms) 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, "fail_detail" text)  (3.4ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))   (2.9ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)  (0.9ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (1.8ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)  (3.2ms) 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, "query" text)   (0.8ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.9ms) 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, "headers" text, "body" bytea, "request" bytea)   (0.8ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.8ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.9ms) 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)  (14.5ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (7.4ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (1.2ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.0ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)  (0.9ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (1.0ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.8ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (2.9ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)  (2.7ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)   (0.8ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)  (2.8ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)   (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (125.9ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (226.5ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (4.9ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.8ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (3.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(256), "source_id" integer, "source_type" character varying(255))  (2.9ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (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), "fail_detail" text)  (2.5ms) 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)   (2.9ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.4ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.1ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.9ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.8ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.2ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.9ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.8ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (1.9ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.0ms) 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, "macro" text)   (2.6ms) 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, "content_type" character varying(255), "name" text, "info" text)  (2.8ms) 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)   (2.6ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (4.3ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (2.1ms) 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)  (0.8ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.5ms) 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)  (1.0ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (3.1ms) 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)  (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (2.8ms) 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)  (4.4ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (2.2ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.7ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.6ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)  (2.5ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.5ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.6ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)   (0.9ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.9ms) 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)   (0.8ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.8ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.8ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.8ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.6ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)  (1.3ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.9ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.6ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.8ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (2.8ms) 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, "name" text)   (3.5ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)  (0.9ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.8ms) 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)  (2.7ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)   (0.8ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.8ms) 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)   (2.9ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))  (2.5ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))   (2.7ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)  (0.9ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.8ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.8ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.9ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.6ms) 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)   (2.9ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)  (2.9ms) 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)   (1.9ms) 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)  (2.0ms) 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)   (1.9ms) 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)  (1.9ms) 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)   (2.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, "result" text, "module_uuid" character varying(8), "settings" bytea)  (2.9ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)   (2.9ms) 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, "fail_detail" text)  (2.9ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))   (2.9ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)  (0.9ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (1.9ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)  (2.6ms) 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, "query" text)   (0.8ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (3.0ms) 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, "headers" text, "body" bytea, "request" bytea)   (0.9ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (1.0ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (3.0ms) 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)  (0.9ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.8ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.8ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.1ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)  (0.8ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.8ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.8ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (2.9ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)  (2.8ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)   (0.8ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)  (2.9ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (127.8ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (226.6ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (4.8ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.6ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (3.0ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.5ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (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), "fail_detail" text)  (2.5ms) 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)   (2.9ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.2ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.9ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.9ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (3.0ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.8ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (1.8ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (2.9ms) 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, "macro" text)   (2.6ms) 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, "content_type" character varying(255), "name" text, "info" text)  (2.9ms) 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)   (2.6ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.8ms) 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)  (0.7ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.6ms) 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)  (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.6ms) 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)  (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.8ms) 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)  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.8ms) 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)  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.8ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)  (2.4ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.8ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.7ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.6ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)   (0.7ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.7ms) 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)   (0.7ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.8ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.7ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (3.3ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.8ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.6ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.6ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.7ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.7ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (3.2ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.1ms) 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, "name" text)   (2.7ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)  (0.7ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.6ms) 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)  (2.5ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)   (0.8ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.5ms) 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)   (2.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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))  (2.7ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))   (2.7ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)  (0.8ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.8ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.8ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.7ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.6ms) 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)   (2.8ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)  (4.0ms) 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)   (1.9ms) 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)  (2.0ms) 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)   (1.8ms) 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)  (1.8ms) 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)   (2.8ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)  (2.8ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)   (2.7ms) 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, "fail_detail" text)  (3.1ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))   (2.8ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)  (0.8ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (1.7ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)  (2.6ms) 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, "query" text)   (0.7ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.6ms) 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, "headers" text, "body" bytea, "request" bytea)   (0.7ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.7ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.9ms) 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)  (0.7ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.7ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.8ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (2.7ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)  (0.7ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.8ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.8ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (2.9ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)  (2.6ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)   (0.7ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)  (2.8ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)   (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (2.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (125.0ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (229.3ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.3ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.7ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (2.8ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.6ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.8ms) 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), "fail_detail" text)  (2.5ms) 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)   (2.9ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.4ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (0.8ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (1.1ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.8ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.2ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.9ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.0ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (2.9ms) 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, "macro" text)   (2.6ms) 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, "content_type" character varying(255), "name" text, "info" text)  (2.9ms) 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)   (2.6ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.9ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.8ms) 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)  (0.8ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.4ms) 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)  (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.8ms) 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)  (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (2.8ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.8ms) 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)  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.7ms) 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)  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.5ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)  (2.5ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.5ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.5ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)   (0.8ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.8ms) 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)   (0.8ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.8ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.8ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.8ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.8ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (3.0ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.7ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.9ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (2.8ms) 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, "name" text)   (2.7ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)  (0.9ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.9ms) 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)  (2.8ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)   (0.8ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.7ms) 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)   (2.7ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))  (2.6ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))   (2.8ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)  (1.1ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.9ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.8ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.8ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.8ms) 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)   (3.0ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)  (3.1ms) 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)   (2.0ms) 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)  (1.8ms) 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)   (2.0ms) 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)  (1.9ms) 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)   (2.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, "result" text, "module_uuid" character varying(8), "settings" bytea)  (3.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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)   (2.8ms) 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, "fail_detail" text)  (2.9ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))   (2.7ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)  (0.9ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (1.7ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)  (2.6ms) 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, "query" text)   (0.9ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.7ms) 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, "headers" text, "body" bytea, "request" bytea)   (0.9ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.8ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (3.0ms) 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)  (0.9ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.7ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.9ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (2.9ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)  (0.9ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.8ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.8ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.1ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)  (2.8ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)   (0.7ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)  (2.8ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (120.6ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (228.7ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (4.8ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.8ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (2.9ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.6ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (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), "fail_detail" text)  (2.8ms) 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)   (2.7ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.4ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.8ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.8ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.1ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (1.0ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.0ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (2.9ms) 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, "macro" text)   (2.8ms) 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, "content_type" character varying(255), "name" text, "info" text)  (2.9ms) 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)   (2.8ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.8ms) 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)  (0.8ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.9ms) 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)  (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.7ms) 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)  (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (2.8ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.8ms) 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)  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (3.0ms) 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)  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.6ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)  (2.5ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (7.6ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.9ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)   (0.8ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.8ms) 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)   (0.8ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.8ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.8ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.7ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.6ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)  (1.0ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.9ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)  (1.0ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (3.1ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.9ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.8ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.1ms) 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, "name" text)   (2.7ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)  (0.8ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.8ms) 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)  (2.6ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)   (0.8ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.9ms) 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)   (2.8ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))  (2.6ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))   (2.8ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)  (0.9ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.8ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.8ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.8ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.7ms) 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)   (2.9ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)  (2.8ms) 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)   (1.7ms) 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)  (1.8ms) 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)   (1.8ms) 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)  (1.9ms) 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)   (2.7ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)  (3.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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)   (2.8ms) 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, "fail_detail" text)  (2.9ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))   (2.7ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)  (0.8ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (2.0ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)  (3.1ms) 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, "query" text)   (0.8ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.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, "headers" text, "body" bytea, "request" bytea)   (0.8ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.8ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.8ms) 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)  (0.8ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.9ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.8ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (2.7ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)  (0.9ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.8ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.8ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (2.8ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)  (2.8ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)   (0.8ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)  (2.7ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml  (23.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (134.1ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (402.7ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (6.2ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.0ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)  Connecting to database specified by database.yml  (20.1ms) 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(256), "source_id" integer, "source_type" character varying(255))  (3.0ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (3.0ms) 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), "fail_detail" text)  (2.8ms) 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)   (2.8ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.8ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.9ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.8ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.0ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.8ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.2ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.2ms) 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, "macro" text)   (2.8ms) 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, "content_type" character varying(255), "name" text, "info" text)  (3.0ms) 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)   (3.0ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.9ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (2.0ms) 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)  (0.8ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.8ms) 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)  (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (3.0ms) 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)  (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (2.9ms) 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)  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.9ms) 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)  (0.7ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (3.0ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.8ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)  (2.6ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)   (0.7ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.7ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.7ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.8ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)   (0.7ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.9ms) 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)   (0.8ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.8ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.8ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.8ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.8ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.7ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.6ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (3.2ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.2ms) 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, "name" text)   (2.7ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)  (0.8ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.7ms) 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)  (2.8ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)   (0.8ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.8ms) 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)   (2.9ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))  (2.7ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))   (2.8ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)  (0.9ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.8ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.8ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.7ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (3.0ms) 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)   (3.3ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)  (2.9ms) 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)   (2.0ms) 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)  (2.1ms) 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)   (1.9ms) 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)  (2.1ms) 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)   (3.0ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)  (3.0ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)   (3.0ms) 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, "fail_detail" text)  (3.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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))   (3.0ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)  (0.7ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (1.8ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)  (3.0ms) 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, "query" text)   (0.8ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (3.2ms) 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, "headers" text, "body" bytea, "request" bytea)   (0.8ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.7ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.9ms) 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)  (0.9ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.8ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.8ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.2ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)  (0.8ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.8ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.7ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.1ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)  (2.8ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)   (0.7ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)  (2.9ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateTables (0) Migrating to AddWmapTables (1) Migrating to AddWorkspaces (2) Migrating to MoveNotes (3) Migrating to AddEventsTable (4) Migrating to ExpandInfo (5) Migrating to AddTimestamps (6) Migrating to AddLoots (7) Migrating to CreateUsers (8) Migrating to AddLootsCtype (9) Migrating to AddAlertFields (10) Migrating to AddReports (11) Migrating to AddTasks (12) Migrating to AddTasksResult (13) Migrating to AddLootsFields (14) Migrating to RenameUser (15) Migrating to AddHostPurpose (16) Migrating to ExpandInfo2 (17) Migrating to AddWorkspaceUserInfo (18) Migrating to AddWorkspaceDesc (19) Migrating to AddUserPreferences (20) Migrating to StandardizeInfoAndData (21) Migrating to EnlargeEventInfo (22) Migrating to AddReportDownloadedAt (23) Migrating to ConvertServiceInfoToText (24) Migrating to AddUserAdmin (25) Migrating to AddCredsTable (26) Migrating to MigrateCredData (20100819123300) Migrating to AddExploitedTable (20100824151500) Migrating to AddOwnerToWorkspaces (20100908001428) Migrating to AddReportTemplates (20100911122000) Migrating to RequireAdminFlag (20100916151530) Migrating to AddCampaignsAndTemplates (20100916175000) Migrating to AddGenerateExeColumn (20100920012100) Migrating to AddTemplatePrefs (20100926214000) Migrating to AddWebTables (20101001000000) Migrating to AddQuery (20101002000000) Migrating to AddVulnInfo (20101007000000) Migrating to AddClientsToCampaigns (20101008111800) Migrating to AddCampaignAttachments (20101009023300) Migrating to AddImportedCreds (20101104135100) Migrating to FixWebTables (20101203000000) Migrating to ExpandHostComment (20101203000001) Migrating to AddLimitToNetworkToWorkspaces (20101206212033) Migrating to AddModuleUuidToTasks (20110112154300) Migrating to AddHostTags (20110204112800) Migrating to AddSessionTable (20110317144932) Migrating to AddLocalIdToSessionTable (20110414180600) Migrating to AddRoutesTable (20110415175705) Migrating to ConvertBinary (20110422000000) Migrating to AddLastSeenToSessions (20110425095900) Migrating to TrackSuccessfulExploits (20110513143900) Migrating to RenameAndPruneNessusVulns (20110517160800) Migrating to AddTaskIdToReportsTable (20110527000000) Migrating to AddApiKeysTable (20110527000001) Migrating to AddMacrosTable (20110606000001) Migrating to AddSettingsToTasksTable (20110622000000) Migrating to AddListenersTable (20110624000001) Migrating to AddMacroToListenersTable (20110625000001) Migrating to AddNexposeConsolesTable (20110630000001) Migrating to AddNameToNexposeConsolesTable (20110630000002) Migrating to AddProfilesTable (20110717000001) Migrating to ExpandCredPtypeColumn (20110727163801) Migrating to AddInitialIndexes (20110730000001) Migrating to PruneIndexes (20110812000001) Migrating to ExpandNotes (20110922000000) Migrating to AddModRefTable (20110928101300) Migrating to AddDisplayNameToReportsTable (20111011110000) Migrating to InetColumns (20111203000000) Migrating to MoreInetColumns (20111204000000) Migrating to AddScopeToHosts (20111210000000) Migrating to AddVirtualHostToHosts (20120126110000) Migrating to RenameWorkspaceMembers (20120411173220) Migrating to AddCounterCachesToHosts (20120601152442) Migrating to AddVulnDetails (20120625000000) Migrating to AddHostDetails (20120625000001) Migrating to ExpandDetails (20120625000002) Migrating to ExpandDetails2 (20120625000003) Migrating to AddVulnAttempts (20120625000004) Migrating to AddVulnAndHostCounterCaches (20120625000005) Migrating to AddModuleDetails (20120625000006) Migrating to AddExploitAttempts (20120625000007) Migrating to AddFailMessage (20120625000008) Migrating to AddOwnerAndPayloadToWebVulns (20120718202805) Migrating to ChangeRequiredColumnsToNullFalseInWebVulns (20130228214900) Migrating to ChangeForeignKeyInModuleActions (20130412154159) Migrating to ChangeForeignKeyInModuleArchs (20130412171844) Migrating to ChangeForeignKeyInModuleAuthors (20130412173121) Migrating to ChangeForeignKeyInModuleMixins (20130412173640) Migrating to ChangeForeignKeyInModulePlatforms (20130412174254) Migrating to ChangeForeignKeyInModuleRefs (20130412174719) Migrating to ChangeForeignKeyInModuleTargets (20130412175040) Migrating to AddCredsCounterCache (20130423211152) Migrating to ChangeRequiredColumnsToNullFalseInHosts (20130430151353) Migrating to EnforceAddressUniquenessInWorkspaceInHosts (20130430162145) Migrating to RemoveCampaigns (20130510021637) Migrating to ChangeWebVulnsConfidenceToInteger (20130515164311) Migrating to ValidMdmWebVulnParams (20130515172727) Migrating to MakingVulnsRefsARealArModel (20130516204810) Migrating to CreateTaskCreds (20130522001343) Migrating to CreateTaskHosts (20130522032517) Migrating to CreateTaskServices (20130522041110) Migrating to RemoveCampaignIdFromClients (20130525015035) Migrating to DropTableImportedCreds (20130525212420) Migrating to MakingHostTagsARealArModel (20130531144949) Migrating to CreateTaskSessions (20130604145732) Migrating to RemovePnameValidation (20130717150737) Migrating to CreateMetasploitCredentialPublics (20140331173835) Migrating to CreateMetasploitCredentialPrivates (20140407212345) Migrating to CreateMetasploitCredentialRealms (20140410132401) Migrating to UniqueMetasploitCredentialRealms (20140410161611) Migrating to CreateMetasploitCredentialOriginManuals (20140410191213) Migrating to CreateMetasploitCredentialOriginImports (20140410205410) Migrating to CreateMetasploitCredentialOriginSessions (20140411142102) Migrating to CreateMetasploitCredentialOriginServices (20140411205325) Migrating to CreateMetasploitCredentialCores (20140414192550)  (2.5ms) BEGIN  (31.3ms) 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)   (1.4ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.6ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.7ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.6ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.6ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.8ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140414192550')  (2.3ms) COMMIT  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Connecting to database specified by database.yml  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (139.0ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (425.4ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (8.6ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (10.3ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (24.2ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.9ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.9ms) 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), "fail_detail" text)  (3.9ms) 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)   (3.9ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.9ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (0.9ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.9ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (1.0ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.1ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (1.0ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (1.3ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.1ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.0ms) 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, "macro" text)   (2.9ms) 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, "content_type" character varying(255), "name" text, "info" text)  (3.2ms) 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)   (2.8ms) 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)  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.7ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.7ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (1.0ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (1.0ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (3.0ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.7ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.9ms) 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)  (0.9ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (3.0ms) 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)  (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (3.5ms) 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)  (1.0ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (2.6ms) 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)  (1.1ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (3.1ms) 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)  (1.1ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (3.5ms) 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)  (1.1ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (3.9ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)  (5.1ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.7ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.9ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)   (0.8ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.9ms) 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)   (0.8ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (1.1ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (1.0ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (1.0ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.8ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.6ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (4.8ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.7ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.7ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.8ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)   (0.7ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.9ms) 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, "name" text)   (4.6ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)  (0.9ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (3.1ms) 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)  (2.7ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)   (0.8ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.9ms) 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)   (2.8ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))  (3.6ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))   (2.8ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)  (0.9ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.8ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (1.0ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.8ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (3.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)   (2.9ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)  (4.0ms) 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)   (2.1ms) 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)  (2.0ms) 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)   (2.0ms) 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)  (2.0ms) 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)   (3.3ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)  (3.3ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)   (3.0ms) 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, "fail_detail" text)  (3.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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))   (3.0ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)  (0.9ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (2.0ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)  (3.0ms) 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, "query" text)   (0.8ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (3.3ms) 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, "headers" text, "body" bytea, "request" bytea)   (0.9ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.9ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.9ms) 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)  (0.8ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.8ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.8ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.1ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)  (1.0ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.9ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.8ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.0ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)  (3.2ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)   (0.9ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)  (2.8ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml Connecting to database specified by database.yml  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (126.1ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (344.5ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.3ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.7ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (2.9ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.8ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (3.1ms) 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), "fail_detail" text)  (2.7ms) 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)   (2.6ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.5ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (0.9ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.8ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.9ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.1ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.9ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (1.9ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.0ms) 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, "macro" text)   (2.6ms) 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, "content_type" character varying(255), "name" text, "info" text)  (3.0ms) 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)   (2.1ms) 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)  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.7ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.5ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.7ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.9ms) 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)  (0.8ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.8ms) 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)  (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.8ms) 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)  (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (2.8ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (2.0ms) 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)  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.6ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.6ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)  (2.4ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)   (0.7ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.7ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.5ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)   (0.8ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.9ms) 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)   (0.8ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (5.0ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.8ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.9ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.7ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.7ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.8ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.7ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (3.0ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)   (1.0ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (2.8ms) 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, "name" text)   (2.9ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)  (0.8ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.8ms) 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)  (2.7ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)   (0.7ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.7ms) 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)   (2.8ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))  (2.7ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))   (2.7ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)  (0.8ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.8ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.7ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.8ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (3.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)   (3.0ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)  (3.0ms) 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)   (1.9ms) 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)  (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)   (2.0ms) 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)  (1.8ms) 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)   (3.2ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)  (2.8ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)   (3.1ms) 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, "fail_detail" text)  (2.9ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))   (2.7ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)  (0.7ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (1.8ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)  (2.9ms) 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, "query" text)   (0.8ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.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, "headers" text, "body" bytea, "request" bytea)   (0.7ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.8ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.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)  (0.9ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.8ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.8ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (2.9ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)  (1.0ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.9ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.7ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (2.8ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)  (2.6ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)   (0.8ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)  (2.9ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)   (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml Connecting to database specified by database.yml  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (135.1ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (388.7ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.8ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.1ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (3.5ms) 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(256), "source_id" integer, "source_type" character varying(255))  (3.2ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (3.4ms) 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), "fail_detail" text)  (2.9ms) 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)   (3.0ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.5ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.9ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.9ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.1ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.9ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.8ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.3ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.2ms) 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, "macro" text)   (2.9ms) 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, "content_type" character varying(255), "name" text, "info" text)  (3.1ms) 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)   (2.2ms) 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)  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.8ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.0ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (2.1ms) 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)  (0.9ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (3.6ms) 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)  (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (3.0ms) 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)  (1.0ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (3.6ms) 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)  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (2.2ms) 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)  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.7ms) 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)  (0.7ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.8ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)  (2.8ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.7ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.8ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)   (0.9ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.9ms) 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)   (0.8ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.9ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.9ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.9ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.9ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.7ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (3.0ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.9ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)   (0.7ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.1ms) 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, "name" text)   (2.9ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)  (0.8ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (3.0ms) 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)  (2.7ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)   (0.9ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.9ms) 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)   (3.0ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))  (2.9ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))   (2.9ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)  (0.9ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.9ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.9ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.9ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (3.0ms) 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)   (3.2ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)  (3.1ms) 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)   (5.9ms) 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)  (9.2ms) 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)   (2.4ms) 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)  (2.0ms) 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)   (3.4ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)  (3.0ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)   (2.8ms) 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, "fail_detail" text)  (3.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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))   (2.9ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)  (0.9ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (1.9ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)  (3.3ms) 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, "query" text)   (0.9ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (3.0ms) 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, "headers" text, "body" bytea, "request" bytea)   (0.9ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (1.0ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (3.1ms) 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)  (0.8ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.8ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (1.1ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.2ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)  (1.0ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.9ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.8ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.1ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)  (3.1ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)   (0.9ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)  (3.0ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml  (1.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateTables (0) Migrating to AddWmapTables (1) Migrating to AddWorkspaces (2) Migrating to MoveNotes (3) Migrating to AddEventsTable (4) Migrating to ExpandInfo (5) Migrating to AddTimestamps (6) Migrating to AddLoots (7) Migrating to CreateUsers (8) Migrating to AddLootsCtype (9) Migrating to AddAlertFields (10) Migrating to AddReports (11) Migrating to AddTasks (12) Migrating to AddTasksResult (13) Migrating to AddLootsFields (14) Migrating to RenameUser (15) Migrating to AddHostPurpose (16) Migrating to ExpandInfo2 (17) Migrating to AddWorkspaceUserInfo (18) Migrating to AddWorkspaceDesc (19) Migrating to AddUserPreferences (20) Migrating to StandardizeInfoAndData (21) Migrating to EnlargeEventInfo (22) Migrating to AddReportDownloadedAt (23) Migrating to ConvertServiceInfoToText (24) Migrating to AddUserAdmin (25) Migrating to AddCredsTable (26) Migrating to MigrateCredData (20100819123300) Migrating to AddExploitedTable (20100824151500) Migrating to AddOwnerToWorkspaces (20100908001428) Migrating to AddReportTemplates (20100911122000) Migrating to RequireAdminFlag (20100916151530) Migrating to AddCampaignsAndTemplates (20100916175000) Migrating to AddGenerateExeColumn (20100920012100) Migrating to AddTemplatePrefs (20100926214000) Migrating to AddWebTables (20101001000000) Migrating to AddQuery (20101002000000) Migrating to AddVulnInfo (20101007000000) Migrating to AddClientsToCampaigns (20101008111800) Migrating to AddCampaignAttachments (20101009023300) Migrating to AddImportedCreds (20101104135100) Migrating to FixWebTables (20101203000000) Migrating to ExpandHostComment (20101203000001) Migrating to AddLimitToNetworkToWorkspaces (20101206212033) Migrating to AddModuleUuidToTasks (20110112154300) Migrating to AddHostTags (20110204112800) Migrating to AddSessionTable (20110317144932) Migrating to AddLocalIdToSessionTable (20110414180600) Migrating to AddRoutesTable (20110415175705) Migrating to ConvertBinary (20110422000000) Migrating to AddLastSeenToSessions (20110425095900) Migrating to TrackSuccessfulExploits (20110513143900) Migrating to RenameAndPruneNessusVulns (20110517160800) Migrating to AddTaskIdToReportsTable (20110527000000) Migrating to AddApiKeysTable (20110527000001) Migrating to AddMacrosTable (20110606000001) Migrating to AddSettingsToTasksTable (20110622000000) Migrating to AddListenersTable (20110624000001) Migrating to AddMacroToListenersTable (20110625000001) Migrating to AddNexposeConsolesTable (20110630000001) Migrating to AddNameToNexposeConsolesTable (20110630000002) Migrating to AddProfilesTable (20110717000001) Migrating to ExpandCredPtypeColumn (20110727163801) Migrating to AddInitialIndexes (20110730000001) Migrating to PruneIndexes (20110812000001) Migrating to ExpandNotes (20110922000000) Migrating to AddModRefTable (20110928101300) Migrating to AddDisplayNameToReportsTable (20111011110000) Migrating to InetColumns (20111203000000) Migrating to MoreInetColumns (20111204000000) Migrating to AddScopeToHosts (20111210000000) Migrating to AddVirtualHostToHosts (20120126110000) Migrating to RenameWorkspaceMembers (20120411173220) Migrating to AddCounterCachesToHosts (20120601152442) Migrating to AddVulnDetails (20120625000000) Migrating to AddHostDetails (20120625000001) Migrating to ExpandDetails (20120625000002) Migrating to ExpandDetails2 (20120625000003) Migrating to AddVulnAttempts (20120625000004) Migrating to AddVulnAndHostCounterCaches (20120625000005) Migrating to AddModuleDetails (20120625000006) Migrating to AddExploitAttempts (20120625000007) Migrating to AddFailMessage (20120625000008) Migrating to AddOwnerAndPayloadToWebVulns (20120718202805) Migrating to ChangeRequiredColumnsToNullFalseInWebVulns (20130228214900) Migrating to ChangeForeignKeyInModuleActions (20130412154159) Migrating to ChangeForeignKeyInModuleArchs (20130412171844) Migrating to ChangeForeignKeyInModuleAuthors (20130412173121) Migrating to ChangeForeignKeyInModuleMixins (20130412173640) Migrating to ChangeForeignKeyInModulePlatforms (20130412174254) Migrating to ChangeForeignKeyInModuleRefs (20130412174719) Migrating to ChangeForeignKeyInModuleTargets (20130412175040) Migrating to AddCredsCounterCache (20130423211152) Migrating to ChangeRequiredColumnsToNullFalseInHosts (20130430151353) Migrating to EnforceAddressUniquenessInWorkspaceInHosts (20130430162145) Migrating to RemoveCampaigns (20130510021637) Migrating to ChangeWebVulnsConfidenceToInteger (20130515164311) Migrating to ValidMdmWebVulnParams (20130515172727) Migrating to MakingVulnsRefsARealArModel (20130516204810) Migrating to CreateTaskCreds (20130522001343) Migrating to CreateTaskHosts (20130522032517) Migrating to CreateTaskServices (20130522041110) Migrating to RemoveCampaignIdFromClients (20130525015035) Migrating to DropTableImportedCreds (20130525212420) Migrating to MakingHostTagsARealArModel (20130531144949) Migrating to CreateTaskSessions (20130604145732) Migrating to RemovePnameValidation (20130717150737) Migrating to CreateMetasploitCredentialPublics (20140331173835) Migrating to CreateMetasploitCredentialPrivates (20140407212345) Migrating to CreateMetasploitCredentialRealms (20140410132401) Migrating to UniqueMetasploitCredentialRealms (20140410161611) Migrating to CreateMetasploitCredentialOriginManuals (20140410191213) Migrating to CreateMetasploitCredentialOriginImports (20140410205410) Migrating to CreateMetasploitCredentialOriginSessions (20140411142102) Migrating to CreateMetasploitCredentialOriginServices (20140411205325) Migrating to CreateMetasploitCredentialCores (20140414192550)  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (139.7ms) DROP DATABASE IF EXISTS "metasploit_credential_test" Connecting to database specified by database.yml  (375.5ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (8.1ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.8ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (19.5ms) 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(256), "source_id" integer, "source_type" character varying(255))  (3.1ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (3.1ms) 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), "fail_detail" text)  (3.1ms) 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)   (3.2ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.4ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (1.0ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.9ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.4ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (1.0ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (1.9ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.3ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.4ms) 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, "macro" text)   (3.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, "content_type" character varying(255), "name" text, "info" text)  (3.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)   (2.2ms) 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)  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (1.2ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (1.2ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (1.0ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.7ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.9ms) 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)  (0.8ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (3.1ms) 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)  (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (3.0ms) 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)  (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (2.9ms) 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)  (1.1ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (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)  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (3.0ms) 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)  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.9ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)  (2.9ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (3.0ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)   (1.1ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (3.1ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)   (0.9ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (3.1ms) 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)   (1.0ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.8ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.8ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (1.0ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (4.0ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (3.0ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)  (1.0ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (3.1ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.9ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (3.1ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)   (1.1ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.1ms) 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, "name" text)   (3.5ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)  (0.9ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (3.0ms) 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)  (2.9ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)   (0.8ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (3.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)   (3.3ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))  (2.7ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))   (2.9ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)  (0.9ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.9ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.9ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (1.0ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.9ms) 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)   (2.9ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)  (3.3ms) 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)   (2.1ms) 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)  (2.0ms) 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)   (2.2ms) 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)  (2.0ms) 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)   (3.8ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)  (3.3ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)   (3.1ms) 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, "fail_detail" text)  (3.7ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))   (2.9ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)  (0.8ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (1.9ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)  (2.9ms) 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, "query" text)   (1.1ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (3.1ms) 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, "headers" text, "body" bytea, "request" bytea)   (0.8ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.7ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.8ms) 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)  (0.8ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.8ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.8ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.0ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)  (0.9ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.8ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.8ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.0ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)  (2.8ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)   (0.8ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)  (3.0ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)   (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (128.0ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (228.2ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.2ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.9ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (2.9ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.6ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.8ms) 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), "fail_detail" text)  (2.7ms) 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)   (2.8ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.4ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.1ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.9ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.8ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.0ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.9ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.9ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (1.9ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.0ms) 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, "macro" text)   (2.8ms) 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, "content_type" character varying(255), "name" text, "info" text)  (2.9ms) 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)   (2.0ms) 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)  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.7ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.6ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.8ms) 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)  (0.8ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.9ms) 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)  (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.7ms) 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)  (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (2.8ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (2.0ms) 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)  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.7ms) 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)  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.6ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)  (2.5ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.6ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.7ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)   (0.7ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.8ms) 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)   (0.9ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.9ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.7ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.8ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.7ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.5ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.8ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.7ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)   (1.0ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.1ms) 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, "name" text)   (2.9ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)  (0.9ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.7ms) 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)  (2.7ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)   (0.9ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.7ms) 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)   (2.8ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))  (2.5ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))   (2.7ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)  (1.0ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (1.1ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (1.1ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (1.0ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (3.5ms) 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)   (3.2ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)  (3.6ms) 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)   (2.0ms) 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)  (2.1ms) 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)   (2.0ms) 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)  (1.8ms) 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)   (3.1ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)  (3.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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)   (2.8ms) 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, "fail_detail" text)  (2.9ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))   (2.8ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)  (0.8ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (1.9ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)  (2.9ms) 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, "query" text)   (0.8ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.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, "headers" text, "body" bytea, "request" bytea)   (0.8ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.9ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.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)  (0.8ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.8ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.8ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (2.9ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)  (0.9ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.8ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.8ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (2.9ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)  (2.8ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)   (0.8ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)  (2.5ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml Connecting to database specified by database.yml  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (125.7ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (248.7ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.0ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.6ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (20.2ms) 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(256), "source_id" integer, "source_type" character varying(255))  (3.0ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.7ms) 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), "fail_detail" text)  (2.4ms) 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)   (2.9ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.6ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.8ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.8ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.1ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.8ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.1ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.0ms) 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, "macro" text)   (2.7ms) 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, "content_type" character varying(255), "name" text, "info" text)  (2.8ms) 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)   (1.9ms) 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)  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.6ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.8ms) 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)  (0.8ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.9ms) 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)  (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.7ms) 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)  (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (2.8ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (2.0ms) 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)  (1.1ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.7ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.7ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)  (2.7ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.8ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)   (1.1ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.7ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)   (0.9ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.8ms) 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)   (0.8ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.9ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.9ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.9ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.9ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.6ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)  (0.7ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (3.1ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.9ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)   (1.0ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.1ms) 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, "name" text)   (3.0ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)  (0.8ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (3.0ms) 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)  (2.8ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)   (0.9ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.8ms) 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)   (3.0ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))  (2.8ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))   (3.0ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)  (2.4ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (1.0ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.9ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.9ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.9ms) 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)   (3.3ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)  (3.1ms) 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)   (2.0ms) 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)  (1.9ms) 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)   (2.1ms) 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)  (2.0ms) 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)   (3.1ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)  (3.0ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)   (2.8ms) 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, "fail_detail" text)  (3.1ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))   (2.9ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)  (0.9ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (1.9ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)  (3.0ms) 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, "query" text)   (0.9ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (3.1ms) 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, "headers" text, "body" bytea, "request" bytea)   (0.9ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.8ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (3.1ms) 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)  (0.9ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.9ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.9ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.2ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)  (1.1ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.9ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.8ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.0ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)  (2.9ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)   (0.8ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)  (2.8ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)   (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (6.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (127.3ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (454.5ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.4ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.0ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (20.0ms) 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(256), "source_id" integer, "source_type" character varying(255))  (3.1ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (3.0ms) 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), "fail_detail" text)  (3.5ms) 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)   (3.0ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.6ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (1.0ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.8ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.1ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.9ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.0ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.2ms) 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, "macro" text)   (2.8ms) 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, "content_type" character varying(255), "name" text, "info" text)  (3.0ms) 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)   (2.0ms) 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)  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.7ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.6ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.8ms) 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)  (0.9ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (3.0ms) 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)  (1.0ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.9ms) 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)  (1.0ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (2.9ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (2.0ms) 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)  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.8ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (3.0ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)  (2.8ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.7ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)   (1.1ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (3.1ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)   (0.8ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (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)   (0.9ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.8ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (1.0ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.9ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.9ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)  (1.0ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.8ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.9ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.9ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.8ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.0ms) 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, "name" text)   (2.9ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)  (0.8ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (3.1ms) 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)  (2.6ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)   (0.9ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (3.2ms) 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)   (2.9ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))  (2.7ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))   (2.9ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)  (0.8ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.8ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (1.0ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.8ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (3.0ms) 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)   (3.0ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)  (3.1ms) 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)   (2.1ms) 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)  (1.8ms) 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)   (5.1ms) 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)  (2.9ms) 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)   (3.4ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)  (3.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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)   (2.7ms) 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, "fail_detail" text)  (3.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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))   (3.2ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)  (0.9ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (1.9ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)  (2.9ms) 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, "query" text)   (0.9ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.9ms) 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, "headers" text, "body" bytea, "request" bytea)   (0.9ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.8ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (3.1ms) 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)  (0.9ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.9ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.8ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.2ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)  (1.0ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.8ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.8ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.0ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)  (2.9ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)   (0.8ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)  (2.7ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (125.7ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (238.0ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (4.9ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.9ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (3.2ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.7ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.8ms) 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), "fail_detail" text)  (2.7ms) 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)   (2.8ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.5ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (0.9ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.9ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.9ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.1ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.8ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.0ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (2.9ms) 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, "macro" text)   (3.0ms) 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, "content_type" character varying(255), "name" text, "info" text)  (2.9ms) 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)   (1.9ms) 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)  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.6ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.9ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.9ms) 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)  (0.7ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (3.0ms) 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)  (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.8ms) 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)  (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (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)  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (2.1ms) 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)  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.7ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.6ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)  (2.7ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.8ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)   (1.4ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.8ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)   (0.9ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.9ms) 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)   (0.8ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.9ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.8ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.9ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.8ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.9ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.9ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.6ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)   (1.1ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.1ms) 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, "name" text)   (3.2ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)  (0.9ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.7ms) 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)  (2.5ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)   (0.9ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.8ms) 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)   (2.9ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))  (2.6ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))   (2.8ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)  (0.8ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.9ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.9ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.8ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.7ms) 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)   (3.0ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)  (3.1ms) 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)   (1.9ms) 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)  (1.8ms) 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)   (1.9ms) 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)  (1.9ms) 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)   (3.1ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)  (2.9ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)   (2.8ms) 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, "fail_detail" text)  (2.9ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))   (2.8ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)  (0.9ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (1.9ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)  (2.6ms) 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, "query" text)   (0.9ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (3.1ms) 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, "headers" text, "body" bytea, "request" bytea)   (0.8ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.9ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (3.0ms) 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)  (0.9ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.8ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.8ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.1ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)  (1.1ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.8ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.9ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.0ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)  (2.8ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)   (0.8ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)  (2.7ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (135.0ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (266.5ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.2ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (4.1ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (3.0ms) 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(256), "source_id" integer, "source_type" character varying(255))  (3.2ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (3.3ms) 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), "fail_detail" text)  (2.9ms) 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)   (2.9ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.2ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (0.9ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.7ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.8ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.1ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.7ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (1.8ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (2.9ms) 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, "macro" text)   (2.7ms) 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, "content_type" character varying(255), "name" text, "info" text)  (3.0ms) 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)   (2.0ms) 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)  (0.7ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.7ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.8ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.8ms) 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)  (0.8ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.7ms) 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)  (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.5ms) 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)  (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (2.4ms) 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)  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.8ms) 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)  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.4ms) 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)  (0.7ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.4ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)  (2.5ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)   (0.7ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.5ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.5ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)   (0.7ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.7ms) 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)   (0.7ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.7ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.7ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.7ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.5ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.9ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)  (0.7ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.7ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.7ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (3.1ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)   (0.7ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (2.7ms) 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, "name" text)   (2.7ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)  (0.7ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (19.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)  (12.8ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)   (11.8ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (13.0ms) 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)   (4.0ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))  (2.5ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))   (2.6ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)  (0.7ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.7ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.8ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.8ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.6ms) 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)   (2.8ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)  (2.8ms) 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)   (1.7ms) 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)  (1.8ms) 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)   (1.8ms) 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)  (1.7ms) 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)   (3.0ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)  (2.8ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)   (2.5ms) 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, "fail_detail" text)  (2.8ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))   (3.5ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)  (0.8ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (2.4ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)  (2.6ms) 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, "query" text)   (0.7ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.6ms) 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, "headers" text, "body" bytea, "request" bytea)   (0.7ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.7ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.4ms) 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)  (0.8ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.9ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.8ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (2.7ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)  (0.9ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.9ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.8ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (2.8ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)  (2.5ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)   (1.1ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)  (2.5ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateTables (0) Migrating to AddWmapTables (1) Migrating to AddWorkspaces (2) Migrating to MoveNotes (3) Migrating to AddEventsTable (4) Migrating to ExpandInfo (5) Migrating to AddTimestamps (6) Migrating to AddLoots (7) Migrating to CreateUsers (8) Migrating to AddLootsCtype (9) Migrating to AddAlertFields (10) Migrating to AddReports (11) Migrating to AddTasks (12) Migrating to AddTasksResult (13) Migrating to AddLootsFields (14) Migrating to RenameUser (15) Migrating to AddHostPurpose (16) Migrating to ExpandInfo2 (17) Migrating to AddWorkspaceUserInfo (18) Migrating to AddWorkspaceDesc (19) Migrating to AddUserPreferences (20) Migrating to StandardizeInfoAndData (21) Migrating to EnlargeEventInfo (22) Migrating to AddReportDownloadedAt (23) Migrating to ConvertServiceInfoToText (24) Migrating to AddUserAdmin (25) Migrating to AddCredsTable (26) Migrating to MigrateCredData (20100819123300) Migrating to AddExploitedTable (20100824151500) Migrating to AddOwnerToWorkspaces (20100908001428) Migrating to AddReportTemplates (20100911122000) Migrating to RequireAdminFlag (20100916151530) Migrating to AddCampaignsAndTemplates (20100916175000) Migrating to AddGenerateExeColumn (20100920012100) Migrating to AddTemplatePrefs (20100926214000) Migrating to AddWebTables (20101001000000) Migrating to AddQuery (20101002000000) Migrating to AddVulnInfo (20101007000000) Migrating to AddClientsToCampaigns (20101008111800) Migrating to AddCampaignAttachments (20101009023300) Migrating to AddImportedCreds (20101104135100) Migrating to FixWebTables (20101203000000) Migrating to ExpandHostComment (20101203000001) Migrating to AddLimitToNetworkToWorkspaces (20101206212033) Migrating to AddModuleUuidToTasks (20110112154300) Migrating to AddHostTags (20110204112800) Migrating to AddSessionTable (20110317144932) Migrating to AddLocalIdToSessionTable (20110414180600) Migrating to AddRoutesTable (20110415175705) Migrating to ConvertBinary (20110422000000) Migrating to AddLastSeenToSessions (20110425095900) Migrating to TrackSuccessfulExploits (20110513143900) Migrating to RenameAndPruneNessusVulns (20110517160800) Migrating to AddTaskIdToReportsTable (20110527000000) Migrating to AddApiKeysTable (20110527000001) Migrating to AddMacrosTable (20110606000001) Migrating to AddSettingsToTasksTable (20110622000000) Migrating to AddListenersTable (20110624000001) Migrating to AddMacroToListenersTable (20110625000001) Migrating to AddNexposeConsolesTable (20110630000001) Migrating to AddNameToNexposeConsolesTable (20110630000002) Migrating to AddProfilesTable (20110717000001) Migrating to ExpandCredPtypeColumn (20110727163801) Migrating to AddInitialIndexes (20110730000001) Migrating to PruneIndexes (20110812000001) Migrating to ExpandNotes (20110922000000) Migrating to AddModRefTable (20110928101300) Migrating to AddDisplayNameToReportsTable (20111011110000) Migrating to InetColumns (20111203000000) Migrating to MoreInetColumns (20111204000000) Migrating to AddScopeToHosts (20111210000000) Migrating to AddVirtualHostToHosts (20120126110000) Migrating to RenameWorkspaceMembers (20120411173220) Migrating to AddCounterCachesToHosts (20120601152442) Migrating to AddVulnDetails (20120625000000) Migrating to AddHostDetails (20120625000001) Migrating to ExpandDetails (20120625000002) Migrating to ExpandDetails2 (20120625000003) Migrating to AddVulnAttempts (20120625000004) Migrating to AddVulnAndHostCounterCaches (20120625000005) Migrating to AddModuleDetails (20120625000006) Migrating to AddExploitAttempts (20120625000007) Migrating to AddFailMessage (20120625000008) Migrating to AddOwnerAndPayloadToWebVulns (20120718202805) Migrating to ChangeRequiredColumnsToNullFalseInWebVulns (20130228214900) Migrating to ChangeForeignKeyInModuleActions (20130412154159) Migrating to ChangeForeignKeyInModuleArchs (20130412171844) Migrating to ChangeForeignKeyInModuleAuthors (20130412173121) Migrating to ChangeForeignKeyInModuleMixins (20130412173640) Migrating to ChangeForeignKeyInModulePlatforms (20130412174254) Migrating to ChangeForeignKeyInModuleRefs (20130412174719) Migrating to ChangeForeignKeyInModuleTargets (20130412175040) Migrating to AddCredsCounterCache (20130423211152) Migrating to ChangeRequiredColumnsToNullFalseInHosts (20130430151353) Migrating to EnforceAddressUniquenessInWorkspaceInHosts (20130430162145) Migrating to RemoveCampaigns (20130510021637) Migrating to ChangeWebVulnsConfidenceToInteger (20130515164311) Migrating to ValidMdmWebVulnParams (20130515172727) Migrating to MakingVulnsRefsARealArModel (20130516204810) Migrating to CreateTaskCreds (20130522001343) Migrating to CreateTaskHosts (20130522032517) Migrating to CreateTaskServices (20130522041110) Migrating to RemoveCampaignIdFromClients (20130525015035) Migrating to DropTableImportedCreds (20130525212420) Migrating to MakingHostTagsARealArModel (20130531144949) Migrating to CreateTaskSessions (20130604145732) Migrating to RemovePnameValidation (20130717150737) Migrating to CreateMetasploitCredentialPublics (20140331173835) Migrating to CreateMetasploitCredentialPrivates (20140407212345) Migrating to CreateMetasploitCredentialRealms (20140410132401) Migrating to UniqueMetasploitCredentialRealms (20140410161611) Migrating to CreateMetasploitCredentialOriginManuals (20140410191213) Migrating to CreateMetasploitCredentialOriginImports (20140410205410) Migrating to CreateMetasploitCredentialOriginSessions (20140411142102) Migrating to CreateMetasploitCredentialOriginServices (20140411205325) Migrating to CreateMetasploitCredentialCores (20140414192550) Migrating to CreateMetasploitCredentialLogins (20140417140933)  (0.1ms) BEGIN  (60.3ms) 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)   (6.1ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (6.6ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140417140933')  (6.1ms) COMMIT  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" Connecting to database specified by database.yml  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (128.1ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (362.5ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.3ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.0ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (3.0ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.9ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.8ms) 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), "fail_detail" text)  (4.6ms) 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)   (3.0ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.7ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.9ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.9ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.1ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.9ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.9ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.1ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.1ms) 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, "macro" text)   (3.0ms) 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, "content_type" character varying(255), "name" text, "info" text)  (2.9ms) 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)   (2.2ms) 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)  (1.0ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.7ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.8ms) 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)  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (3.0ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.7ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (2.0ms) 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)   (1.0ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (3.1ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.8ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (2.9ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (2.1ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.7ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.5ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.7ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.7ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.5ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.7ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (1.0ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (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)  (1.0ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (1.1ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.9ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (1.0ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (3.1ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.7ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (3.0ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.9ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (1.1ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.9ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (3.0ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.0ms) 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, "name" text)  (3.0ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.9ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.9ms) 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)   (2.7ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.8ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.8ms) 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)  (3.1ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.7ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (3.1ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (1.0ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.8ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.8ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.8ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.7ms) 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)  (3.7ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (3.2ms) 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)  (2.2ms) 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)   (2.2ms) 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)  (2.2ms) 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)   (2.2ms) 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)  (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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (2.8ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (3.7ms) 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, "fail_detail" text)   (3.2ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (3.0ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.9ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (2.3ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (3.0ms) 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, "query" text)  (0.9ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (3.5ms) 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, "headers" text, "body" bytea, "request" bytea)  (0.9ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.8ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.9ms) 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)   (1.0ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.9ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.9ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.2ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.8ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.8ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.9ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.1ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.8ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.8ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (2.8ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (128.0ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (230.5ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.2ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.6ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (3.1ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.8ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.7ms) 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), "fail_detail" text)  (2.5ms) 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)   (2.6ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.5ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (0.9ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.7ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.8ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.1ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.8ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (1.9ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (2.9ms) 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, "macro" text)   (2.6ms) 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, "content_type" character varying(255), "name" text, "info" text)  (3.1ms) 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)   (1.9ms) 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)  (0.7ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.7ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.7ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.5ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.7ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.6ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.7ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.7ms) 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)   (0.7ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.8ms) 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)   (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (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)   (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (2.8ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.8ms) 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)   (0.7ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.5ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.4ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.6ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.7ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.4ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.7ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.5ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.7ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (3.3ms) 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)  (5.0ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.8ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.8ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.9ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.5ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.9ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (3.5ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (1.1ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.4ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.7ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.0ms) 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, "name" text)  (3.5ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.9ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.8ms) 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)   (3.7ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.9ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.8ms) 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)  (2.7ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.7ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.7ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.9ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.8ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.8ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.8ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.7ms) 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)  (2.8ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (4.1ms) 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)  (1.9ms) 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)   (1.8ms) 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)  (1.9ms) 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)   (2.0ms) 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)  (3.2ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (2.8ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (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, "fail_detail" text)   (2.7ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (2.6ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.8ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (2.0ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.7ms) 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, "query" text)  (0.8ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (3.0ms) 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, "headers" text, "body" bytea, "request" bytea)  (0.8ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (2.2ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (3.3ms) 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)   (0.9ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.9ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.8ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (2.9ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.8ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.9ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.8ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.0ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.6ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (2.7ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (134.3ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (230.6ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (4.9ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.7ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (2.9ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.6ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.7ms) 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), "fail_detail" text)  (5.1ms) 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)   (3.8ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.7ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.2ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (1.1ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (1.1ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.2ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.9ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (1.0ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.0ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.2ms) 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, "macro" text)   (2.8ms) 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, "content_type" character varying(255), "name" text, "info" text)  (2.8ms) 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)   (2.3ms) 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)  (1.1ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.7ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.7ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.5ms) 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)  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.6ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.9ms) 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)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (3.7ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.5ms) 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)   (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (3.2ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (2.0ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.8ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.6ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.6ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.6ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.7ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.5ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.7ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.7ms) 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)  (0.8ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.7ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.7ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.8ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.5ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.8ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.9ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.9ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.8ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (1.1ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.1ms) 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, "name" text)  (2.6ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.8ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.6ms) 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)   (3.0ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.8ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.7ms) 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)  (2.8ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.4ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.6ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.8ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.7ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.8ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.7ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.6ms) 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)  (2.9ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (2.8ms) 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)  (1.9ms) 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)   (1.8ms) 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)  (1.9ms) 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)   (2.1ms) 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)  (2.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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (2.9ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (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, "fail_detail" text)   (2.9ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (3.1ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.7ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (1.9ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.5ms) 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, "query" text)  (0.7ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.9ms) 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, "headers" text, "body" bytea, "request" bytea)  (0.8ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.8ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.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)   (0.7ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.7ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.8ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.8ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.8ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.8ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (2.9ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.6ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (2.6ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (5029.2ms) DROP DATABASE IF EXISTS "metasploit_credential_test" PG::ObjectInUse: ERROR: database "metasploit_credential_test" is being accessed by other users DETAIL: There is 1 other session using the database. : DROP DATABASE IF EXISTS "metasploit_credential_test" Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (124.9ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (362.4ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (4.9ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.6ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (20.7ms) 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(256), "source_id" integer, "source_type" character varying(255))  (3.0ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.7ms) 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), "fail_detail" text)  (2.7ms) 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)   (2.8ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.4ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.9ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.8ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (10.9ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (6.2ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (5.1ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.1ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (2.9ms) 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, "macro" text)   (2.8ms) 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, "content_type" character varying(255), "name" text, "info" text)  (2.7ms) 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)   (1.8ms) 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)  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.5ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.9ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.7ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.6ms) 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)   (0.9ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.8ms) 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)   (0.7ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.8ms) 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)   (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (2.9ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.8ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.6ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.7ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.7ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.7ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.8ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.9ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.9ms) 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)  (0.9ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (1.2ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.8ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (1.0ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.6ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (3.0ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.7ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.9ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.8ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (2.9ms) 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, "name" text)  (2.9ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.9ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.6ms) 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)   (2.6ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.9ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.9ms) 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)  (3.0ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.8ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.7ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.9ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.7ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.8ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.8ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.8ms) 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)  (3.1ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (2.8ms) 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)  (2.0ms) 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)   (2.0ms) 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)  (2.0ms) 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)   (2.0ms) 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)  (3.2ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (3.0ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (2.8ms) 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, "fail_detail" text)   (2.9ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (2.8ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.8ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (2.0ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.6ms) 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, "query" text)  (0.8ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.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, "headers" text, "body" bytea, "request" bytea)  (0.9ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.8ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.9ms) 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)   (1.1ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.8ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.8ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (2.9ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.9ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.9ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.8ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.0ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.5ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.9ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (2.8ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (126.4ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (230.8ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.2ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.8ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (2.8ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.7ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.8ms) 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), "fail_detail" text)  (2.7ms) 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)   (3.0ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.1ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (0.9ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (1.1ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.8ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.0ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.8ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (1.9ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.0ms) 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, "macro" text)   (2.8ms) 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, "content_type" character varying(255), "name" text, "info" text)  (2.8ms) 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)   (2.0ms) 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)  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.6ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.9ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.9ms) 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)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.8ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.5ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.9ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.6ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.6ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.5ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (1.0ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.5ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.5ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.8ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.8ms) 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)  (1.0ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.8ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.9ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.9ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (3.0ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (3.4ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (3.4ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.6ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (2.8ms) 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, "name" text)  (2.8ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.7ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.5ms) 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)   (2.6ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (1.0ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.8ms) 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)  (2.9ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.6ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.6ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.8ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.8ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.8ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.8ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.7ms) 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)  (2.9ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (2.9ms) 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)  (1.9ms) 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)   (1.8ms) 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)  (1.9ms) 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)   (2.1ms) 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)  (3.0ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (2.8ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (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, "fail_detail" text)   (2.9ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (2.7ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (2.0ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.7ms) 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, "query" text)  (0.9ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.7ms) 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, "headers" text, "body" bytea, "request" bytea)  (0.9ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.8ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.8ms) 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)   (0.8ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.7ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.7ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.0ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.9ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.8ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.8ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.0ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.7ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (2.7ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml  (6.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (4575.7ms) DROP DATABASE IF EXISTS "metasploit_credential_test" Interrupt: : DROP DATABASE IF EXISTS "metasploit_credential_test" Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (5031.6ms) DROP DATABASE IF EXISTS "metasploit_credential_test" PG::ObjectInUse: ERROR: database "metasploit_credential_test" is being accessed by other users DETAIL: There is 1 other session using the database. : DROP DATABASE IF EXISTS "metasploit_credential_test" Connecting to database specified by database.yml  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (158.4ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (408.9ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (6.6ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (4.2ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (20.2ms) 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(256), "source_id" integer, "source_type" character varying(255))  (20.4ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (3.1ms) 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), "fail_detail" text)  (2.7ms) 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)   (2.8ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.5ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (0.9ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.8ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.9ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.1ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.9ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.1ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.0ms) 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, "macro" text)   (3.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, "content_type" character varying(255), "name" text, "info" text)  (3.0ms) 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)   (2.1ms) 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)  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (1.0ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (1.0ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.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)  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (3.2ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.9ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (2.2ms) 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)   (1.0ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (3.3ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (3.0ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (3.1ms) 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)   (1.1ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (2.1ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.7ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.8ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (3.0ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (3.2ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.9ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.8ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (3.1ms) 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)  (0.8ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.7ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.8ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.8ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.6ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (3.2ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (1.0ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.6ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.7ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.7ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.6ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (11.5ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (20.5ms) 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, "name" text)  (25.5ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.9ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.6ms) 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)   (19.4ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (1.0ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.9ms) 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)  (2.9ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.7ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.7ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.9ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.8ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.7ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.9ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (3.0ms) 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)  (3.2ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (2.9ms) 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)  (1.9ms) 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)   (2.2ms) 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)  (2.0ms) 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)   (2.2ms) 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)  (3.0ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (2.9ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (2.8ms) 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, "fail_detail" text)   (2.9ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (2.9ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.8ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (2.1ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.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, "query" text)  (0.8ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.9ms) 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, "headers" text, "body" bytea, "request" bytea)  (0.9ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.8ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (3.1ms) 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)   (0.8ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.8ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.8ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (2.9ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.8ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.8ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.7ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.2ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.7ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.8ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (2.6ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (131.4ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (371.5ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.1ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.7ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (20.0ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.9ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (3.1ms) 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), "fail_detail" text)  (2.6ms) 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)   (3.0ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.5ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (0.9ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.8ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.9ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.1ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.8ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.0ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (2.9ms) 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, "macro" text)   (3.0ms) 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, "content_type" character varying(255), "name" text, "info" text)  (2.9ms) 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)   (1.8ms) 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)  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.6ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.7ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.9ms) 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)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.7ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.5ms) 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)   (0.7ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (4.2ms) 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)   (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (2.0ms) 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)   (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.6ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.6ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.6ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (1.0ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.4ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.8ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.7ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.8ms) 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)  (1.0ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.9ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.8ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.7ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.7ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.8ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.6ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.7ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.5ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (2.6ms) 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, "name" text)  (2.8ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.9ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (3.0ms) 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)   (2.6ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.8ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.8ms) 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)  (2.8ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.5ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.8ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.9ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.8ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.9ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.8ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.7ms) 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)  (3.2ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (3.0ms) 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)  (2.0ms) 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)   (2.0ms) 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)  (1.8ms) 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)   (2.0ms) 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)  (3.0ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (2.8ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (2.8ms) 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, "fail_detail" text)   (3.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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (2.8ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.8ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (2.0ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.7ms) 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, "query" text)  (1.1ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (3.0ms) 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, "headers" text, "body" bytea, "request" bytea)  (0.8ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.7ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.9ms) 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)   (0.8ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.8ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.8ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (2.9ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.8ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.8ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.9ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.0ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.7ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.8ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (2.9ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml  (20.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (128.0ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (361.5ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (15.9ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.8ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (26.1ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.7ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (3.0ms) 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), "fail_detail" text)  (2.6ms) 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)   (2.6ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.3ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (0.9ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.7ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.8ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.0ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.8ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (1.9ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.0ms) 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, "macro" text)   (2.7ms) 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, "content_type" character varying(255), "name" text, "info" text)  (2.8ms) 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)   (1.9ms) 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)  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (1.0ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.6ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.8ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.8ms) 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)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.8ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.6ms) 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)   (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (2.8ms) 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)   (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (2.0ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.6ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.7ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (3.0ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.5ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (1.1ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.7ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.8ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.8ms) 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)  (0.8ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.8ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.8ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.8ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.8ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.7ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.8ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (1.1ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.9ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.6ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (2.8ms) 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, "name" text)  (2.9ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.9ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.6ms) 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)   (2.6ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (1.0ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.6ms) 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)  (2.9ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.6ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.8ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.7ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.9ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.8ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.8ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.6ms) 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)  (3.2ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (2.8ms) 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)  (1.8ms) 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)   (2.0ms) 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)  (1.9ms) 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)   (1.9ms) 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)  (2.8ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (3.0ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (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, "fail_detail" text)   (2.8ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (3.7ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.8ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (2.0ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.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, "query" text)  (0.8ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.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, "headers" text, "body" bytea, "request" bytea)  (0.9ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.8ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.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)   (0.8ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.8ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.8ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.0ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.9ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.7ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.9ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (2.9ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.4ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (2.6ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (2.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (124.3ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (228.9ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (4.9ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.5ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (4.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(256), "source_id" integer, "source_type" character varying(255))  (2.7ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.8ms) 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), "fail_detail" text)  (2.6ms) 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)   (2.8ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.4ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.8ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.8ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.0ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (1.0ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.0ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (2.9ms) 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, "macro" text)   (2.6ms) 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, "content_type" character varying(255), "name" text, "info" text)  (2.7ms) 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)   (1.9ms) 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)  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.7ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.6ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.7ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.7ms) 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)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.7ms) 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)   (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.6ms) 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)   (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (2.8ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.8ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.3ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.5ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.5ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.4ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.6ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.8ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (3.1ms) 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)  (0.9ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.8ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.9ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.8ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.8ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.8ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.7ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (12.0ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (14.1ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (13.5ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.9ms) 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, "name" text)  (3.8ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.8ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.5ms) 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)   (2.6ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (1.0ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.8ms) 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)  (3.0ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (3.5ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.7ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.9ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.8ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.8ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.8ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.5ms) 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)  (2.9ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (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)  (2.0ms) 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)   (2.0ms) 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)  (1.8ms) 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)   (2.0ms) 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)  (2.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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (2.9ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (2.8ms) 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, "fail_detail" text)   (2.8ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (2.8ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.8ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (1.9ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.7ms) 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, "query" text)  (0.8ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.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, "headers" text, "body" bytea, "request" bytea)  (0.8ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.7ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (3.1ms) 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)   (0.8ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.8ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.9ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.1ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.8ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.9ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.8ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (2.8ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.6ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (2.7ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (228.3ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (228.9ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (4.8ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.7ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (3.0ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.5ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.7ms) 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), "fail_detail" text)  (2.5ms) 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)   (2.9ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.4ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.8ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.8ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.1ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.8ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (1.8ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.6ms) 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, "macro" text)   (2.8ms) 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, "content_type" character varying(255), "name" text, "info" text)  (2.7ms) 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)   (1.8ms) 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)  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.7ms) 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)  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.8ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.0ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.9ms) 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)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.8ms) 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)   (0.7ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.7ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (2.9ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.7ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.6ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.6ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.7ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.6ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.5ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.7ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.8ms) 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)  (0.9ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.8ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.7ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.7ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.6ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (3.0ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.8ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.9ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (3.0ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.0ms) 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, "name" text)  (3.1ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.9ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.5ms) 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)   (2.5ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.8ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.8ms) 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)  (2.7ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.6ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.7ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.8ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.9ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.8ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.8ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.6ms) 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)  (3.1ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (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)  (1.9ms) 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)   (2.0ms) 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)  (1.9ms) 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)   (2.0ms) 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)  (2.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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (2.9ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (2.8ms) 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, "fail_detail" text)   (2.9ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (2.9ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.8ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (1.9ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.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, "query" text)  (0.8ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.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, "headers" text, "body" bytea, "request" bytea)  (0.8ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (1.0ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.8ms) 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)   (0.8ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (1.0ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.9ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.0ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (1.2ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.8ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.8ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (2.8ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.6ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (2.8ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (123.8ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (230.4ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (4.8ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.5ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (2.7ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.7ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (3.0ms) 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), "fail_detail" text)  (2.6ms) 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)   (2.6ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.3ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (0.9ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.8ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.7ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.2ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.8ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (1.9ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.1ms) 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, "macro" text)   (2.8ms) 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, "content_type" character varying(255), "name" text, "info" text)  (2.9ms) 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)   (1.9ms) 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)  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (3.3ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.7ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.7ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.8ms) 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)   (1.0ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.8ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.6ms) 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)   (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (2.9ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.9ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.6ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.5ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (21.1ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (1.1ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.5ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.5ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.8ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.9ms) 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)  (0.8ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.8ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.9ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.8ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.7ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (3.0ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.7ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.5ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (2.9ms) 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, "name" text)  (2.8ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.9ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.7ms) 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)   (2.7ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.8ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (3.0ms) 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)  (2.8ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.6ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.7ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.8ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.8ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.8ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.8ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.7ms) 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)  (3.3ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (2.8ms) 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)  (1.9ms) 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)   (1.9ms) 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)  (1.9ms) 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)   (1.9ms) 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)  (2.8ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (2.7ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (2.5ms) 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, "fail_detail" text)   (2.8ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (2.8ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.8ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (2.0ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.6ms) 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, "query" text)  (0.9ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.9ms) 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, "headers" text, "body" bytea, "request" bytea)  (0.8ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.8ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.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)   (0.8ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.8ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.9ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.0ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.8ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.7ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.9ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.0ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.5ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (2.9ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml Connecting to database specified by database.yml  (1.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (124.4ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (264.6ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.0ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.6ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (20.7ms) 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(256), "source_id" integer, "source_type" character varying(255))  (3.0ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.8ms) 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), "fail_detail" text)  (2.8ms) 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)   (2.8ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.5ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (1.0ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.9ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.0ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.9ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.0ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.0ms) 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, "macro" text)   (2.9ms) 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, "content_type" character varying(255), "name" text, "info" text)  (2.8ms) 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)   (1.9ms) 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)  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.7ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.7ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.6ms) 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)  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.7ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.7ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.9ms) 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)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.7ms) 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)   (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.5ms) 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)   (9.1ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (3.2ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (2.0ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.5ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.5ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.6ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.4ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.4ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.9ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.9ms) 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)  (0.9ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.8ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.8ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.8ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.6ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.8ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.7ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.5ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (2.8ms) 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, "name" text)  (3.0ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.8ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (3.0ms) 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)   (2.5ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.8ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.8ms) 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)  (3.1ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.6ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.7ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.8ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.8ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.9ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.8ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.7ms) 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)  (3.1ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (2.8ms) 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)  (1.9ms) 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)   (2.1ms) 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)  (1.9ms) 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)   (1.9ms) 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)  (2.8ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (2.9ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (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, "fail_detail" text)   (2.9ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (2.7ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.7ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (2.1ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.7ms) 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, "query" text)  (0.8ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.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, "headers" text, "body" bytea, "request" bytea)  (0.8ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.8ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.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)   (1.0ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.8ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.8ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (2.9ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (1.1ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.8ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.8ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (2.8ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.7ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (2.6ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (126.2ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (234.6ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.1ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.8ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (2.7ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.8ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (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), "fail_detail" text)  (2.5ms) 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)   (2.7ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.4ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.9ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.9ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.1ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.9ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.9ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (1.9ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (2.8ms) 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, "macro" text)   (2.6ms) 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, "content_type" character varying(255), "name" text, "info" text)  (2.7ms) 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)   (1.8ms) 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)  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.7ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.7ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.7ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.7ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.7ms) 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)  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.6ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.7ms) 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)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.8ms) 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)   (1.0ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.6ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (2.9ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (2.0ms) 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)   (0.7ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.4ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.5ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.6ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.4ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.7ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.6ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.7ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.8ms) 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)  (0.8ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.8ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.8ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.7ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.4ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.7ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.7ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.7ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.5ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (2.6ms) 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, "name" text)  (2.8ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.8ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.5ms) 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)   (2.3ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.8ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.7ms) 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)  (2.7ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.4ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.6ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.8ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (1.1ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.7ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.8ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.5ms) 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)  (2.9ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (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)  (1.9ms) 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)   (1.8ms) 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)  (1.9ms) 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)   (2.0ms) 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)  (2.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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (2.7ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (2.7ms) 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, "fail_detail" text)   (2.8ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (2.6ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.9ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (2.0ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.6ms) 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, "query" text)  (0.8ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.7ms) 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, "headers" text, "body" bytea, "request" bytea)  (0.8ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.7ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.6ms) 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)   (0.8ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.8ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.8ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (2.9ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.8ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.7ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.9ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (2.8ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.4ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.8ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (2.6ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml Connecting to database specified by database.yml  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateTables (0) Migrating to AddWmapTables (1) Migrating to AddWorkspaces (2) Migrating to MoveNotes (3) Migrating to AddEventsTable (4) Migrating to ExpandInfo (5) Migrating to AddTimestamps (6) Migrating to AddLoots (7) Migrating to CreateUsers (8) Migrating to AddLootsCtype (9) Migrating to AddAlertFields (10) Migrating to AddReports (11) Migrating to AddTasks (12) Migrating to AddTasksResult (13) Migrating to AddLootsFields (14) Migrating to RenameUser (15) Migrating to AddHostPurpose (16) Migrating to ExpandInfo2 (17) Migrating to AddWorkspaceUserInfo (18) Migrating to AddWorkspaceDesc (19) Migrating to AddUserPreferences (20) Migrating to StandardizeInfoAndData (21) Migrating to EnlargeEventInfo (22) Migrating to AddReportDownloadedAt (23) Migrating to ConvertServiceInfoToText (24) Migrating to AddUserAdmin (25) Migrating to AddCredsTable (26) Migrating to MigrateCredData (20100819123300) Migrating to AddExploitedTable (20100824151500) Migrating to AddOwnerToWorkspaces (20100908001428) Migrating to AddReportTemplates (20100911122000) Migrating to RequireAdminFlag (20100916151530) Migrating to AddCampaignsAndTemplates (20100916175000) Migrating to AddGenerateExeColumn (20100920012100) Migrating to AddTemplatePrefs (20100926214000) Migrating to AddWebTables (20101001000000) Migrating to AddQuery (20101002000000) Migrating to AddVulnInfo (20101007000000) Migrating to AddClientsToCampaigns (20101008111800) Migrating to AddCampaignAttachments (20101009023300) Migrating to AddImportedCreds (20101104135100) Migrating to FixWebTables (20101203000000) Migrating to ExpandHostComment (20101203000001) Migrating to AddLimitToNetworkToWorkspaces (20101206212033) Migrating to AddModuleUuidToTasks (20110112154300) Migrating to AddHostTags (20110204112800) Migrating to AddSessionTable (20110317144932) Migrating to AddLocalIdToSessionTable (20110414180600) Migrating to AddRoutesTable (20110415175705) Migrating to ConvertBinary (20110422000000) Migrating to AddLastSeenToSessions (20110425095900) Migrating to TrackSuccessfulExploits (20110513143900) Migrating to RenameAndPruneNessusVulns (20110517160800) Migrating to AddTaskIdToReportsTable (20110527000000) Migrating to AddApiKeysTable (20110527000001) Migrating to AddMacrosTable (20110606000001) Migrating to AddSettingsToTasksTable (20110622000000) Migrating to AddListenersTable (20110624000001) Migrating to AddMacroToListenersTable (20110625000001) Migrating to AddNexposeConsolesTable (20110630000001) Migrating to AddNameToNexposeConsolesTable (20110630000002) Migrating to AddProfilesTable (20110717000001) Migrating to ExpandCredPtypeColumn (20110727163801) Migrating to AddInitialIndexes (20110730000001) Migrating to PruneIndexes (20110812000001) Migrating to ExpandNotes (20110922000000) Migrating to AddModRefTable (20110928101300) Migrating to AddDisplayNameToReportsTable (20111011110000) Migrating to InetColumns (20111203000000) Migrating to MoreInetColumns (20111204000000) Migrating to AddScopeToHosts (20111210000000) Migrating to AddVirtualHostToHosts (20120126110000) Migrating to RenameWorkspaceMembers (20120411173220) Migrating to AddCounterCachesToHosts (20120601152442) Migrating to AddVulnDetails (20120625000000) Migrating to AddHostDetails (20120625000001) Migrating to ExpandDetails (20120625000002) Migrating to ExpandDetails2 (20120625000003) Migrating to AddVulnAttempts (20120625000004) Migrating to AddVulnAndHostCounterCaches (20120625000005) Migrating to AddModuleDetails (20120625000006) Migrating to AddExploitAttempts (20120625000007) Migrating to AddFailMessage (20120625000008) Migrating to AddOwnerAndPayloadToWebVulns (20120718202805) Migrating to ChangeRequiredColumnsToNullFalseInWebVulns (20130228214900) Migrating to ChangeForeignKeyInModuleActions (20130412154159) Migrating to ChangeForeignKeyInModuleArchs (20130412171844) Migrating to ChangeForeignKeyInModuleAuthors (20130412173121) Migrating to ChangeForeignKeyInModuleMixins (20130412173640) Migrating to ChangeForeignKeyInModulePlatforms (20130412174254) Migrating to ChangeForeignKeyInModuleRefs (20130412174719) Migrating to ChangeForeignKeyInModuleTargets (20130412175040) Migrating to AddCredsCounterCache (20130423211152) Migrating to ChangeRequiredColumnsToNullFalseInHosts (20130430151353) Migrating to EnforceAddressUniquenessInWorkspaceInHosts (20130430162145) Migrating to RemoveCampaigns (20130510021637) Migrating to ChangeWebVulnsConfidenceToInteger (20130515164311) Migrating to ValidMdmWebVulnParams (20130515172727) Migrating to MakingVulnsRefsARealArModel (20130516204810) Migrating to CreateTaskCreds (20130522001343) Migrating to CreateTaskHosts (20130522032517) Migrating to CreateTaskServices (20130522041110) Migrating to RemoveCampaignIdFromClients (20130525015035) Migrating to DropTableImportedCreds (20130525212420) Migrating to MakingHostTagsARealArModel (20130531144949) Migrating to CreateTaskSessions (20130604145732) Migrating to RemovePnameValidation (20130717150737) Migrating to CreateMetasploitCredentialPublics (20140331173835) Migrating to CreateMetasploitCredentialPrivates (20140407212345) Migrating to CreateMetasploitCredentialRealms (20140410132401) Migrating to UniqueMetasploitCredentialRealms (20140410161611) Migrating to CreateMetasploitCredentialOriginManuals (20140410191213) Migrating to CreateMetasploitCredentialOriginImports (20140410205410) Migrating to CreateMetasploitCredentialOriginSessions (20140411142102) Migrating to CreateMetasploitCredentialOriginServices (20140411205325) Migrating to CreateMetasploitCredentialCores (20140414192550) Migrating to CreateMetasploitCredentialLogins (20140417140933)  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" Connecting to database specified by database.yml  (5.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (138.7ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (378.3ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.3ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.9ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (20.2ms) 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(256), "source_id" integer, "source_type" character varying(255))  (3.0ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.8ms) 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), "fail_detail" text)  (2.7ms) 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)   (2.7ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.5ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.8ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.9ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.1ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.9ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.0ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.1ms) 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, "macro" text)   (2.8ms) 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, "content_type" character varying(255), "name" text, "info" text)  (2.9ms) 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)   (2.0ms) 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)  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.7ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.7ms) 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)  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.7ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (2.0ms) 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)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.9ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.5ms) 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)   (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (2.8ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.7ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.5ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.7ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.8ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.7ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (4.0ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (6.6ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (1.1ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (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)  (0.9ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.9ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.8ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.8ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.5ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.9ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.7ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.6ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (2.8ms) 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, "name" text)  (2.7ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.8ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.7ms) 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)   (2.5ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.9ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.8ms) 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)  (2.8ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.6ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.9ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.8ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.8ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.8ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.8ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (3.5ms) 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)  (3.1ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (3.0ms) 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)  (1.9ms) 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)   (2.0ms) 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)  (1.7ms) 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)   (2.0ms) 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)  (3.0ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (3.4ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (2.7ms) 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, "fail_detail" text)   (2.9ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (3.1ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.9ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (1.8ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.7ms) 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, "query" text)  (0.9ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.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, "headers" text, "body" bytea, "request" bytea)  (0.8ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.9ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.9ms) 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)   (0.8ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.9ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.8ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.7ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.8ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.8ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.0ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.8ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.8ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (2.7ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (3.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (137.8ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (366.8ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (15.7ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.7ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (25.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(256), "source_id" integer, "source_type" character varying(255))  (2.8ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.7ms) 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), "fail_detail" text)  (2.7ms) 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)   (2.6ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.4ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (0.9ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (1.0ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.9ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.1ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (1.1ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (1.8ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (2.9ms) 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, "macro" text)   (2.8ms) 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, "content_type" character varying(255), "name" text, "info" text)  (3.0ms) 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)   (1.9ms) 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)  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.7ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.8ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.8ms) 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)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.7ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.5ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.9ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.3ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.6ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.6ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.5ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.6ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.8ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (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)  (0.9ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.9ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.8ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.8ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.6ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.8ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (1.0ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.6ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.8ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (2.8ms) 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, "name" text)  (3.0ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.8ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (3.1ms) 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)   (2.7ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.8ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.8ms) 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)  (3.7ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.6ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (3.6ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (1.0ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.8ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.7ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.8ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.7ms) 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)  (2.9ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (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)  (1.9ms) 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)   (2.0ms) 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)  (1.9ms) 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)   (2.0ms) 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)  (2.8ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (2.8ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (2.8ms) 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, "fail_detail" text)   (2.9ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (2.9ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.8ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (2.0ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.6ms) 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, "query" text)  (0.8ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.9ms) 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, "headers" text, "body" bytea, "request" bytea)  (0.8ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.8ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.9ms) 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)   (0.9ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (1.1ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.8ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (2.9ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.8ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.8ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.8ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (2.9ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.7ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.8ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (2.6ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (1.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (123.0ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (234.3ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (4.8ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.6ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (3.7ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.5ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.8ms) 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), "fail_detail" text)  (2.6ms) 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)   (2.6ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.2ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.8ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.8ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.0ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.9ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (1.9ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (2.9ms) 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, "macro" text)   (2.6ms) 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, "content_type" character varying(255), "name" text, "info" text)  (2.7ms) 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)   (2.0ms) 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)  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.5ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.6ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.7ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.7ms) 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)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.6ms) 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)   (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.5ms) 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)   (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (2.6ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.8ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.5ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.4ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.4ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.5ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.5ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.8ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.8ms) 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)  (0.8ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.8ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.8ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.8ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.5ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (3.1ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.9ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.7ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (2.8ms) 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, "name" text)  (2.7ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.9ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.6ms) 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)   (2.4ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (1.0ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.8ms) 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)  (4.0ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.4ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.6ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (1.0ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.9ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.8ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.8ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.7ms) 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)  (2.9ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (2.8ms) 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)  (1.9ms) 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)   (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)  (1.8ms) 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)   (2.1ms) 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)  (2.8ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (2.9ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (2.7ms) 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, "fail_detail" text)   (2.8ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (2.7ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.8ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (2.0ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.6ms) 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, "query" text)  (0.8ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.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, "headers" text, "body" bytea, "request" bytea)  (0.9ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.8ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.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)   (0.9ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.7ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.8ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.8ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.9ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.8ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (2.8ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.5ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.8ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (2.7ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (123.1ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (231.0ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (4.8ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.6ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (2.6ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.4ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (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), "fail_detail" text)  (2.6ms) 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)   (2.7ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.3ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.8ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.7ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.0ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.8ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (1.9ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (2.8ms) 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, "macro" text)   (2.6ms) 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, "content_type" character varying(255), "name" text, "info" text)  (2.6ms) 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)   (1.9ms) 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)  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.5ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.7ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.8ms) 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)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.7ms) 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)   (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.5ms) 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)   (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (2.8ms) 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)   (0.7ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.7ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.7ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.5ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.7ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.2ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.4ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.8ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.7ms) 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)  (0.8ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.7ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.7ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.8ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.4ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.8ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.7ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.4ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (1.0ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.9ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.8ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (2.9ms) 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, "name" text)  (2.6ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (4.6ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.8ms) 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)   (2.7ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.9ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.7ms) 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)  (2.7ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.6ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.6ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.9ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.8ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.8ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.8ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.7ms) 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)  (2.8ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (2.8ms) 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)  (1.8ms) 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)   (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)  (1.9ms) 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)   (2.0ms) 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)  (2.8ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (2.6ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (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, "fail_detail" text)   (3.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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (2.7ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.9ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (1.9ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.6ms) 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, "query" text)  (0.7ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.9ms) 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, "headers" text, "body" bytea, "request" bytea)  (0.8ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.8ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.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)   (0.8ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.8ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.8ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (2.9ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.8ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.7ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.7ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (2.8ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.4ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.8ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (2.6ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (133.0ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (239.2ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (6.0ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.9ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (18.9ms) 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(256), "source_id" integer, "source_type" character varying(255))  (3.1ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.9ms) 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), "fail_detail" text)  (2.8ms) 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)   (2.9ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.4ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.1ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.9ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.8ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.1ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.8ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (1.9ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.1ms) 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, "macro" text)   (2.7ms) 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, "content_type" character varying(255), "name" text, "info" text)  (2.9ms) 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)   (2.0ms) 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)  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (1.0ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.7ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.8ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.7ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (2.0ms) 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)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.9ms) 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)   (1.0ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.9ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (2.8ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (2.1ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.6ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.4ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (3.0ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.6ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.7ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.8ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.9ms) 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)  (0.8ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.8ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (1.1ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.9ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.6ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.9ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.7ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.7ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.0ms) 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, "name" text)  (2.9ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.8ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.9ms) 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)   (2.5ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.7ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (20.6ms) 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)  (3.1ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.7ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (3.1ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.8ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.7ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.7ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.8ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.8ms) 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)  (3.2ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (3.0ms) 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)  (2.0ms) 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)   (2.0ms) 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)  (1.9ms) 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)   (2.0ms) 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)  (2.8ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (3.2ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (2.8ms) 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, "fail_detail" text)   (3.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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (3.4ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.8ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (2.0ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.7ms) 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, "query" text)  (0.8ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.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, "headers" text, "body" bytea, "request" bytea)  (0.8ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.7ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (3.0ms) 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)   (6.8ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (1.0ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.8ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (2.9ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.9ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.8ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.8ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (2.9ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.6ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.8ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (2.8ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (130.1ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (227.2ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.5ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.8ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (3.1ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.8ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (3.0ms) 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), "fail_detail" text)  (2.5ms) 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)   (3.0ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (4.8ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.9ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.8ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.2ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.9ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.9ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (1.9ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (2.9ms) 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, "macro" text)   (3.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, "content_type" character varying(255), "name" text, "info" text)  (2.8ms) 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)   (1.9ms) 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)  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.7ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.8ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.1ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.9ms) 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)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.7ms) 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)   (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.7ms) 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)   (1.0ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (2.6ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (2.0ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.9ms) 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)   (1.1ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.8ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.7ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.4ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (1.2ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.5ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.9ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (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)  (0.9ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.8ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.8ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.9ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.6ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.9ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.7ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.6ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.6ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (2.8ms) 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, "name" text)  (3.1ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.9ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.7ms) 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)   (2.6ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.8ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (3.0ms) 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)  (3.1ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.7ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.7ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.9ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.9ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.8ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.8ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.7ms) 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)  (2.9ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (3.1ms) 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)  (1.9ms) 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)   (1.9ms) 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)  (1.9ms) 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)   (2.9ms) 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)  (3.1ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (2.8ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (2.7ms) 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, "fail_detail" text)   (2.8ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (2.8ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.9ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (1.9ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.7ms) 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, "query" text)  (0.8ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (3.5ms) 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, "headers" text, "body" bytea, "request" bytea)  (0.9ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.8ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.9ms) 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)   (0.8ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.8ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.8ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.0ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.8ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (4.9ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (1.0ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.2ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.8ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (2.7ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml Connecting to database specified by database.yml  (6.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (135.2ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (250.1ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.8ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.1ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (20.5ms) 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(256), "source_id" integer, "source_type" character varying(255))  (3.0ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (3.5ms) 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), "fail_detail" text)  (2.9ms) 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)   (2.9ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.8ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.1ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (1.0ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.9ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.2ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.9ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.8ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.2ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.1ms) 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, "macro" text)   (2.8ms) 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, "content_type" character varying(255), "name" text, "info" text)  (3.1ms) 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)   (2.2ms) 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)  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (1.0ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (1.0ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.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)  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (3.0ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.9ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (2.3ms) 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)   (1.0ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (3.0ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.7ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (2.9ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (2.0ms) 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)   (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.6ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.7ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.9ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.8ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.7ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (1.0ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (3.2ms) 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)  (0.9ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.8ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.8ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.8ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.6ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (3.1ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.9ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (3.0ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.0ms) 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, "name" text)  (3.0ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.9ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.9ms) 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)   (2.8ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.9ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (3.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)  (3.2ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.7ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.8ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.9ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.9ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.9ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.9ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (3.0ms) 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)  (3.1ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (3.1ms) 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)  (2.0ms) 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)   (1.9ms) 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)  (2.0ms) 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)   (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)  (3.1ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (2.8ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (2.8ms) 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, "fail_detail" text)   (4.2ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (7.3ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.9ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (2.3ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (3.1ms) 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, "query" text)  (0.9ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (3.5ms) 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, "headers" text, "body" bytea, "request" bytea)  (0.8ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.9ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.9ms) 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)   (0.9ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (1.0ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (1.1ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.0ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.8ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (2.8ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (1.0ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.4ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.8ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.9ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (2.9ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (124.4ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (230.2ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.0ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.8ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (3.0ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.6ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.7ms) 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), "fail_detail" text)  (2.6ms) 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)   (2.7ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.5ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.8ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.8ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.0ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.9ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.8ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.0ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.2ms) 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, "macro" text)   (2.7ms) 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, "content_type" character varying(255), "name" text, "info" text)  (2.8ms) 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)   (1.9ms) 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)  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.7ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.6ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.6ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.8ms) 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)   (0.7ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.7ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.5ms) 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)   (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (2.9ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.8ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.4ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.5ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.7ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.7ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.6ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.7ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.8ms) 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)  (0.9ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.7ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.7ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.8ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.5ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.7ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.7ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.5ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.7ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.5ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (2.7ms) 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, "name" text)  (2.8ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.9ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.7ms) 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)   (2.5ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.8ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.8ms) 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)  (2.8ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.5ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.7ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (1.0ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.8ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.8ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.8ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.6ms) 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)  (3.1ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (6.2ms) 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)  (2.4ms) 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)   (1.9ms) 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)  (1.9ms) 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)   (2.0ms) 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)  (3.0ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (2.8ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (2.7ms) 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, "fail_detail" text)   (3.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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (2.9ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.8ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (2.0ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.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, "query" text)  (0.8ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.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, "headers" text, "body" bytea, "request" bytea)  (0.9ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.8ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.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)   (0.8ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (1.0ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.8ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.8ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.8ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.9ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (2.9ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.6ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (2.6ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (126.0ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (238.2ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.0ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.5ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (2.7ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.5ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.9ms) 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), "fail_detail" text)  (2.7ms) 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)   (2.7ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.4ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.2ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.8ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.8ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.0ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.8ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (1.9ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.1ms) 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, "macro" text)   (2.8ms) 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, "content_type" character varying(255), "name" text, "info" text)  (2.7ms) 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)   (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)  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.7ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.5ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.7ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.9ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.8ms) 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)   (0.9ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.8ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.5ms) 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)   (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.9ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.6ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.5ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.7ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.5ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.6ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.8ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.7ms) 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)  (0.9ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.7ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.7ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.7ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.2ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.7ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.8ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.7ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.7ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (2.7ms) 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, "name" text)  (2.8ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.7ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.7ms) 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)   (3.1ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.9ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.8ms) 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)  (3.1ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.6ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.7ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.8ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.8ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.8ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.8ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.7ms) 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)  (2.8ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (2.6ms) 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)  (1.9ms) 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)   (1.9ms) 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)  (1.7ms) 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)   (2.0ms) 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)  (2.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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (2.8ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (2.7ms) 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, "fail_detail" text)   (2.9ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (5.1ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.8ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (2.0ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.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, "query" text)  (0.8ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.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, "headers" text, "body" bytea, "request" bytea)  (0.8ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.7ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.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)   (0.8ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.8ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.8ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (1.0ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.8ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.8ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (2.9ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.6ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (2.8ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (124.3ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (233.9ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (4.9ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.7ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (3.0ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.6ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.7ms) 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), "fail_detail" text)  (2.7ms) 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)   (2.8ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.3ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.9ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.8ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.1ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.8ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (1.9ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.0ms) 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, "macro" text)   (2.6ms) 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, "content_type" character varying(255), "name" text, "info" text)  (2.8ms) 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)   (1.9ms) 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)  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.6ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.7ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.8ms) 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)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.8ms) 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)   (0.7ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.7ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (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)   (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.9ms) 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)   (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.5ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.6ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.6ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.4ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.5ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.8ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.9ms) 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)  (0.9ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.8ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.8ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.9ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.6ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.6ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.7ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (7.8ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.5ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (2.8ms) 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, "name" text)  (2.7ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (1.0ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (3.2ms) 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)   (2.5ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.9ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (3.0ms) 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)  (3.1ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.6ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (3.0ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.7ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.8ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.7ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.9ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.7ms) 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)  (2.8ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (2.9ms) 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)  (1.8ms) 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)   (1.9ms) 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)  (1.8ms) 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)   (1.8ms) 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)  (3.4ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (2.9ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (2.8ms) 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, "fail_detail" text)   (3.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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (2.9ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.8ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (2.0ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.5ms) 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, "query" text)  (0.8ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.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, "headers" text, "body" bytea, "request" bytea)  (0.8ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.7ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.8ms) 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)   (0.8ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (1.0ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.8ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.8ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.8ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.9ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (2.8ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.5ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (2.6ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (126.9ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (239.5ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (4.8ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.6ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (2.9ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.6ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.8ms) 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), "fail_detail" text)  (5.9ms) 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)   (10.4ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.6ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.4ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (1.0ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.9ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.2ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.9ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.9ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (1.9ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.0ms) 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, "macro" text)   (2.7ms) 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, "content_type" character varying(255), "name" text, "info" text)  (2.9ms) 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)   (2.0ms) 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)  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.5ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.6ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.7ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.9ms) 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)   (0.9ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (4.3ms) 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)   (1.5ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (3.9ms) 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)   (1.4ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (3.4ms) 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)   (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (2.0ms) 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)   (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.6ms) 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)   (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.6ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.9ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.5ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.5ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.8ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.8ms) 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)  (1.3ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (1.3ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (1.2ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (1.4ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (3.9ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (1.1ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (3.0ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.7ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (1.1ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.6ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (2.9ms) 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, "name" text)  (2.8ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.9ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.6ms) 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)   (2.4ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.8ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.7ms) 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)  (3.0ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.6ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (3.5ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (1.2ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (1.2ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (1.2ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (1.1ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (3.6ms) 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)  (3.0ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (2.9ms) 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)  (2.1ms) 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)   (2.2ms) 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)  (1.8ms) 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)   (2.0ms) 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)  (2.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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (2.8ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (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, "fail_detail" text)   (3.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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (2.7ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.8ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (6.4ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (4.1ms) 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, "query" text)  (1.2ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (4.7ms) 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, "headers" text, "body" bytea, "request" bytea)  (1.0ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.8ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.8ms) 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)   (0.8ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.7ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.8ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.9ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.8ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.8ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (2.8ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.8ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.9ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (2.8ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (124.3ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (232.8ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.1ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.1ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (3.0ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.6ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.8ms) 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), "fail_detail" text)  (2.8ms) 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)   (2.7ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.4ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (0.9ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.7ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.7ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.0ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.9ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (1.9ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.1ms) 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, "macro" text)   (2.9ms) 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, "content_type" character varying(255), "name" text, "info" text)  (2.7ms) 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)   (1.8ms) 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)  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.7ms) 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)  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (3.1ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.9ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.9ms) 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)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.9ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.5ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.8ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.6ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.5ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.7ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.5ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.6ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.8ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.8ms) 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)  (1.0ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.8ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.8ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.8ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.4ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.8ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.7ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.5ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.5ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.1ms) 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, "name" text)  (2.8ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.7ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.8ms) 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)   (2.5ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.9ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.7ms) 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)  (2.9ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.6ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.6ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.9ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.8ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.8ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.7ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.7ms) 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)  (3.0ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (2.8ms) 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)  (1.8ms) 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)   (2.0ms) 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)  (1.9ms) 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)   (2.1ms) 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)  (3.2ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (2.7ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (2.7ms) 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, "fail_detail" text)   (2.9ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (2.7ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.8ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (2.0ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.7ms) 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, "query" text)  (0.8ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.9ms) 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, "headers" text, "body" bytea, "request" bytea)  (0.8ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (1.0ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.8ms) 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)   (0.8ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.7ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.9ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.8ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.8ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.9ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (2.9ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.5ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (2.7ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (127.5ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (231.0ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.0ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.7ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (3.0ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.7ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (3.0ms) 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), "fail_detail" text)  (2.7ms) 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)   (2.8ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.6ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.1ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.9ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.9ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.3ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.9ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.9ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (1.9ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (2.8ms) 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, "macro" text)   (2.9ms) 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, "content_type" character varying(255), "name" text, "info" text)  (2.9ms) 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)   (1.9ms) 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)  (1.0ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (1.0ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.6ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.7ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.9ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.8ms) 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)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (3.0ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.7ms) 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)   (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (2.9ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.8ms) 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)   (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.6ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.4ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.7ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.7ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.8ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.5ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.8ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.8ms) 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)  (1.0ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.9ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.8ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.8ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.7ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.9ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.5ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.4ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (2.7ms) 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, "name" text)  (2.7ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.8ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.6ms) 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)   (2.8ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.8ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.7ms) 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)  (2.8ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.6ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.8ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.9ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.8ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.8ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.7ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (6.7ms) 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)  (6.5ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (3.0ms) 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)  (1.9ms) 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)   (2.0ms) 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)  (1.8ms) 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)   (2.0ms) 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)  (3.0ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (2.9ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (2.8ms) 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, "fail_detail" text)   (3.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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (2.7ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.8ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (2.0ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.7ms) 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, "query" text)  (0.8ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.6ms) 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, "headers" text, "body" bytea, "request" bytea)  (1.0ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.9ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.8ms) 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)   (1.0ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (1.0ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.8ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.2ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.8ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.8ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.8ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.1ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.7ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (15.5ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (6.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (125.1ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (233.7ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.0ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.7ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (2.8ms) 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(256), "source_id" integer, "source_type" character varying(255))  (3.3ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.7ms) 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), "fail_detail" text)  (2.6ms) 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)   (2.8ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.3ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.9ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.8ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.1ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (1.1ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (1.9ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.1ms) 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, "macro" text)   (2.7ms) 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, "content_type" character varying(255), "name" text, "info" text)  (2.6ms) 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)   (1.9ms) 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)  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (1.0ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (1.0ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.6ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.5ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.7ms) 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)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.6ms) 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)   (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.7ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (2.9ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.9ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.5ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.5ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.7ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.4ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.6ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.8ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.9ms) 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)  (0.8ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.8ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.8ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.8ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.5ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.7ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.6ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.7ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.6ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (2.8ms) 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, "name" text)  (2.8ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.8ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.5ms) 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)   (2.5ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.8ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.6ms) 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)  (2.9ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.5ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.7ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.9ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.8ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (1.0ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.8ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.7ms) 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)  (3.2ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (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)  (5.6ms) 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)   (1.9ms) 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)  (4.2ms) 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)   (4.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)  (3.1ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (2.7ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (2.7ms) 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, "fail_detail" text)   (3.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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (2.9ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.9ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (1.9ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.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, "query" text)  (0.8ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.7ms) 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, "headers" text, "body" bytea, "request" bytea)  (0.9ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.8ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.8ms) 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)   (0.8ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.8ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.8ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (2.9ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.8ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.8ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.7ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.4ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.6ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (2.8ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (128.1ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (227.4ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (6.1ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.8ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (3.0ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.6ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.8ms) 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), "fail_detail" text)  (2.9ms) 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)   (2.7ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.4ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.7ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.9ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.1ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.7ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.9ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (1.9ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.2ms) 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, "macro" text)   (2.8ms) 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, "content_type" character varying(255), "name" text, "info" text)  (2.7ms) 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)   (2.2ms) 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)  (1.1ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.7ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.5ms) 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)  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.7ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.7ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.8ms) 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)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.7ms) 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)   (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.6ms) 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)   (1.0ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (2.9ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.8ms) 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)   (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.5ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.6ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.6ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.3ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.5ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.8ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.8ms) 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)  (0.8ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.8ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.8ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.8ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.5ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (3.1ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.7ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.6ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (2.8ms) 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, "name" text)  (2.8ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.8ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (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)   (2.5ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.8ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.7ms) 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)  (3.1ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.4ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.7ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.8ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.8ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.8ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.8ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.6ms) 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)  (2.9ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (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)  (1.8ms) 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)   (1.9ms) 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)  (2.2ms) 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)   (2.0ms) 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)  (3.0ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (2.8ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (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, "fail_detail" text)   (2.7ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (2.8ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.9ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (2.1ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.6ms) 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, "query" text)  (0.8ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.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, "headers" text, "body" bytea, "request" bytea)  (1.1ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.7ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.8ms) 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)   (0.8ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.8ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.8ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.8ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (1.0ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.9ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.0ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.5ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (2.8ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (136.7ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (378.8ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (11.0ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.8ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (20.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(256), "source_id" integer, "source_type" character varying(255))  (3.2ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.8ms) 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), "fail_detail" text)  (2.5ms) 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)   (3.1ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.4ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.1ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.8ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.7ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.0ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.9ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (1.0ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.1ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.0ms) 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, "macro" text)   (2.7ms) 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, "content_type" character varying(255), "name" text, "info" text)  (3.0ms) 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)   (2.1ms) 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)  (1.0ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.8ms) 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)  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.9ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.8ms) 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)   (0.9ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.8ms) 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)   (1.0ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.6ms) 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)   (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (2.9ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.9ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.6ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.6ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.9ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.8ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.7ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.8ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.9ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.9ms) 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)  (0.8ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (1.0ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.8ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.8ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.7ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (3.0ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.8ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.8ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.0ms) 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, "name" text)  (2.9ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.8ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (3.1ms) 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)   (2.5ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (1.0ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.8ms) 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)  (2.9ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.5ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.6ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.8ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.7ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.8ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.8ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.9ms) 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)  (3.1ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (3.0ms) 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)  (1.9ms) 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)   (4.3ms) 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)  (2.3ms) 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)   (2.1ms) 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)  (2.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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (2.9ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (2.7ms) 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, "fail_detail" text)   (2.9ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (2.8ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.9ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (2.1ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.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, "query" text)  (0.8ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.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, "headers" text, "body" bytea, "request" bytea)  (0.8ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.9ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (6.2ms) 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)   (0.9ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (1.0ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.8ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.0ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.9ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.9ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.8ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.1ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.8ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.8ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (2.9ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (2.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (126.1ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (285.7ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.2ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (4.0ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (23.2ms) 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(256), "source_id" integer, "source_type" character varying(255))  (3.2ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (3.1ms) 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), "fail_detail" text)  (2.9ms) 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)   (2.9ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (4.7ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.9ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (1.0ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.2ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (1.0ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (1.2ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.2ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.0ms) 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, "macro" text)   (2.8ms) 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, "content_type" character varying(255), "name" text, "info" text)  (3.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)   (2.1ms) 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)  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (1.0ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (1.7ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (1.2ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (28.7ms) 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)  (1.2ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (5.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (6.7ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (3.4ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (6.1ms) 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)   (5.0ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (7.1ms) 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)   (7.5ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (7.5ms) 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)   (1.1ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (3.2ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (3.0ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.9ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.7ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (1.3ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (3.1ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.9ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (1.3ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (3.8ms) 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)  (0.9ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.9ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.8ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.8ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.7ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (1.0ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (3.5ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (1.3ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (3.3ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.8ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (1.0ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.1ms) 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, "name" text)  (3.0ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (1.0ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.8ms) 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)   (2.6ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (1.0ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (3.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)  (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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.8ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.9ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.9ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.9ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.8ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.8ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.9ms) 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)  (3.3ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (3.5ms) 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)  (2.1ms) 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)   (3.1ms) 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)  (2.1ms) 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)   (2.3ms) 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)  (3.1ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (2.9ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (2.7ms) 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, "fail_detail" text)   (3.2ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (2.9ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.8ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (2.1ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (3.1ms) 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, "query" text)  (1.3ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (4.1ms) 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, "headers" text, "body" bytea, "request" bytea)  (1.1ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.9ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.9ms) 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)   (1.0ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.9ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.8ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (8.4ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (1.1ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (1.0ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (1.0ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (4.1ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (3.0ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.8ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (3.3ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (5.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (11.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (5.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (4.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (7.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" Migrating to CreateMetasploitCredentialLogins (20140417140933)  (0.1ms) BEGIN  (0.2ms) ROLLBACK Connecting to database specified by database.yml  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (135.7ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (367.7ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.8ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.6ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (20.5ms) 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(256), "source_id" integer, "source_type" character varying(255))  (3.1ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.8ms) 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), "fail_detail" text)  (2.7ms) 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)   (3.0ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.6ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.9ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.8ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.1ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.8ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.1ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.0ms) 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, "macro" text)   (2.8ms) 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, "content_type" character varying(255), "name" text, "info" text)  (2.8ms) 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)   (1.9ms) 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)  (1.0ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.8ms) 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)  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.8ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.8ms) 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)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (3.4ms) 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)   (1.0ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.8ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (2.9ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (2.0ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.7ms) 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)   (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.8ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.7ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.7ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.6ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.8ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (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)  (0.8ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.8ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.9ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.8ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.5ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (1.0ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.9ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.8ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.7ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.6ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.2ms) 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, "name" text)  (3.0ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (1.0ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.8ms) 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)   (2.6ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.8ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.9ms) 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)  (2.9ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.8ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.7ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.9ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.7ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.9ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.8ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.7ms) 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)  (3.1ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (2.9ms) 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)  (1.8ms) 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)   (14.5ms) 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)  (6.9ms) 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)   (2.9ms) 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)  (3.0ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (3.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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (2.7ms) 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, "fail_detail" text)   (3.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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (3.0ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.8ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (2.1ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.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, "query" text)  (0.8ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (3.2ms) 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, "headers" text, "body" bytea, "request" bytea)  (0.7ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.8ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (3.0ms) 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)   (0.8ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.9ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.9ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.1ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.9ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.8ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.7ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (2.9ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.8ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (2.7ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (127.0ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (353.6ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.2ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.6ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (2.9ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.5ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (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), "fail_detail" text)  (2.6ms) 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)   (2.7ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.5ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.9ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.8ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.2ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.8ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (1.9ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.0ms) 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, "macro" text)   (2.6ms) 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, "content_type" character varying(255), "name" text, "info" text)  (2.7ms) 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)   (1.8ms) 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)  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.8ms) 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)  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.6ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.7ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.8ms) 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)   (0.7ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (3.0ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.7ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (2.8ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.9ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.5ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.4ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.7ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.5ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.5ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.8ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.7ms) 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)  (1.1ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (1.0ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.8ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.8ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.5ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.8ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.5ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.7ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.7ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.5ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (2.8ms) 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, "name" text)  (2.7ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (1.1ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.7ms) 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)   (2.6ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.9ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.6ms) 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)  (2.8ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.5ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (3.2ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.8ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.8ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.7ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.8ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.6ms) 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)  (3.2ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (2.8ms) 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)  (1.8ms) 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)   (1.9ms) 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)  (2.0ms) 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)   (2.0ms) 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)  (3.0ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (2.7ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (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, "fail_detail" text)   (2.8ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (2.7ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.8ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (1.9ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.7ms) 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, "query" text)  (0.8ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.7ms) 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, "headers" text, "body" bytea, "request" bytea)  (0.8ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.8ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (3.1ms) 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)   (0.7ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.7ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.8ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (2.6ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.8ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.8ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.8ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (2.9ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.6ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.6ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (2.7ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (123.1ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (354.2ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.0ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.7ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (3.0ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.6ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.9ms) 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), "fail_detail" text)  (2.6ms) 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)   (3.0ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.2ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.8ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.7ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.1ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.9ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (1.8ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (2.9ms) 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, "macro" text)   (2.6ms) 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, "content_type" character varying(255), "name" text, "info" text)  (2.8ms) 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)   (2.0ms) 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)  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.7ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.7ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.5ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.7ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.8ms) 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)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.7ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.6ms) 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)   (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (2.9ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.7ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (19.1ms) 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)   (6.2ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.7ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.7ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.5ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.7ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.9ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (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)  (0.8ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.8ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.8ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.7ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.6ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.7ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.7ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.8ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.9ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (2.8ms) 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, "name" text)  (2.8ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (1.0ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.6ms) 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)   (2.6ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.9ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.6ms) 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)  (2.8ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.7ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.6ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.9ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.8ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.9ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.8ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.6ms) 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)  (2.9ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (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)  (1.8ms) 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)   (1.8ms) 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)  (1.9ms) 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)   (2.0ms) 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)  (2.8ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (2.8ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (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, "fail_detail" text)   (2.7ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (3.1ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.8ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (1.8ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.6ms) 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, "query" text)  (0.8ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.7ms) 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, "headers" text, "body" bytea, "request" bytea)  (0.8ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.8ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.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)   (0.8ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.8ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.9ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (2.7ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.8ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.8ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.9ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (2.8ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.5ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (2.8ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml Interrupt: : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"hosts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml  (41.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (219.9ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (1033.2ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (25.6ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (4.3ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (4.8ms) 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(256), "source_id" integer, "source_type" character varying(255))  (5.0ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (8.4ms) 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), "fail_detail" text)  (4.7ms) 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)   (18.6ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (29.8ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.6ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (1.9ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (18.2ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (43.8ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (19.5ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (37.9ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (13.9ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (31.4ms) 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, "macro" text)   (47.9ms) 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, "content_type" character varying(255), "name" text, "info" text)  (47.1ms) 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)   (24.2ms) 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)  (15.3ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (13.4ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (16.4ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (12.6ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (11.7ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (26.2ms) 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)  (12.5ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (14.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (20.3ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (19.8ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (18.7ms) 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)   (12.1ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (36.0ms) 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)   (14.4ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (47.3ms) 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)   (20.7ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (34.4ms) 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)   (12.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (13.6ms) 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)   (11.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (20.7ms) 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)   (12.3ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (29.6ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (22.5ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (12.6ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (20.9ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (12.7ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (20.4ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (16.9ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (28.5ms) 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)  (0.9ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (19.9ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (15.3ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (13.1ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (28.0ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (13.3ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (23.3ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (1.2ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (26.3ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (15.0ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (5.9ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (24.6ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (12.5ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (32.6ms) 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, "name" text)  (23.0ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (5.8ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (3.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)   (7.7ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (1.4ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (4.7ms) 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)  (7.6ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (7.7ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (30.6ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (15.5ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (13.8ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (30.3ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (9.4ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (26.0ms) 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)  (6.7ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (50.1ms) 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)  (18.6ms) 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)   (28.4ms) 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)  (3.8ms) 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)   (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)  (4.4ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (3.4ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (11.2ms) 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, "fail_detail" text)   (4.2ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (3.4ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (1.1ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (4.5ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (4.0ms) 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, "query" text)  (1.2ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (4.1ms) 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, "headers" text, "body" bytea, "request" bytea)  (1.2ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.9ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (3.1ms) 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)   (0.8ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.9ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (1.0ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (8.5ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (12.6ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (15.8ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (12.1ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (9.1ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (6.8ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.9ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (3.0ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (135.4ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (341.9ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.1ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.9ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (3.2ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.6ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (3.0ms) 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), "fail_detail" text)  (2.8ms) 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)   (2.8ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.5ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.8ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.9ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.2ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (11.5ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (1.3ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.3ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.3ms) 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, "macro" text)   (2.9ms) 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, "content_type" character varying(255), "name" text, "info" text)  (3.2ms) 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)   (2.1ms) 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)  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (2.9ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (3.0ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.9ms) 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)   (0.9ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (3.0ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.7ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (3.0ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (2.1ms) 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)   (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.9ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.8ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (6.5ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (1.0ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.6ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (1.0ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.7ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.8ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.9ms) 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)  (5.3ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.9ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.8ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.9ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.7ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (3.1ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (1.1ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.8ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.8ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (1.0ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (2.9ms) 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, "name" text)  (3.4ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.9ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.7ms) 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)   (2.8ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.8ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.8ms) 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)  (3.1ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.7ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.8ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (1.0ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.9ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.9ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (2.7ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.9ms) 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)  (3.2ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (3.1ms) 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)  (2.3ms) 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)   (2.0ms) 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)  (2.1ms) 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)   (2.2ms) 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)  (3.0ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (3.0ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (3.2ms) 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, "fail_detail" text)   (4.3ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (3.4ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.9ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (4.1ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.9ms) 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, "query" text)  (1.1ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.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, "headers" text, "body" bytea, "request" bytea)  (0.8ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.8ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.9ms) 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)   (0.8ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.8ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.8ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.0ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.9ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (1.0ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.8ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.1ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.7ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.8ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (2.8ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (127.3ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (360.0ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.3ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.7ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (3.1ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.6ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.9ms) 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), "fail_detail" text)  (2.6ms) 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)   (2.7ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.7ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.1ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (1.1ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.9ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.2ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (2.0ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.2ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.0ms) 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, "macro" text)   (3.1ms) 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, "content_type" character varying(255), "name" text, "info" text)  (3.0ms) 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)   (2.1ms) 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)  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (1.0ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.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)  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (3.0ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.7ms) 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)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.9ms) 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)   (1.1ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.7ms) 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)   (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (2.9ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (2.0ms) 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)   (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.9ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.5ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.7ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (3.4ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.5ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.8ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (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)  (0.9ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.9ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.8ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.8ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.6ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.9ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.7ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.6ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (1.0ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.2ms) 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, "name" text)  (3.0ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.8ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.7ms) 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)   (2.8ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.9ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (3.0ms) 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)  (3.0ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.6ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.9ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.9ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.9ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.8ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.9ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (3.7ms) 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)  (3.0ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (3.2ms) 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)  (2.0ms) 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)   (2.0ms) 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)  (2.1ms) 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)   (2.3ms) 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)  (2.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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (3.0ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (2.8ms) 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, "fail_detail" text)   (3.5ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (2.9ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.9ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (2.0ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.9ms) 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, "query" text)  (1.1ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (3.3ms) 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, "headers" text, "body" bytea, "request" bytea)  (0.9ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.8ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (3.4ms) 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)   (0.9ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.9ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (1.0ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.0ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.8ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (1.2ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (1.0ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (4.0ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.7ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (3.0ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (354.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (134.8ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (382.6ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.1ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.6ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (3.8ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.8ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (3.0ms) 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), "fail_detail" text)  (2.8ms) 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)   (2.9ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.8ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.9ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.9ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.2ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.9ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.2ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.0ms) 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, "macro" text)   (3.1ms) 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, "content_type" character varying(255), "name" text, "info" text)  (3.1ms) 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)   (1.9ms) 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)  (1.2ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.7ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.7ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.8ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.9ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.9ms) 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)   (0.9ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (3.1ms) 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)   (1.1ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.7ms) 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)   (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (4.4ms) 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)   (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.9ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.5ms) 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)   (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.8ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.9ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (1.0ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.5ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.6ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.9ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (3.1ms) 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)  (0.8ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.8ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.9ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.9ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.5ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (3.3ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (1.0ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.7ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.9ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.8ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (1.2ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.2ms) 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, "name" text)  (2.9ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.9ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.6ms) 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)   (3.1ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.9ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.7ms) 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)  (3.0ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.6ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.8ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.9ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.9ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (1.0ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (1.1ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.7ms) 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)  (3.2ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (2.8ms) 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)  (1.9ms) 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)   (2.0ms) 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)  (2.0ms) 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)   (2.1ms) 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)  (3.2ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (2.9ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (3.1ms) 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, "fail_detail" text)   (3.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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (2.7ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.9ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (2.0ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.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, "query" text)  (1.0ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (3.4ms) 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, "headers" text, "body" bytea, "request" bytea)  (1.1ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.8ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (3.0ms) 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)   (1.1ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.9ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.9ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.1ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.9ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.9ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.9ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.2ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.8ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (2.9ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (136.0ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (234.0ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.5ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.0ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (3.0ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.9ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (3.3ms) 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), "fail_detail" text)  (2.7ms) 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)   (3.1ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.4ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (1.0ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (1.0ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.2ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.8ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.0ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.1ms) 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, "macro" text)   (2.7ms) 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, "content_type" character varying(255), "name" text, "info" text)  (3.6ms) 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)   (2.0ms) 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)  (1.0ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.7ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (1.0ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.8ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.7ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.9ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.8ms) 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)   (1.0ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (3.0ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.6ms) 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)   (1.1ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (3.1ms) 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)   (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.9ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.8ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.7ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.8ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.7ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.8ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.8ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (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)  (0.9ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (1.0ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.8ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.9ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.8ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.8ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.7ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.9ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (2.9ms) 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, "name" text)  (2.8ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.8ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.7ms) 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)   (2.6ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (4.2ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (3.3ms) 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)  (3.0ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.6ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.9ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.8ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.8ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.9ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.9ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.9ms) 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)  (3.0ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (3.0ms) 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)  (1.9ms) 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)   (1.9ms) 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)  (2.3ms) 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)   (2.1ms) 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)  (3.0ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (3.2ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (3.0ms) 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, "fail_detail" text)   (3.1ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (2.9ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (1.9ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (3.2ms) 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, "query" text)  (0.8ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.7ms) 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, "headers" text, "body" bytea, "request" bytea)  (0.8ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.9ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.9ms) 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)   (0.9ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.8ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.8ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.9ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.8ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (1.0ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.4ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.6ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.9ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (3.0ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (132.2ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (268.3ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.2ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.8ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (3.2ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.8ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (4.2ms) 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), "fail_detail" text)  (2.7ms) 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)   (2.9ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.6ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (0.9ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.8ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (1.0ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.1ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.9ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.9ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.1ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.0ms) 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, "macro" text)   (2.8ms) 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, "content_type" character varying(255), "name" text, "info" text)  (3.0ms) 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)   (2.0ms) 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)  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.7ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (1.0ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.6ms) 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)  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.7ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.8ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (2.8ms) 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)   (0.9ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.9ms) 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)   (1.1ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.7ms) 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)   (1.1ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (2.8ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.9ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.6ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.8ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.5ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.8ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.6ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.8ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (3.1ms) 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)  (0.8ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (1.0ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.7ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.8ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.7ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (3.1ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.6ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.9ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.5ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (1.0ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.0ms) 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, "name" text)  (3.4ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.9ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.7ms) 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)   (2.8ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (1.0ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.8ms) 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)  (2.8ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.7ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (3.0ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.9ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.8ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.8ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.9ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.9ms) 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)  (3.2ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (3.0ms) 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)  (2.0ms) 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)   (2.0ms) 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)  (1.9ms) 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)   (13.4ms) 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)  (3.3ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (2.8ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (2.7ms) 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, "fail_detail" text)   (2.8ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (2.9ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (2.4ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (3.0ms) 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, "query" text)  (0.9ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.9ms) 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, "headers" text, "body" bytea, "request" bytea)  (0.8ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.9ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.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)   (0.9ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.9ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.9ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (2.9ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (5.0ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (1.2ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.9ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.1ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.8ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.9ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (3.1ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml Connecting to database specified by database.yml  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (130.6ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (234.4ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.6ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.9ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (3.5ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.7ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (3.0ms) 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), "fail_detail" text)  (2.5ms) 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)   (2.9ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (4.5ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.9ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.9ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.1ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.9ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.9ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.2ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.0ms) 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, "macro" text)   (2.6ms) 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, "content_type" character varying(255), "name" text, "info" text)  (2.9ms) 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)   (2.0ms) 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)  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.7ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (1.0ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (1.0ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.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)  (1.1ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.9ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.9ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.9ms) 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)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.9ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.5ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (2.8ms) 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)   (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (2.1ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.6ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.6ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.6ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.7ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.7ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.8ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (3.1ms) 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)  (1.1ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.8ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.9ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.9ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.7ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (3.1ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.6ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.7ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.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, "name" text)  (3.3ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (1.2ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.7ms) 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)   (2.7ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.8ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.8ms) 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)  (2.9ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (5.0ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.7ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (4.1ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.9ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.9ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.9ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.5ms) 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)  (3.1ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (3.4ms) 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)  (2.0ms) 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)   (1.9ms) 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)  (2.0ms) 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)   (2.1ms) 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)  (2.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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (3.2ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (2.9ms) 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, "fail_detail" text)   (6.2ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (7.4ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.9ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (2.1ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (6.6ms) 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, "query" text)  (1.0ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (3.0ms) 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, "headers" text, "body" bytea, "request" bytea)  (1.0ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.8ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (3.1ms) 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)   (0.9ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.9ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.8ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.6ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.8ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.8ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.8ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.2ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.7ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.8ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (2.7ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.4ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (2.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (126.4ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (234.2ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.4ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.6ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (3.1ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.7ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (3.0ms) 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), "fail_detail" text)  (2.9ms) 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)   (2.7ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.5ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.9ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (1.0ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.0ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.9ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (1.9ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.1ms) 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, "macro" text)   (3.0ms) 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, "content_type" character varying(255), "name" text, "info" text)  (3.6ms) 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)   (2.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)  (1.0ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.7ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.9ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.9ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.8ms) 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)   (0.9ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (3.3ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.5ms) 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)   (1.0ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (2.9ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.7ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.7ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.6ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.6ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.6ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (3.0ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.8ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (3.2ms) 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)  (0.9ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.9ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.8ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.8ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.6ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (3.0ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.6ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.8ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.0ms) 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, "name" text)  (2.6ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.8ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.8ms) 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)   (2.6ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.8ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (3.0ms) 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)  (3.0ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.8ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.9ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.9ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.8ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.9ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.8ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.7ms) 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)  (3.0ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (2.8ms) 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)  (2.0ms) 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)   (1.9ms) 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)  (2.0ms) 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)   (2.1ms) 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)  (3.0ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (2.9ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (2.7ms) 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, "fail_detail" text)   (3.1ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (2.9ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.8ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (2.0ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.6ms) 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, "query" text)  (0.8ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (3.0ms) 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, "headers" text, "body" bytea, "request" bytea)  (1.0ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.8ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.8ms) 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)   (0.8ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.9ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.9ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.0ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.9ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.8ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.8ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (2.9ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.5ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (2.9ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (138.4ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (675.0ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (22.5ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.6ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (19.7ms) 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(256), "source_id" integer, "source_type" character varying(255))  (3.3ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.9ms) 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), "fail_detail" text)  (3.6ms) 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)   (3.0ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (6.4ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.2ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (1.3ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (1.1ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.4ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (1.0ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (1.2ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.1ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.5ms) 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, "macro" text)   (3.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, "content_type" character varying(255), "name" text, "info" text)  (3.2ms) 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)   (2.0ms) 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)  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (1.1ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (1.0ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (12.3ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (11.7ms) 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)  (1.3ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (11.5ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (19.8ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (10.8ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (2.1ms) 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)   (0.9ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (5.4ms) 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)   (1.1ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (3.5ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (3.2ms) 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)   (1.2ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (2.7ms) 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)   (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (19.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)   (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.8ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (5.3ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (3.5ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (3.5ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (12.2ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (13.6ms) 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)  (0.9ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.8ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.8ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.8ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.8ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (5.9ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.7ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.9ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.7ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.0ms) 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, "name" text)  (2.9ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.8ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.9ms) 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)   (2.9ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.8ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (3.2ms) 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)  (3.1ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.8ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (19.8ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (1.3ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (1.0ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (1.1ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (1.0ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (3.8ms) 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)  (3.4ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (4.4ms) 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)  (2.6ms) 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)   (2.2ms) 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)  (3.4ms) 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)   (3.0ms) 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)  (4.4ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (3.3ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (5.0ms) 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, "fail_detail" text)   (3.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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (3.0ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (1.2ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (2.5ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (3.4ms) 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, "query" text)  (0.8ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (3.2ms) 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, "headers" text, "body" bytea, "request" bytea)  (1.1ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (1.0ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (3.0ms) 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)   (0.9ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.9ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.9ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.1ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (1.0ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.8ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.8ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.1ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (3.6ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.9ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (3.6ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (2.8ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (130.9ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (355.4ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.2ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.8ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (3.0ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.8ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.7ms) 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), "fail_detail" text)  (3.0ms) 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)   (2.7ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.5ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.2ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (1.0ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.9ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.0ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.9ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.0ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.1ms) 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, "macro" text)   (2.6ms) 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, "content_type" character varying(255), "name" text, "info" text)  (3.0ms) 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)   (2.0ms) 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)  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.7ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.8ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.8ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.9ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.8ms) 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)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.8ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (3.0ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (3.0ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.9ms) 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)   (1.1ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.6ms) 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)   (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.8ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.7ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.7ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (3.1ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.8ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.8ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (3.3ms) 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)  (0.8ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.8ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.7ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (1.0ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.7ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.8ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.9ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.7ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (2.8ms) 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, "name" text)  (3.6ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.8ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (3.0ms) 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)   (2.5ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.9ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.7ms) 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)  (2.8ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.9ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.7ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.8ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.7ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.8ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.9ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.9ms) 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)  (3.1ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (2.8ms) 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)  (2.4ms) 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)   (1.9ms) 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)  (2.1ms) 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)   (2.1ms) 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)  (2.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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (3.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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (2.8ms) 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, "fail_detail" text)   (3.2ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (2.9ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.9ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (2.0ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.5ms) 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, "query" text)  (0.8ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.9ms) 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, "headers" text, "body" bytea, "request" bytea)  (0.8ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.9ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.8ms) 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)   (0.9ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.9ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.8ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.0ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.9ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.8ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.8ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (2.8ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.8ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (2.8ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (144.7ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (506.9ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (6.0ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.3ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (24.9ms) 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(256), "source_id" integer, "source_type" character varying(255))  (3.8ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (4.3ms) 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), "fail_detail" text)  (2.8ms) 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)   (4.1ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.6ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.1ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.9ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.8ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.5ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (1.1ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (1.1ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.0ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.4ms) 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, "macro" text)   (2.9ms) 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, "content_type" character varying(255), "name" text, "info" text)  (3.0ms) 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)   (2.0ms) 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)  (1.4ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (1.1ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (1.1ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (3.2ms) 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)  (1.1ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.6ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.9ms) 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)   (0.9ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (3.8ms) 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)   (1.0ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.9ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (3.2ms) 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)   (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.8ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.5ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (3.4ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (3.0ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (1.0ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.6ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (3.6ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.8ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (3.7ms) 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)  (0.9ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (1.0ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (7.8ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (18.7ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (22.2ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (1.3ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (3.0ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (1.4ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.9ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (1.0ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (1.0ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (3.4ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (1.3ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (4.3ms) 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, "name" text)  (3.1ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.8ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.7ms) 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)   (3.0ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (1.1ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (3.9ms) 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)  (3.7ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (3.0ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.8ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.9ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.8ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.8ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (1.1ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.9ms) 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)  (3.4ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (3.1ms) 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)  (2.0ms) 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)   (2.1ms) 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)  (1.8ms) 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)   (2.3ms) 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)  (3.0ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (3.5ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (2.9ms) 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, "fail_detail" text)   (3.9ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (3.3ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (12.2ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (2.4ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.7ms) 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, "query" text)  (0.8ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (31.3ms) 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, "headers" text, "body" bytea, "request" bytea)  (0.9ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.9ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (3.1ms) 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)   (0.9ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.8ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.9ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.3ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.9ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.9ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.9ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.4ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.7ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (1.2ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (3.1ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (5.6ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (11.4ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (6.1ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (6.1ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (6.4ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (5.0ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml Connecting to database specified by database.yml  (6.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateTables (0) Migrating to AddWmapTables (1) Migrating to AddWorkspaces (2) Migrating to MoveNotes (3) Migrating to AddEventsTable (4) Migrating to ExpandInfo (5) Migrating to AddTimestamps (6) Migrating to AddLoots (7) Migrating to CreateUsers (8) Migrating to AddLootsCtype (9) Migrating to AddAlertFields (10) Migrating to AddReports (11) Migrating to AddTasks (12) Migrating to AddTasksResult (13) Migrating to AddLootsFields (14) Migrating to RenameUser (15) Migrating to AddHostPurpose (16) Migrating to ExpandInfo2 (17) Migrating to AddWorkspaceUserInfo (18) Migrating to AddWorkspaceDesc (19) Migrating to AddUserPreferences (20) Migrating to StandardizeInfoAndData (21) Migrating to EnlargeEventInfo (22) Migrating to AddReportDownloadedAt (23) Migrating to ConvertServiceInfoToText (24) Migrating to AddUserAdmin (25) Migrating to AddCredsTable (26) Migrating to MigrateCredData (20100819123300) Migrating to AddExploitedTable (20100824151500) Migrating to AddOwnerToWorkspaces (20100908001428) Migrating to AddReportTemplates (20100911122000) Migrating to RequireAdminFlag (20100916151530) Migrating to AddCampaignsAndTemplates (20100916175000) Migrating to AddGenerateExeColumn (20100920012100) Migrating to AddTemplatePrefs (20100926214000) Migrating to AddWebTables (20101001000000) Migrating to AddQuery (20101002000000) Migrating to AddVulnInfo (20101007000000) Migrating to AddClientsToCampaigns (20101008111800) Migrating to AddCampaignAttachments (20101009023300) Migrating to AddImportedCreds (20101104135100) Migrating to FixWebTables (20101203000000) Migrating to ExpandHostComment (20101203000001) Migrating to AddLimitToNetworkToWorkspaces (20101206212033) Migrating to AddModuleUuidToTasks (20110112154300) Migrating to AddHostTags (20110204112800) Migrating to AddSessionTable (20110317144932) Migrating to AddLocalIdToSessionTable (20110414180600) Migrating to AddRoutesTable (20110415175705) Migrating to ConvertBinary (20110422000000) Migrating to AddLastSeenToSessions (20110425095900) Migrating to TrackSuccessfulExploits (20110513143900) Migrating to RenameAndPruneNessusVulns (20110517160800) Migrating to AddTaskIdToReportsTable (20110527000000) Migrating to AddApiKeysTable (20110527000001) Migrating to AddMacrosTable (20110606000001) Migrating to AddSettingsToTasksTable (20110622000000) Migrating to AddListenersTable (20110624000001) Migrating to AddMacroToListenersTable (20110625000001) Migrating to AddNexposeConsolesTable (20110630000001) Migrating to AddNameToNexposeConsolesTable (20110630000002) Migrating to AddProfilesTable (20110717000001) Migrating to ExpandCredPtypeColumn (20110727163801) Migrating to AddInitialIndexes (20110730000001) Migrating to PruneIndexes (20110812000001) Migrating to ExpandNotes (20110922000000) Migrating to AddModRefTable (20110928101300) Migrating to AddDisplayNameToReportsTable (20111011110000) Migrating to InetColumns (20111203000000) Migrating to MoreInetColumns (20111204000000) Migrating to AddScopeToHosts (20111210000000) Migrating to AddVirtualHostToHosts (20120126110000) Migrating to RenameWorkspaceMembers (20120411173220) Migrating to AddCounterCachesToHosts (20120601152442) Migrating to AddVulnDetails (20120625000000) Migrating to AddHostDetails (20120625000001) Migrating to ExpandDetails (20120625000002) Migrating to ExpandDetails2 (20120625000003) Migrating to AddVulnAttempts (20120625000004) Migrating to AddVulnAndHostCounterCaches (20120625000005) Migrating to AddModuleDetails (20120625000006) Migrating to AddExploitAttempts (20120625000007) Migrating to AddFailMessage (20120625000008) Migrating to AddOwnerAndPayloadToWebVulns (20120718202805) Migrating to ChangeRequiredColumnsToNullFalseInWebVulns (20130228214900) Migrating to ChangeForeignKeyInModuleActions (20130412154159) Migrating to ChangeForeignKeyInModuleArchs (20130412171844) Migrating to ChangeForeignKeyInModuleAuthors (20130412173121) Migrating to ChangeForeignKeyInModuleMixins (20130412173640) Migrating to ChangeForeignKeyInModulePlatforms (20130412174254) Migrating to ChangeForeignKeyInModuleRefs (20130412174719) Migrating to ChangeForeignKeyInModuleTargets (20130412175040) Migrating to AddCredsCounterCache (20130423211152) Migrating to ChangeRequiredColumnsToNullFalseInHosts (20130430151353) Migrating to EnforceAddressUniquenessInWorkspaceInHosts (20130430162145) Migrating to RemoveCampaigns (20130510021637) Migrating to ChangeWebVulnsConfidenceToInteger (20130515164311) Migrating to ValidMdmWebVulnParams (20130515172727) Migrating to MakingVulnsRefsARealArModel (20130516204810) Migrating to CreateTaskCreds (20130522001343) Migrating to CreateTaskHosts (20130522032517) Migrating to CreateTaskServices (20130522041110) Migrating to RemoveCampaignIdFromClients (20130525015035) Migrating to DropTableImportedCreds (20130525212420) Migrating to MakingHostTagsARealArModel (20130531144949) Migrating to CreateTaskSessions (20130604145732) Migrating to RemovePnameValidation (20130717150737) Migrating to CreateMetasploitCredentialPublics (20140331173835) Migrating to CreateMetasploitCredentialPrivates (20140407212345) Migrating to CreateMetasploitCredentialRealms (20140410132401) Migrating to UniqueMetasploitCredentialRealms (20140410161611) Migrating to CreateMetasploitCredentialOriginManuals (20140410191213) Migrating to CreateMetasploitCredentialOriginImports (20140410205410) Migrating to CreateMetasploitCredentialOriginSessions (20140411142102) Migrating to CreateMetasploitCredentialOriginServices (20140411205325) Migrating to CreateMetasploitCredentialCores (20140414192550) Migrating to CreateMetasploitCredentialLogins (20140417140933) Migrating to AddLoginsCounterCacheToCores (20140520140817)  (0.1ms) BEGIN  (56.8ms) ALTER TABLE "metasploit_credential_cores" ADD COLUMN "logins_count" integer DEFAULT 0 Metasploit::Credential::Core Load (0.4ms) SELECT "metasploit_credential_cores".* FROM "metasploit_credential_cores"  (1.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140520140817')  (3.0ms) COMMIT  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Connecting to database specified by database.yml  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (154.8ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (356.9ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (10.8ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.1ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (19.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(256), "source_id" integer, "source_type" character varying(255))  (3.0ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.8ms) 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), "fail_detail" text)  (3.1ms) 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)   (4.2ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.5ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (0.9ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.8ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.8ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.0ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.7ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (1.0ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (1.9ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (2.9ms) 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, "macro" text)   (3.3ms) 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, "content_type" character varying(255), "name" text, "info" text)  (2.8ms) 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)   (1.9ms) 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, "logins_count" integer DEFAULT 0)  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.7ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.7ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.7ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.7ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.8ms) 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)  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.7ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.7ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.8ms) 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)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.8ms) 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)   (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.6ms) 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)   (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (2.8ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.9ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.4ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.7ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.7ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.5ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (1.1ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.7ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.7ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (3.1ms) 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)  (0.9ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.8ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.8ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.7ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (3.0ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.7ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.9ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.7ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.7ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.6ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.7ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (2.9ms) 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, "name" text)  (2.8ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.8ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.7ms) 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)   (2.6ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.8ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (3.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)  (2.8ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.7ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (3.6ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.8ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.7ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.8ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.7ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.7ms) 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)  (3.1ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (2.8ms) 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)  (1.8ms) 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)   (1.8ms) 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)  (1.9ms) 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)   (1.9ms) 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)  (3.0ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (3.0ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (2.8ms) 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, "fail_detail" text)   (2.8ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (2.8ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.8ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (1.9ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.7ms) 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, "query" text)  (0.8ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.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, "headers" text, "body" bytea, "request" bytea)  (0.8ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.7ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.8ms) 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)   (0.8ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.7ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.7ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.4ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.9ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.7ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.8ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (2.9ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.7ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.6ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (2.7ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140520140817')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (149.4ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (354.4ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (15.0ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.8ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (20.0ms) 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(256), "source_id" integer, "source_type" character varying(255))  (3.4ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.9ms) 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), "fail_detail" text)  (2.7ms) 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)   (2.8ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.4ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (16.6ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (12.0ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.9ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.1ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.9ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.8ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (1.9ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (2.9ms) 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, "macro" text)   (2.9ms) 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, "content_type" character varying(255), "name" text, "info" text)  (2.8ms) 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)   (2.0ms) 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, "logins_count" integer DEFAULT 0)  (12.3ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (5.3ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (11.7ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (10.8ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (19.6ms) 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)  (1.1ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (1.3ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (3.4ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.9ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (2.6ms) 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)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.9ms) 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)   (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.6ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (3.5ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.8ms) 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)   (1.1ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (3.6ms) 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)   (1.2ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (3.3ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.6ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.5ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.6ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.7ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (3.8ms) 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)  (0.8ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.7ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.8ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.7ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.6ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.8ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (3.0ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.7ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.7ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.7ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (2.8ms) 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, "name" text)  (4.1ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.8ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.8ms) 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)   (2.6ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.8ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.9ms) 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)  (3.1ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.7ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.7ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.8ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.8ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.8ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.9ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.7ms) 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)  (3.1ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (2.8ms) 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)  (2.1ms) 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)   (1.8ms) 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)  (2.0ms) 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)   (8.0ms) 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)  (12.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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (3.0ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (2.7ms) 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, "fail_detail" text)   (2.9ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (2.8ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.8ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (1.9ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (3.0ms) 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, "query" text)  (1.0ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (3.2ms) 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, "headers" text, "body" bytea, "request" bytea)  (1.0ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.9ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.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)   (0.8ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.8ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.8ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.4ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.8ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.7ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (1.1ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.1ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (3.5ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (2.8ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140520140817')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (147.7ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (385.4ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.1ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.7ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (19.9ms) 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(256), "source_id" integer, "source_type" character varying(255))  (3.0ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.8ms) 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), "fail_detail" text)  (2.9ms) 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)   (2.7ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.4ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (0.9ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.8ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.8ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.1ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.9ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.8ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (1.9ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.6ms) 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, "macro" text)   (2.9ms) 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, "content_type" character varying(255), "name" text, "info" text)  (2.7ms) 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)   (2.0ms) 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, "logins_count" integer DEFAULT 0)  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.7ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.7ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.7ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.6ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.7ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.6ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.9ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (2.0ms) 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)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (3.5ms) 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)   (1.2ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (3.1ms) 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)   (1.0ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (3.6ms) 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)   (1.1ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (3.0ms) 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)   (1.1ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (3.0ms) 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)   (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.5ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.7ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.4ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.7ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.9ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.8ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.9ms) 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)  (0.9ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.8ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.7ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.8ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (7.8ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.8ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.7ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.7ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (1.0ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.7ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.7ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (2.8ms) 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, "name" text)  (2.7ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.9ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.8ms) 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)   (2.5ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.8ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (6.5ms) 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)  (3.2ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.6ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.7ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.8ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (1.1ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (1.2ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (1.0ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (3.8ms) 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)  (3.5ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (3.4ms) 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)  (2.2ms) 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)   (1.9ms) 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)  (2.2ms) 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)   (2.1ms) 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)  (3.0ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (3.3ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (3.0ms) 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, "fail_detail" text)   (3.1ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (8.1ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (11.3ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (2.8ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (4.0ms) 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, "query" text)  (1.1ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.7ms) 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, "headers" text, "body" bytea, "request" bytea)  (0.9ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (1.0ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.8ms) 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)   (1.1ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (1.0ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.8ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.5ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.8ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.9ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.9ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.3ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (3.0ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.9ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (3.0ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140520140817')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (135.9ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (366.2ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.6ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.8ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (24.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(256), "source_id" integer, "source_type" character varying(255))  (2.8ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.7ms) 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), "fail_detail" text)  (2.8ms) 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)   (2.6ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (4.0ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (0.9ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.8ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.9ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.3ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.7ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.9ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.3ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (2.9ms) 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, "macro" text)   (2.7ms) 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, "content_type" character varying(255), "name" text, "info" text)  (2.7ms) 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)   (1.9ms) 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, "logins_count" integer DEFAULT 0)  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.7ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.7ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.8ms) 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)  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.7ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.7ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (2.1ms) 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)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.8ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.6ms) 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)   (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (2.8ms) 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)   (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (2.1ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.5ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.8ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.7ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.6ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.7ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.5ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (1.0ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (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)  (0.8ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.8ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.7ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.8ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.5ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.8ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.7ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.8ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (2.7ms) 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, "name" text)  (2.9ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.7ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.7ms) 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)   (2.4ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.8ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.8ms) 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)  (2.8ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (3.0ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.6ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (1.0ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.8ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.9ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.9ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (3.0ms) 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)  (3.1ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (2.6ms) 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)  (1.8ms) 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)   (2.1ms) 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)  (1.9ms) 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)   (2.0ms) 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)  (3.2ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (2.8ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (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, "fail_detail" text)   (3.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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (2.8ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.7ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (2.2ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.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, "query" text)  (0.9ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.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, "headers" text, "body" bytea, "request" bytea)  (0.9ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.8ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.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)   (0.8ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.8ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.8ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.2ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (3.7ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.8ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.8ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.1ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.6ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (1.0ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (2.6ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140520140817')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (5.9ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (5.6ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (5.6ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (5.8ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (4.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (131.7ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (367.9ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.1ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.7ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (2.9ms) 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(256), "source_id" integer, "source_type" character varying(255))  (3.0ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (3.0ms) 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), "fail_detail" text)  (3.5ms) 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)   (2.8ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.6ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (0.9ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.9ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.8ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.0ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.8ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.0ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (2.9ms) 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, "macro" text)   (3.1ms) 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, "content_type" character varying(255), "name" text, "info" text)  (3.0ms) 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)   (1.9ms) 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, "logins_count" integer DEFAULT 0)  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.8ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (3.0ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.9ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.9ms) 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)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.9ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.6ms) 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)   (1.1ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (2.8ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (3.0ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.6ms) 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)   (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.7ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.6ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.6ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.7ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (19.2ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.9ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (3.1ms) 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)  (0.9ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.9ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.9ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.8ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.8ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.7ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (3.3ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.7ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.8ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.7ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (2.9ms) 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, "name" text)  (2.7ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.8ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.8ms) 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)   (2.9ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.8ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.9ms) 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)  (2.9ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (5.3ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (3.0ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.8ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.7ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.8ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.8ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.8ms) 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)  (2.9ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (2.9ms) 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)  (1.9ms) 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)   (2.5ms) 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)  (1.9ms) 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)   (2.5ms) 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)  (3.2ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (2.9ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (2.8ms) 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, "fail_detail" text)   (3.5ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (3.8ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.9ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (2.1ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.9ms) 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, "query" text)  (0.9ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (3.5ms) 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, "headers" text, "body" bytea, "request" bytea)  (0.9ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.7ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.8ms) 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)   (0.9ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.8ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.9ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.2ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.9ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.8ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.8ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (2.8ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.5ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.9ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (3.0ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140520140817')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (136.8ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (390.2ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (6.0ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.6ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (19.7ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.8ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.9ms) 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), "fail_detail" text)  (3.5ms) 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)   (3.5ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.9ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.1ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.9ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.8ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.1ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.9ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (1.2ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (1.9ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.1ms) 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, "macro" text)   (2.7ms) 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, "content_type" character varying(255), "name" text, "info" text)  (3.1ms) 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)   (1.9ms) 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, "logins_count" integer DEFAULT 0)  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.7ms) 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)  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.7ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.7ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.9ms) 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)   (0.9ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.8ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (3.5ms) 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)   (1.1ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (2.8ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (2.9ms) 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)   (1.4ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (4.8ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.7ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.7ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (1.0ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.6ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.5ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.9ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.9ms) 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)  (0.7ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.8ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (88.8ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (1.0ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (3.0ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.7ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.8ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (1.0ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.7ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (1.0ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (3.2ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (11.9ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (14.7ms) 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, "name" text)  (3.1ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.9ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (3.0ms) 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)   (2.6ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (1.0ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (3.2ms) 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)  (2.9ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (3.6ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (4.0ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (1.0ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (1.1ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (1.0ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (1.0ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.8ms) 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)  (3.1ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (2.9ms) 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)  (1.9ms) 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)   (1.9ms) 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)  (2.0ms) 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)   (2.1ms) 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)  (3.0ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (2.7ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (2.8ms) 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, "fail_detail" text)   (2.9ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (3.1ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.7ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (1.8ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.6ms) 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, "query" text)  (0.8ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.7ms) 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, "headers" text, "body" bytea, "request" bytea)  (0.9ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.8ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (3.1ms) 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)   (0.8ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.8ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.8ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (2.9ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.8ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.9ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (1.0ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.3ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.6ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (3.0ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140520140817')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300') [36m (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (134.4ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (352.8ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.1ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.6ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (2.8ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.7ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (3.1ms) 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), "fail_detail" text)  (2.6ms) 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)   (2.7ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.3ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.9ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.7ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.0ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.9ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.8ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.0ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.0ms) 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, "macro" text)   (2.7ms) 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, "content_type" character varying(255), "name" text, "info" text)  (3.7ms) 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)   (1.9ms) 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, "logins_count" integer DEFAULT 0)  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (3.3ms) 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)  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.5ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.7ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.8ms) 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)   (0.9ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (3.4ms) 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)   (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.5ms) 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)   (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (2.8ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.8ms) 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)   (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.6ms) 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)   (11.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (13.1ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.8ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.5ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.6ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (1.0ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.8ms) 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)  (0.8ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.7ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.8ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.9ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (3.0ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.8ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.5ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.7ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.5ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (2.9ms) 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, "name" text)  (2.9ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.8ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.8ms) 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)   (2.5ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.8ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.8ms) 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)  (2.8ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.5ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (3.1ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.8ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.8ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (1.2ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.9ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.6ms) 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)  (2.9ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (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)  (1.8ms) 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)   (1.9ms) 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)  (1.9ms) 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)   (2.7ms) 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)  (2.8ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (2.9ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (2.7ms) 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, "fail_detail" text)   (3.9ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (3.0ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.9ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (1.9ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.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, "query" text)  (1.0ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (3.0ms) 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, "headers" text, "body" bytea, "request" bytea)  (0.8ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.7ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (3.6ms) 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)   (0.9ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.8ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.8ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (2.9ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.9ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.7ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.7ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (2.9ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (3.8ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.8ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (3.0ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140520140817')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (2.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateTables (0) Migrating to AddWmapTables (1) Migrating to AddWorkspaces (2) Migrating to MoveNotes (3) Migrating to AddEventsTable (4) Migrating to ExpandInfo (5) Migrating to AddTimestamps (6) Migrating to AddLoots (7) Migrating to CreateUsers (8) Migrating to AddLootsCtype (9) Migrating to AddAlertFields (10) Migrating to AddReports (11) Migrating to AddTasks (12) Migrating to AddTasksResult (13) Migrating to AddLootsFields (14) Migrating to RenameUser (15) Migrating to AddHostPurpose (16) Migrating to ExpandInfo2 (17) Migrating to AddWorkspaceUserInfo (18) Migrating to AddWorkspaceDesc (19) Migrating to AddUserPreferences (20) Migrating to StandardizeInfoAndData (21) Migrating to EnlargeEventInfo (22) Migrating to AddReportDownloadedAt (23) Migrating to ConvertServiceInfoToText (24) Migrating to AddUserAdmin (25) Migrating to AddCredsTable (26) Migrating to MigrateCredData (20100819123300) Migrating to AddExploitedTable (20100824151500) Migrating to AddOwnerToWorkspaces (20100908001428) Migrating to AddReportTemplates (20100911122000) Migrating to RequireAdminFlag (20100916151530) Migrating to AddCampaignsAndTemplates (20100916175000) Migrating to AddGenerateExeColumn (20100920012100) Migrating to AddTemplatePrefs (20100926214000) Migrating to AddWebTables (20101001000000) Migrating to AddQuery (20101002000000) Migrating to AddVulnInfo (20101007000000) Migrating to AddClientsToCampaigns (20101008111800) Migrating to AddCampaignAttachments (20101009023300) Migrating to AddImportedCreds (20101104135100) Migrating to FixWebTables (20101203000000) Migrating to ExpandHostComment (20101203000001) Migrating to AddLimitToNetworkToWorkspaces (20101206212033) Migrating to AddModuleUuidToTasks (20110112154300) Migrating to AddHostTags (20110204112800) Migrating to AddSessionTable (20110317144932) Migrating to AddLocalIdToSessionTable (20110414180600) Migrating to AddRoutesTable (20110415175705) Migrating to ConvertBinary (20110422000000) Migrating to AddLastSeenToSessions (20110425095900) Migrating to TrackSuccessfulExploits (20110513143900) Migrating to RenameAndPruneNessusVulns (20110517160800) Migrating to AddTaskIdToReportsTable (20110527000000) Migrating to AddApiKeysTable (20110527000001) Migrating to AddMacrosTable (20110606000001) Migrating to AddSettingsToTasksTable (20110622000000) Migrating to AddListenersTable (20110624000001) Migrating to AddMacroToListenersTable (20110625000001) Migrating to AddNexposeConsolesTable (20110630000001) Migrating to AddNameToNexposeConsolesTable (20110630000002) Migrating to AddProfilesTable (20110717000001) Migrating to ExpandCredPtypeColumn (20110727163801) Migrating to AddInitialIndexes (20110730000001) Migrating to PruneIndexes (20110812000001) Migrating to ExpandNotes (20110922000000) Migrating to AddModRefTable (20110928101300) Migrating to AddDisplayNameToReportsTable (20111011110000) Migrating to InetColumns (20111203000000) Migrating to MoreInetColumns (20111204000000) Migrating to AddScopeToHosts (20111210000000) Migrating to AddVirtualHostToHosts (20120126110000) Migrating to RenameWorkspaceMembers (20120411173220) Migrating to AddCounterCachesToHosts (20120601152442) Migrating to AddVulnDetails (20120625000000) Migrating to AddHostDetails (20120625000001) Migrating to ExpandDetails (20120625000002) Migrating to ExpandDetails2 (20120625000003) Migrating to AddVulnAttempts (20120625000004) Migrating to AddVulnAndHostCounterCaches (20120625000005) Migrating to AddModuleDetails (20120625000006) Migrating to AddExploitAttempts (20120625000007) Migrating to AddFailMessage (20120625000008) Migrating to AddOwnerAndPayloadToWebVulns (20120718202805) Migrating to ChangeRequiredColumnsToNullFalseInWebVulns (20130228214900) Migrating to ChangeForeignKeyInModuleActions (20130412154159) Migrating to ChangeForeignKeyInModuleArchs (20130412171844) Migrating to ChangeForeignKeyInModuleAuthors (20130412173121) Migrating to ChangeForeignKeyInModuleMixins (20130412173640) Migrating to ChangeForeignKeyInModulePlatforms (20130412174254) Migrating to ChangeForeignKeyInModuleRefs (20130412174719) Migrating to ChangeForeignKeyInModuleTargets (20130412175040) Migrating to AddCredsCounterCache (20130423211152) Migrating to ChangeRequiredColumnsToNullFalseInHosts (20130430151353) Migrating to EnforceAddressUniquenessInWorkspaceInHosts (20130430162145) Migrating to RemoveCampaigns (20130510021637) Migrating to ChangeWebVulnsConfidenceToInteger (20130515164311) Migrating to ValidMdmWebVulnParams (20130515172727) Migrating to MakingVulnsRefsARealArModel (20130516204810) Migrating to CreateTaskCreds (20130522001343) Migrating to CreateTaskHosts (20130522032517) Migrating to CreateTaskServices (20130522041110) Migrating to RemoveCampaignIdFromClients (20130525015035) Migrating to DropTableImportedCreds (20130525212420) Migrating to MakingHostTagsARealArModel (20130531144949) Migrating to CreateTaskSessions (20130604145732) Migrating to RemovePnameValidation (20130717150737) Migrating to CreateMetasploitCredentialPublics (20140331173835) Migrating to CreateMetasploitCredentialPrivates (20140407212345) Migrating to CreateMetasploitCredentialRealms (20140410132401) Migrating to UniqueMetasploitCredentialRealms (20140410161611) Migrating to CreateMetasploitCredentialOriginManuals (20140410191213) Migrating to CreateMetasploitCredentialOriginImports (20140410205410) Migrating to CreateMetasploitCredentialOriginSessions (20140411142102) Migrating to CreateMetasploitCredentialOriginServices (20140411205325) Migrating to CreateMetasploitCredentialCores (20140414192550) Migrating to CreateMetasploitCredentialLogins (20140417140933) Migrating to AddLoginsCounterCacheToCores (20140520140817) Migrating to AddJtrFormatToMetasploitCredentialPrivates (20140603163708)  (0.7ms) BEGIN  (10.6ms) ALTER TABLE "metasploit_credential_privates" ADD COLUMN "jtr_format" character varying(255)  (3.6ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140603163708')  (1.5ms) COMMIT  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" Connecting to database specified by database.yml  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (136.7ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (409.2ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (6.8ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.9ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (19.5ms) 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(256), "source_id" integer, "source_type" character varying(255))  (3.1ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (3.5ms) 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), "fail_detail" text)  (3.1ms) 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)   (3.0ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (4.3ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.1ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.9ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.9ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.2ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (1.0ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (1.2ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.0ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.1ms) 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, "macro" text)   (3.0ms) 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, "content_type" character varying(255), "name" text, "info" text)  (3.1ms) 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)   (2.1ms) 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, "logins_count" integer DEFAULT 0)  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.7ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.7ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.8ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.9ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (2.1ms) 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)   (1.3ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (3.4ms) 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)   (1.0ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.9ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (3.2ms) 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, "jtr_format" character varying(255))   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (2.1ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.8ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.7ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (3.1ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (3.6ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.8ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.9ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.9ms) 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)  (0.9ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.9ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.9ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.7ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.8ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (3.1ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.8ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (1.3ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (3.0ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (1.0ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.2ms) 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, "name" text)  (3.0ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.8ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.9ms) 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)   (2.9ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.9ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.9ms) 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)  (3.2ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (3.3ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (3.0ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.9ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.9ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.9ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (1.0ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.9ms) 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)  (3.0ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (3.2ms) 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)  (2.1ms) 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)   (2.0ms) 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)  (1.9ms) 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)   (2.2ms) 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)  (3.6ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (3.4ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (3.0ms) 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, "fail_detail" text)   (3.3ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (3.3ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.9ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (2.1ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (3.1ms) 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, "query" text)  (0.9ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.9ms) 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, "headers" text, "body" bytea, "request" bytea)  (0.8ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.9ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (3.8ms) 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)   (1.0ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.8ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.9ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.0ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.9ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.9ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.9ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.2ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.8ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.8ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (3.0ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140603163708')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140520140817')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (131.1ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (364.1ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.7ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.8ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (2.9ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.7ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.9ms) 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), "fail_detail" text)  (3.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)   (3.0ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.9ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (1.0ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (1.2ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.4ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.9ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.0ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.2ms) 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, "macro" text)   (2.8ms) 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, "content_type" character varying(255), "name" text, "info" text)  (3.1ms) 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)   (2.6ms) 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, "logins_count" integer DEFAULT 0)  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (1.0ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (3.0ms) 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)  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.8ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (2.1ms) 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)   (0.7ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.9ms) 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)   (1.0ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.8ms) 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)   (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (3.1ms) 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, "jtr_format" character varying(255))   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (2.1ms) 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)   (1.2ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.7ms) 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)   (1.1ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.6ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.8ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.6ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.7ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.7ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.9ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (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)  (0.8ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.8ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.7ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.9ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.8ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (3.1ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.6ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.9ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.6ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (2.8ms) 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, "name" text)  (3.1ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.9ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.6ms) 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)   (2.8ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (1.1ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (3.2ms) 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)  (2.9ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.7ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.7ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (1.1ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.8ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (1.0ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.8ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.8ms) 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)  (3.1ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (2.9ms) 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)  (2.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)   (2.1ms) 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)  (2.1ms) 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)   (2.1ms) 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)  (3.1ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (3.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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (3.1ms) 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, "fail_detail" text)   (3.7ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (2.8ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (8.3ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (2.3ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.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, "query" text)  (0.8ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.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, "headers" text, "body" bytea, "request" bytea)  (0.9ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.8ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.8ms) 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)   (0.8ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.9ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.9ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.1ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (1.0ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (1.0ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.9ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (2.9ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.6ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.9ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (2.7ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140603163708')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140520140817')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (134.3ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (413.8ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.2ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.8ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (3.8ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.8ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (3.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), "fail_detail" text)  (2.8ms) 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)   (2.7ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (4.0ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.8ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.9ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.2ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.9ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.9ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.0ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.0ms) 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, "macro" text)   (2.7ms) 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, "content_type" character varying(255), "name" text, "info" text)  (2.9ms) 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)   (2.0ms) 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, "logins_count" integer DEFAULT 0)  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (1.3ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (3.1ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.5ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.9ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.9ms) 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)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.8ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.8ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (2.8ms) 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, "jtr_format" character varying(255))   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.8ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (3.8ms) 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)   (1.1ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.7ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.7ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.7ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (1.1ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.6ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.8ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.9ms) 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)  (0.9ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.9ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.8ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.8ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (3.3ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.9ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.7ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.5ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (2.9ms) 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, "name" text)  (2.9ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.9ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.7ms) 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)   (2.5ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.9ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (3.4ms) 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)  (3.0ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.7ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.8ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.9ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (1.0ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (1.0ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (1.0ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.6ms) 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)  (3.1ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (2.9ms) 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)  (1.9ms) 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)   (2.8ms) 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)  (2.1ms) 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)   (2.0ms) 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)  (3.4ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (2.8ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (3.0ms) 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, "fail_detail" text)   (3.3ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (2.8ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.8ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (2.1ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.7ms) 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, "query" text)  (0.8ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (4.0ms) 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, "headers" text, "body" bytea, "request" bytea)  (0.9ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.9ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.9ms) 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)   (0.8ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.9ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (1.0ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.1ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (1.0ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.8ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (1.0ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.3ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.8ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (3.0ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140603163708')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140520140817')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (8.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (7.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateTables (0)  (0.1ms) BEGIN  (26.6ms) 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))   (0.9ms) CREATE UNIQUE INDEX "index_hosts_on_address" ON "hosts" ("address")  (2.4ms) 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))   (2.4ms) 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))  (2.5ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created" timestamp, "name" character varying(255), "data" text)   (2.5ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created" timestamp, "name" character varying(512))  (0.5ms) CREATE TABLE "vulns_refs" ("ref_id" integer, "vuln_id" integer)   (2.5ms) CREATE TABLE "notes" ("id" serial primary key, "host_id" integer, "created" timestamp, "ntype" character varying(512), "data" text)  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('0')  (1.9ms) COMMIT Migrating to AddWmapTables (1)  (0.4ms) BEGIN  (14.9ms) 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)  (9.3ms) 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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('1')  (0.6ms) COMMIT Migrating to AddWorkspaces (2)  (0.2ms) BEGIN  (7.7ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.4ms) ALTER TABLE "hosts" ADD COLUMN "workspace_id" integer  (0.4ms) DROP INDEX "index_hosts_on_address"  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('2')  (6.8ms) COMMIT Migrating to MoveNotes (3)  (5.7ms) BEGIN  (0.4ms) ALTER TABLE "notes" DROP "host_id"  (26.4ms) ALTER TABLE "notes" ADD COLUMN "workspace_id" integer DEFAULT 1 NOT NULL  (0.3ms) ALTER TABLE "notes" ADD COLUMN "service_id" integer  (0.2ms) ALTER TABLE "notes" ADD COLUMN "host_id" integer  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('3')  (0.8ms) COMMIT Migrating to AddEventsTable (4)  (0.1ms) BEGIN  (13.7ms) 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))  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('4')  (6.1ms) COMMIT Migrating to ExpandInfo (5)  (4.6ms) BEGIN  (0.4ms) ALTER TABLE "events" DROP "info"  (0.2ms) ALTER TABLE "events" ADD COLUMN "info" character varying(4096)  (0.2ms) ALTER TABLE "notes" DROP "data"  (0.2ms) ALTER TABLE "notes" ADD COLUMN "data" character varying(4096)  (0.2ms) ALTER TABLE "vulns" DROP "data"  (0.2ms) ALTER TABLE "vulns" ADD COLUMN "data" character varying(4096)  (0.2ms) ALTER TABLE "hosts" DROP "info"  (0.2ms) ALTER TABLE "hosts" ADD COLUMN "info" character varying(4096)  (0.3ms) ALTER TABLE "services" DROP "info"  (0.2ms) ALTER TABLE "services" ADD COLUMN "info" character varying(4096)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('5')  (5.9ms) COMMIT Migrating to AddTimestamps (6)  (0.2ms) BEGIN  (6.4ms) ALTER TABLE "clients" RENAME COLUMN "created" TO "created_at"  (0.3ms) ALTER TABLE "hosts" RENAME COLUMN "created" TO "created_at"  (0.2ms) ALTER TABLE "notes" RENAME COLUMN "created" TO "created_at"  (0.2ms) ALTER TABLE "refs" RENAME COLUMN "created" TO "created_at"  (0.2ms) ALTER TABLE "services" RENAME COLUMN "created" TO "created_at"  (0.2ms) ALTER TABLE "vulns" RENAME COLUMN "created" TO "created_at"  (0.2ms) ALTER TABLE "wmap_requests" RENAME COLUMN "created" TO "created_at"  (0.2ms) ALTER TABLE "wmap_targets" ADD COLUMN "created_at" timestamp  (0.2ms) ALTER TABLE "clients" ADD COLUMN "updated_at" timestamp  (0.2ms) ALTER TABLE "events" ADD COLUMN "updated_at" timestamp  (0.3ms) ALTER TABLE "hosts" ADD COLUMN "updated_at" timestamp  (0.2ms) ALTER TABLE "notes" ADD COLUMN "updated_at" timestamp  (0.2ms) ALTER TABLE "refs" ADD COLUMN "updated_at" timestamp  (0.2ms) ALTER TABLE "services" ADD COLUMN "updated_at" timestamp  (0.2ms) ALTER TABLE "vulns" ADD COLUMN "updated_at" timestamp  (0.2ms) ALTER TABLE "wmap_requests" ADD COLUMN "updated_at" timestamp  (0.2ms) ALTER TABLE "wmap_targets" ADD COLUMN "updated_at" timestamp  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('6')  (6.0ms) COMMIT Migrating to AddLoots (7)  (0.2ms) BEGIN  (14.5ms) 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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('7')  (5.9ms) COMMIT Migrating to CreateUsers (8)  (4.5ms) BEGIN  (14.6ms) 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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('8')  (6.4ms) COMMIT Migrating to AddLootsCtype (9)  (4.7ms) BEGIN  (0.3ms) ALTER TABLE "loots" ADD COLUMN "content_type" character varying(255)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('9')  (6.2ms) COMMIT Migrating to AddAlertFields (10)  (0.2ms) BEGIN  (0.4ms) ALTER TABLE "notes" ADD COLUMN "critical" boolean  (0.2ms) ALTER TABLE "notes" ADD COLUMN "seen" boolean  (0.2ms) ALTER TABLE "events" ADD COLUMN "critical" boolean  (0.2ms) ALTER TABLE "events" ADD COLUMN "seen" boolean  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('10')  (6.1ms) COMMIT Migrating to AddReports (11)  (0.2ms) BEGIN  (14.8ms) 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)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('11')  (5.8ms) COMMIT Migrating to AddTasks (12)  (5.1ms) BEGIN  (14.5ms) 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)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('12')  (6.1ms) COMMIT Migrating to AddTasksResult (13)  (4.7ms) BEGIN  (0.3ms) ALTER TABLE "tasks" ADD COLUMN "result" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('13')  (5.9ms) COMMIT Migrating to AddLootsFields (14)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "loots" ADD COLUMN "name" text  (0.2ms) ALTER TABLE "loots" ADD COLUMN "info" text  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('14')  (6.2ms) COMMIT Migrating to RenameUser (15)  (0.3ms) BEGIN  (0.3ms) ALTER TABLE "events" DROP "user"  (0.2ms) ALTER TABLE "events" ADD COLUMN "username" character varying(255)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('15')  (6.2ms) COMMIT Migrating to AddHostPurpose (16)  (0.3ms) BEGIN  (0.3ms) ALTER TABLE "hosts" ADD COLUMN "purpose" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('16')  (6.1ms) COMMIT Migrating to ExpandInfo2 (17)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "events" DROP "info"  (0.2ms) ALTER TABLE "events" ADD COLUMN "info" character varying(65536)  (0.3ms) ALTER TABLE "notes" DROP "data"  (0.2ms) ALTER TABLE "notes" ADD COLUMN "data" character varying(65536)  (0.2ms) ALTER TABLE "vulns" DROP "data"  (0.2ms) ALTER TABLE "vulns" ADD COLUMN "data" character varying(65536)  (0.2ms) ALTER TABLE "hosts" DROP "info"  (0.2ms) ALTER TABLE "hosts" ADD COLUMN "info" character varying(65536)  (0.2ms) ALTER TABLE "services" DROP "info"  (0.2ms) ALTER TABLE "services" ADD COLUMN "info" character varying(65536)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('17')  (6.1ms) COMMIT Migrating to AddWorkspaceUserInfo (18)  (0.2ms) BEGIN  (7.3ms) ALTER TABLE "workspaces" ADD COLUMN "boundary" character varying(4096)  (0.4ms) ALTER TABLE "users" ADD COLUMN "fullname" character varying(255)  (0.2ms) ALTER TABLE "users" ADD COLUMN "email" character varying(255)  (0.2ms) ALTER TABLE "users" ADD COLUMN "phone" character varying(255)  (0.2ms) ALTER TABLE "users" ADD COLUMN "company" character varying(255)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('18')  (6.1ms) COMMIT Migrating to AddWorkspaceDesc (19)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "workspaces" ADD COLUMN "description" character varying(4096)  (0.3ms) ALTER TABLE "hosts" ADD COLUMN "comments" character varying(4096)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('19')  (6.1ms) COMMIT Migrating to AddUserPreferences (20)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "users" ADD COLUMN "prefs" character varying(524288)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20')  (5.9ms) COMMIT Migrating to StandardizeInfoAndData (21)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "vulns" DROP "data"  (0.2ms) ALTER TABLE "vulns" ADD COLUMN "info" character varying(65536)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('21')  (6.2ms) COMMIT Migrating to EnlargeEventInfo (22)  (0.3ms) BEGIN  (0.5ms) ALTER TABLE "events" ALTER COLUMN "info" TYPE text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('22')  (5.5ms) COMMIT Migrating to AddReportDownloadedAt (23)  (0.1ms) BEGIN  (0.4ms) ALTER TABLE "reports" ADD COLUMN "downloaded_at" timestamp  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('23')  (6.2ms) COMMIT Migrating to ConvertServiceInfoToText (24)  (0.1ms) BEGIN  (0.4ms) ALTER TABLE "services" ALTER COLUMN "info" TYPE text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('24')  (5.7ms) COMMIT Migrating to AddUserAdmin (25)  (0.1ms) BEGIN  (14.2ms) ALTER TABLE "users" ADD COLUMN "admin" boolean DEFAULT 't'  (0.7ms) CREATE TABLE "project_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('25')  (6.5ms) COMMIT Migrating to AddCredsTable (26)  (0.2ms) BEGIN  (20.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))  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('26')  (5.3ms) COMMIT Migrating to MigrateCredData (20100819123300)  (0.4ms) BEGIN Mdm::Note Load (0.3ms) SELECT "notes".* FROM "notes" Mdm::Note Load (0.2ms) SELECT "notes".* FROM "notes"   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100819123300')  (6.2ms) COMMIT Migrating to AddExploitedTable (20100824151500)  (0.2ms) BEGIN  (15.1ms) 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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100824151500')  (6.4ms) COMMIT Migrating to AddOwnerToWorkspaces (20100908001428)  (4.9ms) BEGIN  (0.4ms) ALTER TABLE "workspaces" ADD COLUMN "owner_id" integer  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100908001428')  (5.7ms) COMMIT Migrating to AddReportTemplates (20100911122000)  (0.3ms) BEGIN  (15.0ms) 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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100911122000')  (6.1ms) COMMIT Migrating to RequireAdminFlag (20100916151530)  (4.9ms) BEGIN SQL (0.4ms) UPDATE "users" SET "admin" = 't' WHERE "users"."admin" IS NULL  (0.4ms) ALTER TABLE "users" ALTER COLUMN "admin" TYPE boolean  (0.2ms) ALTER TABLE "users" ALTER COLUMN "admin" SET DEFAULT 't'  (0.2ms) UPDATE "users" SET "admin"='t' WHERE "admin" IS NULL  (0.2ms) ALTER TABLE "users" ALTER "admin" SET NOT NULL  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100916151530')  (5.6ms) COMMIT Migrating to AddCampaignsAndTemplates (20100916175000)  (0.3ms) BEGIN  (14.9ms) 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)   (8.3ms) CREATE TABLE "email_templates" ("id" serial primary key, "name" character varying(512), "subject" character varying(1024), "body" text, "parent_id" integer, "campaign_id" integer)  (2.9ms) 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)   (0.5ms) CREATE TABLE "attachments_email_templates" ("attachment_id" integer, "email_template_id" integer)  (2.5ms) 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)   (2.9ms) CREATE TABLE "web_templates" ("id" serial primary key, "name" character varying(512), "title" character varying(512), "body" character varying(524288), "campaign_id" integer)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100916175000')  (0.8ms) COMMIT Migrating to AddGenerateExeColumn (20100920012100)  (0.3ms) BEGIN  (14.7ms) ALTER TABLE "email_templates" ADD COLUMN "generate_exe" boolean DEFAULT 'f' NOT NULL  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100920012100')  (6.5ms) COMMIT Migrating to AddTemplatePrefs (20100926214000)  (0.3ms) BEGIN  (0.5ms) ALTER TABLE "email_templates" DROP "generate_exe"  (0.2ms) ALTER TABLE "email_templates" ADD COLUMN "prefs" text  (0.2ms) ALTER TABLE "web_templates" ADD COLUMN "prefs" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100926214000')  (5.5ms) COMMIT Migrating to AddWebTables (20101001000000)  (0.1ms) BEGIN  (14.9ms) 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)  (8.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)   (3.0ms) 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)  (2.5ms) 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))   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101001000000')  (0.7ms) COMMIT Migrating to AddQuery (20101002000000)  (0.3ms) BEGIN  (0.3ms) ALTER TABLE "web_forms" ADD COLUMN "query" text  (0.2ms) ALTER TABLE "web_vulns" ADD COLUMN "query" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101002000000')  (5.9ms) COMMIT Migrating to AddVulnInfo (20101007000000)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "web_vulns" ADD COLUMN "category" text  (0.2ms) ALTER TABLE "web_vulns" ADD COLUMN "confidence" text  (0.2ms) ALTER TABLE "web_vulns" ADD COLUMN "description" text  (0.2ms) ALTER TABLE "web_vulns" ADD COLUMN "blame" text  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101007000000')  (5.8ms) COMMIT Migrating to AddClientsToCampaigns (20101008111800)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "clients" ADD COLUMN "campaign_id" integer  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101008111800')  (6.2ms) COMMIT Migrating to AddCampaignAttachments (20101009023300)  (0.3ms) BEGIN  (0.3ms) ALTER TABLE "attachments" ADD COLUMN "campaign_id" integer  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101009023300')  (6.2ms) COMMIT Migrating to AddImportedCreds (20101104135100)  (0.2ms) BEGIN  (14.0ms) 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')   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101104135100')  (5.8ms) COMMIT Migrating to FixWebTables (20101203000000)  (6.0ms) BEGIN  (0.4ms) ALTER TABLE "web_pages" ALTER COLUMN "path" TYPE text  (0.2ms) ALTER TABLE "web_pages" ALTER COLUMN "query" TYPE text  (0.2ms) ALTER TABLE "web_pages" ALTER COLUMN "cookie" TYPE text  (0.2ms) ALTER TABLE "web_pages" ALTER COLUMN "auth" TYPE text  (0.2ms) ALTER TABLE "web_pages" ALTER COLUMN "ctype" TYPE text  (0.2ms) ALTER TABLE "web_pages" ALTER COLUMN "location" TYPE text  (0.2ms) ALTER TABLE "web_pages" ALTER COLUMN "path" TYPE text  (0.2ms) ALTER TABLE "web_vulns" ALTER COLUMN "path" TYPE text  (0.2ms) ALTER TABLE "web_vulns" ALTER COLUMN "pname" TYPE text  (0.2ms) ALTER TABLE "web_pages" ADD COLUMN "request" text  (0.2ms) ALTER TABLE "web_vulns" ADD COLUMN "request" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101203000000')  (5.7ms) COMMIT Migrating to ExpandHostComment (20101203000001)  (0.3ms) BEGIN  (0.3ms) ALTER TABLE "hosts" ALTER COLUMN "comments" TYPE text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101203000001')  (6.0ms) COMMIT Migrating to AddLimitToNetworkToWorkspaces (20101206212033)  (0.1ms) BEGIN  (14.4ms) ALTER TABLE "workspaces" ADD COLUMN "limit_to_network" boolean DEFAULT 'f' NOT NULL  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101206212033')  (6.1ms) COMMIT Migrating to AddModuleUuidToTasks (20110112154300)  (0.2ms) BEGIN  (0.4ms) ALTER TABLE "tasks" ADD COLUMN "module_uuid" character varying(8)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110112154300')  (6.3ms) COMMIT Migrating to AddHostTags (20110204112800)  (0.2ms) BEGIN  (14.6ms) 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)   (0.6ms) CREATE TABLE "hosts_tags" ("host_id" integer, "tag_id" integer)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110204112800')  (6.3ms) COMMIT Migrating to AddSessionTable (20110317144932)  (4.9ms) BEGIN  (14.1ms) 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))  (8.6ms) 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)  AddSessionTable::Event Load (0.5ms) SELECT "events".* FROM "events" WHERE "events"."name" = 'session_close' AddSessionTable::Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."name" = 'session_open' AddSessionTable::Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."name" = 'session_command' AddSessionTable::Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."name" = 'session_output' AddSessionTable::Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."name" = 'session_upload' AddSessionTable::Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."name" = 'session_download'  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110317144932')  (0.5ms) COMMIT Migrating to AddLocalIdToSessionTable (20110414180600)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "sessions" ADD COLUMN "local_id" integer  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110414180600')  (6.1ms) COMMIT Migrating to AddRoutesTable (20110415175705)  (0.2ms) BEGIN  (14.2ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))   (0.3ms) ALTER TABLE "sessions" DROP "routes"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110415175705')  (6.2ms) COMMIT Migrating to ConvertBinary (20110422000000)  (5.0ms) BEGIN  (0.3ms) ALTER TABLE "web_pages" RENAME COLUMN "body" TO "body_text"  (0.2ms) ALTER TABLE "web_pages" RENAME COLUMN "request" TO "request_text"  (0.2ms) ALTER TABLE "web_vulns" RENAME COLUMN "request" TO "request_text"  (0.1ms) ALTER TABLE "web_vulns" RENAME COLUMN "proof" TO "proof_text"  (0.2ms) ALTER TABLE "web_pages" ADD COLUMN "body" bytea  (0.2ms) ALTER TABLE "web_pages" ADD COLUMN "request" bytea  (0.2ms) ALTER TABLE "web_vulns" ADD COLUMN "request" bytea  (0.2ms) ALTER TABLE "web_vulns" ADD COLUMN "proof" bytea ConvertBinary::WebPage Load (0.3ms) SELECT "web_pages".* FROM "web_pages" ConvertBinary::WebPage Load (0.2ms) SELECT "web_pages".* FROM "web_pages"  ConvertBinary::WebVuln Load (0.3ms) SELECT "web_vulns".* FROM "web_vulns" ConvertBinary::WebVuln Load (0.2ms) SELECT "web_vulns".* FROM "web_vulns"   (0.2ms) ALTER TABLE "web_pages" DROP "body_text"  (0.2ms) ALTER TABLE "web_pages" DROP "request_text"  (0.2ms) ALTER TABLE "web_vulns" DROP "request_text"  (0.2ms) ALTER TABLE "web_vulns" DROP "proof_text"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110422000000')  (6.3ms) COMMIT Migrating to AddLastSeenToSessions (20110425095900)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "sessions" ADD COLUMN "last_seen" timestamp  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110425095900')  (5.9ms) COMMIT Migrating to TrackSuccessfulExploits (20110513143900)  (0.2ms) BEGIN  (0.4ms) ALTER TABLE "vulns" ADD COLUMN "exploited_at" timestamp TrackSuccessfulExploits::ExploitedHost Load (0.3ms) SELECT "exploited_hosts".* FROM "exploited_hosts"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110513143900')  (5.8ms) COMMIT Migrating to RenameAndPruneNessusVulns (20110517160800)  (0.2ms) BEGIN RenameAndPruneNessusVulns::Vuln Load (0.3ms) SELECT "vulns".* FROM "vulns"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110517160800')  (5.8ms) COMMIT Migrating to AddTaskIdToReportsTable (20110527000000)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "reports" ADD COLUMN "task_id" integer  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110527000000')  (6.2ms) COMMIT Migrating to AddApiKeysTable (20110527000001)  (0.3ms) BEGIN  (22.2ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110527000001')  (0.7ms) COMMIT Migrating to AddMacrosTable (20110606000001)  (0.2ms) BEGIN  (14.4ms) 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)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110606000001')  (6.5ms) COMMIT Migrating to AddSettingsToTasksTable (20110622000000)  (4.7ms) BEGIN  (0.3ms) ALTER TABLE "tasks" ADD COLUMN "settings" bytea  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110622000000')  (5.7ms) COMMIT Migrating to AddListenersTable (20110624000001)  (0.2ms) BEGIN  (21.1ms) 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)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110624000001')  (3.5ms) COMMIT Migrating to AddMacroToListenersTable (20110625000001)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "listeners" ADD COLUMN "macro" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110625000001')  (9.4ms) COMMIT Migrating to AddNexposeConsolesTable (20110630000001)  (0.1ms) BEGIN  (15.6ms) 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)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110630000001')  (6.3ms) COMMIT Migrating to AddNameToNexposeConsolesTable (20110630000002)  (5.0ms) BEGIN  (0.3ms) ALTER TABLE "nexpose_consoles" ADD COLUMN "name" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110630000002')  (5.7ms) COMMIT Migrating to AddProfilesTable (20110717000001)  (0.2ms) BEGIN  (14.8ms) 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)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110717000001')  (9.0ms) COMMIT Migrating to ExpandCredPtypeColumn (20110727163801)  (0.3ms) BEGIN  (0.4ms) ALTER TABLE "creds" ALTER COLUMN "ptype" TYPE character varying(256)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110727163801')  (5.8ms) COMMIT Migrating to AddInitialIndexes (20110730000001)  (0.2ms) BEGIN  (6.7ms) CREATE INDEX "index_hosts_on_address" ON "hosts" ("address")  (6.7ms) CREATE INDEX "index_hosts_on_address6" ON "hosts" ("address6")  (6.1ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.7ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (0.7ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.6ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.6ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.6ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (0.7ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.8ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (0.8ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (1.2ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (0.6ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (0.7ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.7ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.8ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.6ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (0.6ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (0.7ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (0.6ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.7ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110730000001')  (0.5ms) COMMIT Migrating to PruneIndexes (20110812000001)  (0.2ms) BEGIN  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110812000001')  (6.1ms) COMMIT Migrating to ExpandNotes (20110922000000)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "notes" ALTER COLUMN "data" TYPE text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110922000000')  (9.4ms) COMMIT Migrating to AddModRefTable (20110928101300)  (15.9ms) BEGIN  (28.5ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110928101300')  (0.4ms) COMMIT Migrating to AddDisplayNameToReportsTable (20111011110000)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "reports" ADD COLUMN "name" character varying(63) AddDisplayNameToReportsTable::Report Load (0.3ms) SELECT "reports".* FROM "reports"  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20111011110000')  (5.7ms) COMMIT Migrating to InetColumns (20111203000000)  (0.2ms) BEGIN  (30.8ms) ALTER TABLE "hosts" ALTER COLUMN "address" TYPE INET using address::INET  (0.3ms) ALTER TABLE "hosts" DROP "address6"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20111203000000')  (1.2ms) COMMIT Migrating to MoreInetColumns (20111204000000)  (0.1ms) BEGIN  (28.7ms) ALTER TABLE "wmap_requests" ALTER COLUMN "address" TYPE INET using address::INET  (0.3ms) ALTER TABLE "wmap_requests" DROP "address6"  (2.5ms) ALTER TABLE "wmap_targets" ALTER COLUMN "address" TYPE INET using address::INET  (0.2ms) ALTER TABLE "wmap_targets" DROP "address6"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20111204000000')  (1.3ms) COMMIT Migrating to AddScopeToHosts (20111210000000)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "hosts" ADD COLUMN "scope" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20111210000000')  (6.1ms) COMMIT Migrating to AddVirtualHostToHosts (20120126110000)  (0.2ms) BEGIN  (0.4ms) ALTER TABLE "hosts" ADD COLUMN "virtual_host" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120126110000')  (5.8ms) COMMIT Migrating to RenameWorkspaceMembers (20120411173220)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "project_members" RENAME TO "workspace_members"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120411173220')  (5.0ms) COMMIT Migrating to AddCounterCachesToHosts (20120601152442)  (0.2ms) BEGIN  (31.8ms) ALTER TABLE "hosts" ADD COLUMN "note_count" integer DEFAULT 0  (5.1ms) ALTER TABLE "hosts" ADD COLUMN "vuln_count" integer DEFAULT 0  (4.8ms) ALTER TABLE "hosts" ADD COLUMN "service_count" integer DEFAULT 0 Mdm::Host Load (0.5ms) SELECT "hosts".* FROM "hosts"   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120601152442')  (2.3ms) COMMIT Migrating to AddVulnDetails (20120625000000)  (0.3ms) BEGIN  (15.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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000000')  (5.8ms) COMMIT Migrating to AddHostDetails (20120625000001)  (4.4ms) BEGIN  (7.5ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000001')  (5.9ms) COMMIT Migrating to ExpandDetails (20120625000002)  (5.9ms) BEGIN  (0.4ms) ALTER TABLE "vuln_details" ADD COLUMN "nx_vuln_status" text  (0.2ms) ALTER TABLE "vuln_details" ADD COLUMN "nx_proof_key" text  (0.2ms) ALTER TABLE "vuln_details" ADD COLUMN "src" character varying(255)  (0.2ms) ALTER TABLE "host_details" ADD COLUMN "src" character varying(255)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000002')  (6.2ms) COMMIT Migrating to ExpandDetails2 (20120625000003)  (0.2ms) BEGIN  (7.3ms) ALTER TABLE "host_details" ADD COLUMN "nx_site_name" character varying(255)  (0.4ms) ALTER TABLE "host_details" ADD COLUMN "nx_site_importance" character varying(255)  (0.4ms) ALTER TABLE "host_details" ADD COLUMN "nx_scan_template" character varying(255)  (0.4ms) ALTER TABLE "host_details" ADD COLUMN "nx_risk_score" float  (0.2ms) ALTER TABLE "vuln_details" ADD COLUMN "nx_scan_id" integer  (0.2ms) ALTER TABLE "vuln_details" ADD COLUMN "nx_vulnerable_since" timestamp  (0.3ms) ALTER TABLE "vuln_details" ADD COLUMN "nx_pci_compliance_status" character varying(255)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000003')  (5.8ms) COMMIT Migrating to AddVulnAttempts (20120625000004)  (0.2ms) BEGIN  (14.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)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000004')  (6.3ms) COMMIT Migrating to AddVulnAndHostCounterCaches (20120625000005)  (5.0ms) BEGIN  (28.3ms) ALTER TABLE "hosts" ADD COLUMN "host_detail_count" integer DEFAULT 0  (3.1ms) ALTER TABLE "vulns" ADD COLUMN "vuln_detail_count" integer DEFAULT 0  (3.0ms) ALTER TABLE "vulns" ADD COLUMN "vuln_attempt_count" integer DEFAULT 0  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000005')  (1.7ms) COMMIT Migrating to AddModuleDetails (20120625000006)  (0.2ms) BEGIN  (14.7ms) 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)  (6.3ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (0.7ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.7ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.9ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (2.5ms) CREATE TABLE "module_authors" ("id" serial primary key, "module_detail_id" integer, "name" text, "email" text)   (0.7ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("module_detail_id")  (2.3ms) CREATE TABLE "module_mixins" ("id" serial primary key, "module_detail_id" integer, "name" text)   (0.6ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("module_detail_id")  (2.2ms) CREATE TABLE "module_targets" ("id" serial primary key, "module_detail_id" integer, "index" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("module_detail_id")  (2.6ms) CREATE TABLE "module_actions" ("id" serial primary key, "module_detail_id" integer, "name" text)   (0.7ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("module_detail_id")  (2.4ms) CREATE TABLE "module_refs" ("id" serial primary key, "module_detail_id" integer, "name" text)   (0.6ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("module_detail_id")  (0.7ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.4ms) CREATE TABLE "module_archs" ("id" serial primary key, "module_detail_id" integer, "name" text)  (0.7ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("module_detail_id")  (2.5ms) CREATE TABLE "module_platforms" ("id" serial primary key, "module_detail_id" integer, "name" text)  (0.7ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("module_detail_id")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000006')  (1.0ms) COMMIT Migrating to AddExploitAttempts (20120625000007)  (0.6ms) BEGIN  (14.9ms) 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))   (12.2ms) ALTER TABLE "hosts" ADD COLUMN "exploit_attempt_count" integer DEFAULT 0  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000007')  (1.1ms) COMMIT Migrating to AddFailMessage (20120625000008)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "vuln_attempts" ADD COLUMN "fail_detail" text  (0.2ms) ALTER TABLE "exploit_attempts" ADD COLUMN "fail_detail" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000008')  (5.5ms) COMMIT Migrating to AddOwnerAndPayloadToWebVulns (20120718202805)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "web_vulns" ADD COLUMN "owner" character varying(255)  (0.2ms) ALTER TABLE "web_vulns" ADD COLUMN "payload" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120718202805')  (5.9ms) COMMIT Migrating to ChangeRequiredColumnsToNullFalseInWebVulns (20130228214900)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "web_vulns" ALTER "category" SET NOT NULL  (0.2ms) ALTER TABLE "web_vulns" ALTER "confidence" SET NOT NULL  (0.2ms) ALTER TABLE "web_vulns" ALTER "method" SET NOT NULL  (0.2ms) ALTER TABLE "web_vulns" ALTER "name" SET NOT NULL  (0.2ms) ALTER TABLE "web_vulns" ALTER "params" SET NOT NULL  (0.2ms) ALTER TABLE "web_vulns" ALTER "path" SET NOT NULL  (0.2ms) ALTER TABLE "web_vulns" ALTER "pname" SET NOT NULL  (0.2ms) ALTER TABLE "web_vulns" ALTER "proof" SET NOT NULL  (0.2ms) ALTER TABLE "web_vulns" ALTER "risk" SET NOT NULL  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130228214900')  (5.6ms) COMMIT Migrating to ChangeForeignKeyInModuleActions (20130412154159)  (0.2ms) BEGIN  (0.2ms) ALTER TABLE "module_actions" RENAME COLUMN "module_detail_id" TO "detail_id"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130412154159')  (6.2ms) COMMIT Migrating to ChangeForeignKeyInModuleArchs (20130412171844)  (0.2ms) BEGIN  (0.2ms) ALTER TABLE "module_archs" RENAME COLUMN "module_detail_id" TO "detail_id"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130412171844')  (6.0ms) COMMIT Migrating to ChangeForeignKeyInModuleAuthors (20130412173121)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "module_authors" RENAME COLUMN "module_detail_id" TO "detail_id"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130412173121')  (5.7ms) COMMIT Migrating to ChangeForeignKeyInModuleMixins (20130412173640)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "module_mixins" RENAME COLUMN "module_detail_id" TO "detail_id"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130412173640')  (5.7ms) COMMIT Migrating to ChangeForeignKeyInModulePlatforms (20130412174254)  (0.2ms) BEGIN  (0.2ms) ALTER TABLE "module_platforms" RENAME COLUMN "module_detail_id" TO "detail_id"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130412174254')  (5.6ms) COMMIT Migrating to ChangeForeignKeyInModuleRefs (20130412174719)  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "module_refs" RENAME COLUMN "module_detail_id" TO "detail_id"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130412174719')  (5.5ms) COMMIT Migrating to ChangeForeignKeyInModuleTargets (20130412175040)  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "module_targets" RENAME COLUMN "module_detail_id" TO "detail_id"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130412175040')  (5.8ms) COMMIT Migrating to AddCredsCounterCache (20130423211152)  (0.1ms) BEGIN  (29.2ms) ALTER TABLE "hosts" ADD COLUMN "cred_count" integer DEFAULT 0 Mdm::Cred Load (0.3ms) SELECT "creds".* FROM "creds"   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130423211152')  (1.0ms) COMMIT Migrating to ChangeRequiredColumnsToNullFalseInHosts (20130430151353)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "hosts" ALTER "address" SET NOT NULL  (0.2ms) ALTER TABLE "hosts" ALTER "workspace_id" SET NOT NULL  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130430151353')  (5.8ms) COMMIT Migrating to EnforceAddressUniquenessInWorkspaceInHosts (20130430162145)  (0.2ms) BEGIN  (0.9ms) SELECT workspace_id, address, count_addr FROM ( SELECT workspace_id, address, COUNT(address) AS count_addr FROM hosts GROUP BY address, workspace_id ) X WHERE count_addr > 1  (0.2ms) DROP INDEX "index_hosts_on_address"  (1.1ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130430162145')  (3.1ms) COMMIT Migrating to RemoveCampaigns (20130510021637)  (0.1ms) BEGIN  (0.8ms) DROP TABLE "attachments"  (0.2ms) DROP TABLE "attachments_email_templates"  (0.7ms) DROP TABLE "email_addresses"  (0.6ms) DROP TABLE "email_templates"  (0.7ms) DROP TABLE "web_templates"  (0.7ms) DROP TABLE "campaigns"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130510021637')  (7.6ms) COMMIT Migrating to ChangeWebVulnsConfidenceToInteger (20130515164311)  (0.2ms) BEGIN  (26.4ms) ALTER TABLE web_vulns ALTER COLUMN confidence TYPE integer USING confidence::integer  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130515164311')  (0.8ms) COMMIT Migrating to ValidMdmWebVulnParams (20130515172727)  (0.1ms) BEGIN Mdm::WebVuln Load (0.5ms) SELECT "web_vulns".* FROM "web_vulns" ORDER BY "web_vulns"."id" ASC LIMIT 1000  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130515172727')  (6.3ms) COMMIT Migrating to MakingVulnsRefsARealArModel (20130516204810)  (0.2ms) BEGIN  (8.3ms) ALTER TABLE "vulns_refs" ADD COLUMN "id" serial primary key  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130516204810')  (6.3ms) COMMIT Migrating to CreateTaskCreds (20130522001343)  (5.8ms) BEGIN  (7.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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130522001343')  (6.3ms) COMMIT Migrating to CreateTaskHosts (20130522032517)  (5.8ms) BEGIN  (7.9ms) 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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130522032517')  (6.1ms) COMMIT Migrating to CreateTaskServices (20130522041110)  (5.9ms) BEGIN  (7.3ms) 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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130522041110')  (6.1ms) COMMIT Migrating to RemoveCampaignIdFromClients (20130525015035)  (5.8ms) BEGIN  (0.4ms) ALTER TABLE "clients" DROP "campaign_id"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130525015035')  (11.3ms) COMMIT Migrating to DropTableImportedCreds (20130525212420)  (0.2ms) BEGIN  (0.9ms) DROP TABLE "imported_creds"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130525212420')  (6.4ms) COMMIT Migrating to MakingHostTagsARealArModel (20130531144949)  (0.2ms) BEGIN  (8.6ms) ALTER TABLE "hosts_tags" ADD COLUMN "id" serial primary key  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130531144949')  (12.7ms) COMMIT Migrating to CreateTaskSessions (20130604145732)  (5.0ms) BEGIN  (7.7ms) 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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130604145732')  (11.7ms) COMMIT Migrating to RemovePnameValidation (20130717150737)  (5.1ms) BEGIN  (0.3ms) ALTER TABLE "web_vulns" ALTER COLUMN "pname" TYPE text  (0.2ms) ALTER TABLE "web_vulns" ALTER "pname" DROP NOT NULL  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130717150737')  (6.1ms) COMMIT Migrating to CreateMetasploitCredentialPublics (20140331173835)  (0.2ms) BEGIN  (8.1ms) 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)  (6.5ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140331173835')  (6.3ms) COMMIT Migrating to CreateMetasploitCredentialPrivates (20140407212345)  (0.3ms) BEGIN  (14.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)   (6.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140407212345')  (0.5ms) COMMIT Migrating to CreateMetasploitCredentialRealms (20140410132401)  (0.2ms) BEGIN  (14.7ms) 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)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140410132401')  (10.9ms) COMMIT Migrating to UniqueMetasploitCredentialRealms (20140410161611)  (0.3ms) BEGIN  (6.7ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140410161611')  (5.8ms) COMMIT Migrating to CreateMetasploitCredentialOriginManuals (20140410191213)  (0.1ms) BEGIN  (7.6ms) 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)  (6.3ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140410191213')  (6.3ms) COMMIT Migrating to CreateMetasploitCredentialOriginImports (20140410205410)  (5.0ms) BEGIN  (14.5ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (6.7ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140410205410')  (0.6ms) COMMIT Migrating to CreateMetasploitCredentialOriginSessions (20140411142102)  (0.2ms) BEGIN  (14.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)  (6.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140411142102')  (5.0ms) COMMIT Migrating to CreateMetasploitCredentialOriginServices (20140411205325)  (0.2ms) BEGIN  (14.3ms) 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)   (6.1ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140411205325')  (5.1ms) COMMIT Migrating to CreateMetasploitCredentialCores (20140414192550)  (0.3ms) BEGIN  (7.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)  (6.3ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (6.5ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140414192550')  (0.4ms) COMMIT Migrating to CreateMetasploitCredentialLogins (20140417140933)  (0.2ms) BEGIN  (14.0ms) 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)   (6.7ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (5.6ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140417140933')  (0.5ms) COMMIT Migrating to AddLoginsCounterCacheToCores (20140520140817)  (0.2ms) BEGIN  (26.5ms) ALTER TABLE "metasploit_credential_cores" ADD COLUMN "logins_count" integer DEFAULT 0 Metasploit::Credential::Core Load (0.4ms) SELECT "metasploit_credential_cores".* FROM "metasploit_credential_cores"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140520140817')  (0.8ms) COMMIT Migrating to AddJtrFormatToMetasploitCredentialPrivates (20140603163708)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "metasploit_credential_privates" ADD COLUMN "jtr_format" character varying(255)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140603163708')  (6.0ms) COMMIT  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Connecting to database specified by database.yml  (6.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (5.9ms) DROP DATABASE IF EXISTS "metasploit_credential_test" Interrupt: : DROP DATABASE IF EXISTS "metasploit_credential_test" Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (2.0ms) DROP DATABASE IF EXISTS "metasploit_credential_test" Could not log "sql.active_record" event. Interrupt:  (50.1ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8' Interrupt: : CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8' Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (122.0ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (367.6ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (10.5ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (4.8ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (3.0ms) 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(256), "source_id" integer, "source_type" character varying(255))  (3.0ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (3.1ms) 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), "fail_detail" text)  (2.7ms) 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)   (3.1ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.7ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.1ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.9ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (1.0ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.2ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (1.0ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (1.0ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.3ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.4ms) 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, "macro" text)   (3.0ms) 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, "content_type" character varying(255), "name" text, "info" text)  (3.2ms) 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)   (3.5ms) 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, "logins_count" integer DEFAULT 0)  (1.3ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (1.1ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (1.0ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (1.1ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.8ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.9ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (2.0ms) 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)   (0.9ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (3.1ms) 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)   (1.0ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.7ms) 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)   (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (3.0ms) 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, "jtr_format" character varying(255))   (6.6ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (19.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)   (16.1ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.9ms) 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)   (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (4.3ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (4.3ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (1.1ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (4.1ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (1.0ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (3.0ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.8ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (3.3ms) 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)  (0.9ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.9ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.9ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.9ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (3.0ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (3.1ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (3.0ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (1.1ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.8ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.8ms) 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, "name" text)  (4.7ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (1.2ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (4.0ms) 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)   (3.0ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (1.0ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (3.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)  (2.8ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (3.3ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (3.0ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.9ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.9ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (1.0ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (1.0ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (3.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)  (3.5ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (3.1ms) 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)  (2.0ms) 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)   (2.0ms) 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)  (3.2ms) 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)   (3.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)  (4.8ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (3.3ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (3.1ms) 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, "fail_detail" text)   (3.3ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (3.1ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (2.2ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.9ms) 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, "query" text)  (0.9ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (3.1ms) 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, "headers" text, "body" bytea, "request" bytea)  (0.8ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.8ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (3.0ms) 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)   (1.0ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (1.1ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (1.3ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (5.0ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.9ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.9ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (1.1ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.1ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.9ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (2.9ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140603163708')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140520140817')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml Connecting to database specified by database.yml  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (49.9ms) DROP DATABASE IF EXISTS "metasploit_credential_test" Interrupt: : DROP DATABASE IF EXISTS "metasploit_credential_test" Connecting to database specified by database.yml  (1.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Connecting to database specified by database.yml  (3.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateTables (0)  (0.1ms) BEGIN  (26.1ms) 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))   (0.8ms) CREATE UNIQUE INDEX "index_hosts_on_address" ON "hosts" ("address")  (2.6ms) 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))   (2.6ms) 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))  (14.9ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created" timestamp, "name" character varying(255), "data" text)   (13.7ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created" timestamp, "name" character varying(512))  (0.6ms) CREATE TABLE "vulns_refs" ("ref_id" integer, "vuln_id" integer)   (2.4ms) CREATE TABLE "notes" ("id" serial primary key, "host_id" integer, "created" timestamp, "ntype" character varying(512), "data" text)  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('0')  (0.8ms) COMMIT Migrating to AddWmapTables (1)  (0.4ms) BEGIN  (15.0ms) 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)  (13.6ms) 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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('1')  (0.6ms) COMMIT Migrating to AddWorkspaces (2)  (0.2ms) BEGIN  (7.4ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.3ms) ALTER TABLE "hosts" ADD COLUMN "workspace_id" integer  (0.5ms) DROP INDEX "index_hosts_on_address"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('2')  (6.6ms) COMMIT Migrating to MoveNotes (3)  (6.2ms) BEGIN  (0.4ms) ALTER TABLE "notes" DROP "host_id"  (20.4ms) ALTER TABLE "notes" ADD COLUMN "workspace_id" integer DEFAULT 1 NOT NULL  (0.2ms) ALTER TABLE "notes" ADD COLUMN "service_id" integer  (0.2ms) ALTER TABLE "notes" ADD COLUMN "host_id" integer  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('3')  (5.4ms) COMMIT Migrating to AddEventsTable (4)  (0.2ms) BEGIN  (14.3ms) 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))  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('4')  (6.4ms) COMMIT Migrating to ExpandInfo (5)  (29.5ms) BEGIN  (0.3ms) ALTER TABLE "events" DROP "info"  (0.2ms) ALTER TABLE "events" ADD COLUMN "info" character varying(4096)  (0.2ms) ALTER TABLE "notes" DROP "data"  (0.2ms) ALTER TABLE "notes" ADD COLUMN "data" character varying(4096)  (0.2ms) ALTER TABLE "vulns" DROP "data"  (0.2ms) ALTER TABLE "vulns" ADD COLUMN "data" character varying(4096)  (0.2ms) ALTER TABLE "hosts" DROP "info"  (0.2ms) ALTER TABLE "hosts" ADD COLUMN "info" character varying(4096)  (0.2ms) ALTER TABLE "services" DROP "info"  (0.2ms) ALTER TABLE "services" ADD COLUMN "info" character varying(4096)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('5')  (6.2ms) COMMIT Migrating to AddTimestamps (6)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "clients" RENAME COLUMN "created" TO "created_at"  (0.2ms) ALTER TABLE "hosts" RENAME COLUMN "created" TO "created_at"  (0.2ms) ALTER TABLE "notes" RENAME COLUMN "created" TO "created_at"  (0.2ms) ALTER TABLE "refs" RENAME COLUMN "created" TO "created_at"  (0.1ms) ALTER TABLE "services" RENAME COLUMN "created" TO "created_at"  (0.2ms) ALTER TABLE "vulns" RENAME COLUMN "created" TO "created_at"  (0.2ms) ALTER TABLE "wmap_requests" RENAME COLUMN "created" TO "created_at"  (0.2ms) ALTER TABLE "wmap_targets" ADD COLUMN "created_at" timestamp  (0.2ms) ALTER TABLE "clients" ADD COLUMN "updated_at" timestamp  (0.2ms) ALTER TABLE "events" ADD COLUMN "updated_at" timestamp  (0.2ms) ALTER TABLE "hosts" ADD COLUMN "updated_at" timestamp  (0.2ms) ALTER TABLE "notes" ADD COLUMN "updated_at" timestamp  (0.2ms) ALTER TABLE "refs" ADD COLUMN "updated_at" timestamp  (0.2ms) ALTER TABLE "services" ADD COLUMN "updated_at" timestamp  (0.2ms) ALTER TABLE "vulns" ADD COLUMN "updated_at" timestamp  (0.2ms) ALTER TABLE "wmap_requests" ADD COLUMN "updated_at" timestamp  (0.2ms) ALTER TABLE "wmap_targets" ADD COLUMN "updated_at" timestamp  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('6')  (11.3ms) COMMIT Migrating to AddLoots (7)  (0.1ms) BEGIN  (14.1ms) 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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('7')  (11.0ms) COMMIT Migrating to CreateUsers (8)  (0.2ms) BEGIN  (14.9ms) 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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('8')  (8.8ms) COMMIT Migrating to AddLootsCtype (9)  (0.5ms) BEGIN  (0.3ms) ALTER TABLE "loots" ADD COLUMN "content_type" character varying(255)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('9')  (5.7ms) COMMIT Migrating to AddAlertFields (10)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "notes" ADD COLUMN "critical" boolean  (0.2ms) ALTER TABLE "notes" ADD COLUMN "seen" boolean  (0.2ms) ALTER TABLE "events" ADD COLUMN "critical" boolean  (0.2ms) ALTER TABLE "events" ADD COLUMN "seen" boolean  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('10')  (5.8ms) COMMIT Migrating to AddReports (11)  (0.1ms) BEGIN  (20.7ms) 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)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('11')  (5.3ms) COMMIT Migrating to AddTasks (12)  (0.3ms) BEGIN  (19.2ms) 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)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('12')  (5.2ms) COMMIT Migrating to AddTasksResult (13)  (0.3ms) BEGIN  (0.3ms) ALTER TABLE "tasks" ADD COLUMN "result" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('13')  (11.9ms) COMMIT Migrating to AddLootsFields (14)  (0.2ms) BEGIN  (0.4ms) ALTER TABLE "loots" ADD COLUMN "name" text  (0.2ms) ALTER TABLE "loots" ADD COLUMN "info" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('14')  (0.3ms) COMMIT Migrating to RenameUser (15)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "events" DROP "user"  (0.2ms) ALTER TABLE "events" ADD COLUMN "username" character varying(255)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('15')  (5.6ms) COMMIT Migrating to AddHostPurpose (16)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "hosts" ADD COLUMN "purpose" text  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('16')  (6.1ms) COMMIT Migrating to ExpandInfo2 (17)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "events" DROP "info"  (0.2ms) ALTER TABLE "events" ADD COLUMN "info" character varying(65536)  (6.6ms) ALTER TABLE "notes" DROP "data"  (0.3ms) ALTER TABLE "notes" ADD COLUMN "data" character varying(65536)  (0.2ms) ALTER TABLE "vulns" DROP "data"  (0.2ms) ALTER TABLE "vulns" ADD COLUMN "data" character varying(65536)  (0.2ms) ALTER TABLE "hosts" DROP "info"  (0.2ms) ALTER TABLE "hosts" ADD COLUMN "info" character varying(65536)  (0.2ms) ALTER TABLE "services" DROP "info"  (0.2ms) ALTER TABLE "services" ADD COLUMN "info" character varying(65536)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('17')  (5.9ms) COMMIT Migrating to AddWorkspaceUserInfo (18)  (0.1ms) BEGIN  (7.0ms) ALTER TABLE "workspaces" ADD COLUMN "boundary" character varying(4096)  (0.3ms) ALTER TABLE "users" ADD COLUMN "fullname" character varying(255)  (0.3ms) ALTER TABLE "users" ADD COLUMN "email" character varying(255)  (0.2ms) ALTER TABLE "users" ADD COLUMN "phone" character varying(255)  (0.2ms) ALTER TABLE "users" ADD COLUMN "company" character varying(255)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('18')  (5.9ms) COMMIT Migrating to AddWorkspaceDesc (19)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "workspaces" ADD COLUMN "description" character varying(4096)  (0.2ms) ALTER TABLE "hosts" ADD COLUMN "comments" character varying(4096)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('19')  (6.3ms) COMMIT Migrating to AddUserPreferences (20)  (0.2ms) BEGIN  (0.4ms) ALTER TABLE "users" ADD COLUMN "prefs" character varying(524288)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20')  (6.3ms) COMMIT Migrating to StandardizeInfoAndData (21)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "vulns" DROP "data"  (0.2ms) ALTER TABLE "vulns" ADD COLUMN "info" character varying(65536)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('21')  (5.8ms) COMMIT Migrating to EnlargeEventInfo (22)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "events" ALTER COLUMN "info" TYPE text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('22')  (5.7ms) COMMIT Migrating to AddReportDownloadedAt (23)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "reports" ADD COLUMN "downloaded_at" timestamp  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('23')  (5.9ms) COMMIT Migrating to ConvertServiceInfoToText (24)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "services" ALTER COLUMN "info" TYPE text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('24')  (5.9ms) COMMIT Migrating to AddUserAdmin (25)  (0.2ms) BEGIN  (13.8ms) ALTER TABLE "users" ADD COLUMN "admin" boolean DEFAULT 't'  (0.7ms) CREATE TABLE "project_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('25')  (6.1ms) COMMIT Migrating to AddCredsTable (26)  (0.2ms) BEGIN  (20.7ms) 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))  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('26')  (6.3ms) COMMIT Migrating to MigrateCredData (20100819123300)  (4.9ms) BEGIN Mdm::Note Load (0.3ms) SELECT "notes".* FROM "notes" Mdm::Note Load (0.3ms) SELECT "notes".* FROM "notes"   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100819123300')  (6.0ms) COMMIT Migrating to AddExploitedTable (20100824151500)  (0.1ms) BEGIN  (14.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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100824151500')  (6.2ms) COMMIT Migrating to AddOwnerToWorkspaces (20100908001428)  (4.6ms) BEGIN  (0.3ms) ALTER TABLE "workspaces" ADD COLUMN "owner_id" integer  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100908001428')  (6.0ms) COMMIT Migrating to AddReportTemplates (20100911122000)  (0.2ms) BEGIN  (14.9ms) 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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100911122000')  (6.2ms) COMMIT Migrating to RequireAdminFlag (20100916151530)  (5.0ms) BEGIN SQL (6.5ms) UPDATE "users" SET "admin" = 't' WHERE "users"."admin" IS NULL  (0.4ms) ALTER TABLE "users" ALTER COLUMN "admin" TYPE boolean  (0.2ms) ALTER TABLE "users" ALTER COLUMN "admin" SET DEFAULT 't'  (0.2ms) UPDATE "users" SET "admin"='t' WHERE "admin" IS NULL  (0.1ms) ALTER TABLE "users" ALTER "admin" SET NOT NULL  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100916151530')  (6.0ms) COMMIT Migrating to AddCampaignsAndTemplates (20100916175000)  (0.2ms) BEGIN  (14.9ms) 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)   (8.6ms) CREATE TABLE "email_templates" ("id" serial primary key, "name" character varying(512), "subject" character varying(1024), "body" text, "parent_id" integer, "campaign_id" integer)  (3.3ms) 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)   (0.6ms) CREATE TABLE "attachments_email_templates" ("attachment_id" integer, "email_template_id" integer)  (3.2ms) 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)   (3.1ms) CREATE TABLE "web_templates" ("id" serial primary key, "name" character varying(512), "title" character varying(512), "body" character varying(524288), "campaign_id" integer)  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100916175000')  (0.8ms) COMMIT Migrating to AddGenerateExeColumn (20100920012100)  (0.4ms) BEGIN  (14.2ms) ALTER TABLE "email_templates" ADD COLUMN "generate_exe" boolean DEFAULT 'f' NOT NULL  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100920012100')  (6.2ms) COMMIT Migrating to AddTemplatePrefs (20100926214000)  (0.1ms) BEGIN  (0.8ms) ALTER TABLE "email_templates" DROP "generate_exe"  (0.3ms) ALTER TABLE "email_templates" ADD COLUMN "prefs" text  (0.3ms) ALTER TABLE "web_templates" ADD COLUMN "prefs" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100926214000')  (5.7ms) COMMIT Migrating to AddWebTables (20101001000000)  (0.1ms) BEGIN  (14.9ms) 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)  (10.4ms) 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)   (3.2ms) 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)  (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))   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101001000000')  (0.8ms) COMMIT Migrating to AddQuery (20101002000000)  (0.3ms) BEGIN  (0.3ms) ALTER TABLE "web_forms" ADD COLUMN "query" text  (0.2ms) ALTER TABLE "web_vulns" ADD COLUMN "query" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101002000000')  (6.0ms) COMMIT Migrating to AddVulnInfo (20101007000000)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "web_vulns" ADD COLUMN "category" text  (0.2ms) ALTER TABLE "web_vulns" ADD COLUMN "confidence" text  (0.2ms) ALTER TABLE "web_vulns" ADD COLUMN "description" text  (0.2ms) ALTER TABLE "web_vulns" ADD COLUMN "blame" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101007000000')  (6.0ms) COMMIT Migrating to AddClientsToCampaigns (20101008111800)  (0.2ms) BEGIN  (0.4ms) ALTER TABLE "clients" ADD COLUMN "campaign_id" integer  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101008111800')  (6.1ms) COMMIT Migrating to AddCampaignAttachments (20101009023300)  (0.1ms) BEGIN  (0.5ms) ALTER TABLE "attachments" ADD COLUMN "campaign_id" integer  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101009023300')  (6.0ms) COMMIT Migrating to AddImportedCreds (20101104135100)  (0.1ms) BEGIN  (14.9ms) 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')   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101104135100')  (6.1ms) COMMIT Migrating to FixWebTables (20101203000000)  (4.6ms) BEGIN  (0.4ms) ALTER TABLE "web_pages" ALTER COLUMN "path" TYPE text  (0.2ms) ALTER TABLE "web_pages" ALTER COLUMN "query" TYPE text  (0.2ms) ALTER TABLE "web_pages" ALTER COLUMN "cookie" TYPE text  (0.3ms) ALTER TABLE "web_pages" ALTER COLUMN "auth" TYPE text  (0.3ms) ALTER TABLE "web_pages" ALTER COLUMN "ctype" TYPE text  (0.2ms) ALTER TABLE "web_pages" ALTER COLUMN "location" TYPE text  (0.2ms) ALTER TABLE "web_pages" ALTER COLUMN "path" TYPE text  (0.2ms) ALTER TABLE "web_vulns" ALTER COLUMN "path" TYPE text  (0.2ms) ALTER TABLE "web_vulns" ALTER COLUMN "pname" TYPE text  (0.2ms) ALTER TABLE "web_pages" ADD COLUMN "request" text  (0.2ms) ALTER TABLE "web_vulns" ADD COLUMN "request" text  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101203000000')  (6.1ms) COMMIT Migrating to ExpandHostComment (20101203000001)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "hosts" ALTER COLUMN "comments" TYPE text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101203000001')  (6.1ms) COMMIT Migrating to AddLimitToNetworkToWorkspaces (20101206212033)  (0.2ms) BEGIN  (14.5ms) ALTER TABLE "workspaces" ADD COLUMN "limit_to_network" boolean DEFAULT 'f' NOT NULL  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101206212033')  (6.6ms) COMMIT Migrating to AddModuleUuidToTasks (20110112154300)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "tasks" ADD COLUMN "module_uuid" character varying(8)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110112154300')  (5.9ms) COMMIT Migrating to AddHostTags (20110204112800)  (0.1ms) BEGIN  (15.3ms) 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)   (0.7ms) CREATE TABLE "hosts_tags" ("host_id" integer, "tag_id" integer)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110204112800')  (6.1ms) COMMIT Migrating to AddSessionTable (20110317144932)  (4.6ms) BEGIN  (14.2ms) 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))  (7.8ms) 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)  AddSessionTable::Event Load (0.7ms) SELECT "events".* FROM "events" WHERE "events"."name" = 'session_close' AddSessionTable::Event Load (0.3ms) SELECT "events".* FROM "events" WHERE "events"."name" = 'session_open' AddSessionTable::Event Load (0.3ms) SELECT "events".* FROM "events" WHERE "events"."name" = 'session_command' AddSessionTable::Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."name" = 'session_output' AddSessionTable::Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."name" = 'session_upload' AddSessionTable::Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."name" = 'session_download'  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110317144932')  (0.7ms) COMMIT Migrating to AddLocalIdToSessionTable (20110414180600)  (0.3ms) BEGIN  (0.6ms) ALTER TABLE "sessions" ADD COLUMN "local_id" integer  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110414180600')  (0.4ms) COMMIT Migrating to AddRoutesTable (20110415175705)  (0.1ms) BEGIN  (14.7ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))   (0.4ms) ALTER TABLE "sessions" DROP "routes"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110415175705')  (5.8ms) COMMIT Migrating to ConvertBinary (20110422000000)  (4.7ms) BEGIN  (0.4ms) ALTER TABLE "web_pages" RENAME COLUMN "body" TO "body_text"  (0.3ms) ALTER TABLE "web_pages" RENAME COLUMN "request" TO "request_text"  (0.2ms) ALTER TABLE "web_vulns" RENAME COLUMN "request" TO "request_text"  (0.2ms) ALTER TABLE "web_vulns" RENAME COLUMN "proof" TO "proof_text"  (0.2ms) ALTER TABLE "web_pages" ADD COLUMN "body" bytea  (0.2ms) ALTER TABLE "web_pages" ADD COLUMN "request" bytea  (0.5ms) ALTER TABLE "web_vulns" ADD COLUMN "request" bytea  (0.3ms) ALTER TABLE "web_vulns" ADD COLUMN "proof" bytea ConvertBinary::WebPage Load (0.3ms) SELECT "web_pages".* FROM "web_pages" ConvertBinary::WebPage Load (0.2ms) SELECT "web_pages".* FROM "web_pages"  ConvertBinary::WebVuln Load (0.3ms) SELECT "web_vulns".* FROM "web_vulns" ConvertBinary::WebVuln Load (0.2ms) SELECT "web_vulns".* FROM "web_vulns"   (0.2ms) ALTER TABLE "web_pages" DROP "body_text"  (0.2ms) ALTER TABLE "web_pages" DROP "request_text"  (0.2ms) ALTER TABLE "web_vulns" DROP "request_text"  (0.2ms) ALTER TABLE "web_vulns" DROP "proof_text"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110422000000')  (5.9ms) COMMIT Migrating to AddLastSeenToSessions (20110425095900)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "sessions" ADD COLUMN "last_seen" timestamp  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110425095900')  (6.1ms) COMMIT Migrating to TrackSuccessfulExploits (20110513143900)  (0.1ms) BEGIN  (0.4ms) ALTER TABLE "vulns" ADD COLUMN "exploited_at" timestamp TrackSuccessfulExploits::ExploitedHost Load (0.4ms) SELECT "exploited_hosts".* FROM "exploited_hosts"  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110513143900')  (6.0ms) COMMIT Migrating to RenameAndPruneNessusVulns (20110517160800)  (0.1ms) BEGIN RenameAndPruneNessusVulns::Vuln Load (0.3ms) SELECT "vulns".* FROM "vulns"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110517160800')  (5.8ms) COMMIT Migrating to AddTaskIdToReportsTable (20110527000000)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "reports" ADD COLUMN "task_id" integer  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110527000000')  (5.9ms) COMMIT Migrating to AddApiKeysTable (20110527000001)  (0.1ms) BEGIN  (14.2ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110527000001')  (5.7ms) COMMIT Migrating to AddMacrosTable (20110606000001)  (4.9ms) BEGIN  (14.4ms) 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)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110606000001')  (5.9ms) COMMIT Migrating to AddSettingsToTasksTable (20110622000000)  (4.5ms) BEGIN  (0.3ms) ALTER TABLE "tasks" ADD COLUMN "settings" bytea  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110622000000')  (6.2ms) COMMIT Migrating to AddListenersTable (20110624000001)  (0.2ms) BEGIN  (14.8ms) 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)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110624000001')  (5.9ms) COMMIT Migrating to AddMacroToListenersTable (20110625000001)  (4.8ms) BEGIN  (0.4ms) ALTER TABLE "listeners" ADD COLUMN "macro" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110625000001')  (6.1ms) COMMIT Migrating to AddNexposeConsolesTable (20110630000001)  (0.2ms) BEGIN  (15.6ms) 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)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110630000001')  (5.9ms) COMMIT Migrating to AddNameToNexposeConsolesTable (20110630000002)  (4.8ms) BEGIN  (0.3ms) ALTER TABLE "nexpose_consoles" ADD COLUMN "name" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110630000002')  (6.1ms) COMMIT Migrating to AddProfilesTable (20110717000001)  (0.1ms) BEGIN  (25.0ms) 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)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110717000001')  (0.4ms) COMMIT Migrating to ExpandCredPtypeColumn (20110727163801)  (0.2ms) BEGIN  (0.5ms) ALTER TABLE "creds" ALTER COLUMN "ptype" TYPE character varying(256)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110727163801')  (5.5ms) COMMIT Migrating to AddInitialIndexes (20110730000001)  (0.1ms) BEGIN  (6.2ms) CREATE INDEX "index_hosts_on_address" ON "hosts" ("address")  (7.0ms) CREATE INDEX "index_hosts_on_address6" ON "hosts" ("address6")  (6.2ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.9ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.7ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (0.7ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.8ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (1.0ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.8ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.7ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (0.7ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.9ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (0.9ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (1.0ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (1.1ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (0.8ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (1.1ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.9ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.7ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (0.6ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (0.9ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (0.8ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.9ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110730000001')  (0.5ms) COMMIT Migrating to PruneIndexes (20110812000001)  (0.2ms) BEGIN  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110812000001')  (6.1ms) COMMIT Migrating to ExpandNotes (20110922000000)  (0.2ms) BEGIN  (0.4ms) ALTER TABLE "notes" ALTER COLUMN "data" TYPE text  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110922000000')  (5.5ms) COMMIT Migrating to AddModRefTable (20110928101300)  (0.1ms) BEGIN  (14.5ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110928101300')  (6.2ms) COMMIT Migrating to AddDisplayNameToReportsTable (20111011110000)  (5.0ms) BEGIN  (0.4ms) ALTER TABLE "reports" ADD COLUMN "name" character varying(63) AddDisplayNameToReportsTable::Report Load (0.3ms) SELECT "reports".* FROM "reports"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20111011110000')  (5.6ms) COMMIT Migrating to InetColumns (20111203000000)  (0.1ms) BEGIN  (28.3ms) ALTER TABLE "hosts" ALTER COLUMN "address" TYPE INET using address::INET  (0.3ms) ALTER TABLE "hosts" DROP "address6"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20111203000000')  (1.4ms) COMMIT Migrating to MoreInetColumns (20111204000000)  (0.2ms) BEGIN  (14.9ms) ALTER TABLE "wmap_requests" ALTER COLUMN "address" TYPE INET using address::INET  (0.3ms) ALTER TABLE "wmap_requests" DROP "address6"  (13.7ms) ALTER TABLE "wmap_targets" ALTER COLUMN "address" TYPE INET using address::INET  (0.4ms) ALTER TABLE "wmap_targets" DROP "address6"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20111204000000')  (1.2ms) COMMIT Migrating to AddScopeToHosts (20111210000000)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "hosts" ADD COLUMN "scope" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20111210000000')  (5.6ms) COMMIT Migrating to AddVirtualHostToHosts (20120126110000)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "hosts" ADD COLUMN "virtual_host" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120126110000')  (6.0ms) COMMIT Migrating to RenameWorkspaceMembers (20120411173220)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "project_members" RENAME TO "workspace_members"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120411173220')  (5.8ms) COMMIT Migrating to AddCounterCachesToHosts (20120601152442)  (0.2ms) BEGIN  (45.1ms) ALTER TABLE "hosts" ADD COLUMN "note_count" integer DEFAULT 0  (6.5ms) ALTER TABLE "hosts" ADD COLUMN "vuln_count" integer DEFAULT 0  (5.8ms) ALTER TABLE "hosts" ADD COLUMN "service_count" integer DEFAULT 0 Mdm::Host Load (0.6ms) SELECT "hosts".* FROM "hosts"   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120601152442')  (2.8ms) COMMIT Migrating to AddVulnDetails (20120625000000)  (0.4ms) BEGIN  (14.7ms) 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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000000')  (7.5ms) COMMIT Migrating to AddHostDetails (20120625000001)  (0.2ms) BEGIN  (8.1ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000001')  (5.7ms) COMMIT Migrating to ExpandDetails (20120625000002)  (5.8ms) BEGIN  (0.5ms) ALTER TABLE "vuln_details" ADD COLUMN "nx_vuln_status" text  (0.3ms) ALTER TABLE "vuln_details" ADD COLUMN "nx_proof_key" text  (0.3ms) ALTER TABLE "vuln_details" ADD COLUMN "src" character varying(255)  (0.3ms) ALTER TABLE "host_details" ADD COLUMN "src" character varying(255)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000002')  (6.2ms) COMMIT Migrating to ExpandDetails2 (20120625000003)  (0.2ms) BEGIN  (6.9ms) ALTER TABLE "host_details" ADD COLUMN "nx_site_name" character varying(255)  (0.2ms) ALTER TABLE "host_details" ADD COLUMN "nx_site_importance" character varying(255)  (0.2ms) ALTER TABLE "host_details" ADD COLUMN "nx_scan_template" character varying(255)  (0.3ms) ALTER TABLE "host_details" ADD COLUMN "nx_risk_score" float  (0.2ms) ALTER TABLE "vuln_details" ADD COLUMN "nx_scan_id" integer  (0.2ms) ALTER TABLE "vuln_details" ADD COLUMN "nx_vulnerable_since" timestamp  (0.2ms) ALTER TABLE "vuln_details" ADD COLUMN "nx_pci_compliance_status" character varying(255)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000003')  (5.8ms) COMMIT Migrating to AddVulnAttempts (20120625000004)  (0.1ms) BEGIN  (14.0ms) 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)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000004')  (5.9ms) COMMIT Migrating to AddVulnAndHostCounterCaches (20120625000005)  (4.9ms) BEGIN  (28.7ms) ALTER TABLE "hosts" ADD COLUMN "host_detail_count" integer DEFAULT 0  (3.5ms) ALTER TABLE "vulns" ADD COLUMN "vuln_detail_count" integer DEFAULT 0  (3.2ms) ALTER TABLE "vulns" ADD COLUMN "vuln_attempt_count" integer DEFAULT 0  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000005')  (5.8ms) COMMIT Migrating to AddModuleDetails (20120625000006)  (0.3ms) BEGIN  (18.8ms) 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)  (9.0ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (0.9ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.9ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.8ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (2.8ms) CREATE TABLE "module_authors" ("id" serial primary key, "module_detail_id" integer, "name" text, "email" text)   (1.0ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("module_detail_id")  (2.9ms) CREATE TABLE "module_mixins" ("id" serial primary key, "module_detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("module_detail_id")  (2.5ms) CREATE TABLE "module_targets" ("id" serial primary key, "module_detail_id" integer, "index" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("module_detail_id")  (3.0ms) CREATE TABLE "module_actions" ("id" serial primary key, "module_detail_id" integer, "name" text)   (0.7ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("module_detail_id")  (2.6ms) CREATE TABLE "module_refs" ("id" serial primary key, "module_detail_id" integer, "name" text)   (1.2ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("module_detail_id")  (1.0ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (3.6ms) CREATE TABLE "module_archs" ("id" serial primary key, "module_detail_id" integer, "name" text)  (0.7ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("module_detail_id")  (2.8ms) CREATE TABLE "module_platforms" ("id" serial primary key, "module_detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("module_detail_id")  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000006')  (1.2ms) COMMIT Migrating to AddExploitAttempts (20120625000007)  (0.8ms) BEGIN  (14.2ms) 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))   (12.5ms) ALTER TABLE "hosts" ADD COLUMN "exploit_attempt_count" integer DEFAULT 0  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000007')  (1.7ms) COMMIT Migrating to AddFailMessage (20120625000008)  (0.3ms) BEGIN  (0.4ms) ALTER TABLE "vuln_attempts" ADD COLUMN "fail_detail" text  (0.3ms) ALTER TABLE "exploit_attempts" ADD COLUMN "fail_detail" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000008')  (6.0ms) COMMIT Migrating to AddOwnerAndPayloadToWebVulns (20120718202805)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "web_vulns" ADD COLUMN "owner" character varying(255)  (0.2ms) ALTER TABLE "web_vulns" ADD COLUMN "payload" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120718202805')  (6.0ms) COMMIT Migrating to ChangeRequiredColumnsToNullFalseInWebVulns (20130228214900)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "web_vulns" ALTER "category" SET NOT NULL  (0.2ms) ALTER TABLE "web_vulns" ALTER "confidence" SET NOT NULL  (0.2ms) ALTER TABLE "web_vulns" ALTER "method" SET NOT NULL  (0.2ms) ALTER TABLE "web_vulns" ALTER "name" SET NOT NULL  (0.2ms) ALTER TABLE "web_vulns" ALTER "params" SET NOT NULL  (0.2ms) ALTER TABLE "web_vulns" ALTER "path" SET NOT NULL  (0.2ms) ALTER TABLE "web_vulns" ALTER "pname" SET NOT NULL  (0.2ms) ALTER TABLE "web_vulns" ALTER "proof" SET NOT NULL  (0.2ms) ALTER TABLE "web_vulns" ALTER "risk" SET NOT NULL  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130228214900')  (5.7ms) COMMIT Migrating to ChangeForeignKeyInModuleActions (20130412154159)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "module_actions" RENAME COLUMN "module_detail_id" TO "detail_id"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130412154159')  (6.0ms) COMMIT Migrating to ChangeForeignKeyInModuleArchs (20130412171844)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "module_archs" RENAME COLUMN "module_detail_id" TO "detail_id"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130412171844')  (5.9ms) COMMIT Migrating to ChangeForeignKeyInModuleAuthors (20130412173121)  (0.2ms) BEGIN  (0.4ms) ALTER TABLE "module_authors" RENAME COLUMN "module_detail_id" TO "detail_id"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130412173121')  (5.6ms) COMMIT Migrating to ChangeForeignKeyInModuleMixins (20130412173640)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "module_mixins" RENAME COLUMN "module_detail_id" TO "detail_id"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130412173640')  (5.7ms) COMMIT Migrating to ChangeForeignKeyInModulePlatforms (20130412174254)  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "module_platforms" RENAME COLUMN "module_detail_id" TO "detail_id"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130412174254')  (5.7ms) COMMIT Migrating to ChangeForeignKeyInModuleRefs (20130412174719)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "module_refs" RENAME COLUMN "module_detail_id" TO "detail_id"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130412174719')  (5.9ms) COMMIT Migrating to ChangeForeignKeyInModuleTargets (20130412175040)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "module_targets" RENAME COLUMN "module_detail_id" TO "detail_id"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130412175040')  (5.6ms) COMMIT Migrating to AddCredsCounterCache (20130423211152)  (0.1ms) BEGIN  (27.7ms) ALTER TABLE "hosts" ADD COLUMN "cred_count" integer DEFAULT 0 Mdm::Cred Load (0.3ms) SELECT "creds".* FROM "creds"   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130423211152')  (1.3ms) COMMIT Migrating to ChangeRequiredColumnsToNullFalseInHosts (20130430151353)  (0.2ms) BEGIN  (0.4ms) ALTER TABLE "hosts" ALTER "address" SET NOT NULL  (0.3ms) ALTER TABLE "hosts" ALTER "workspace_id" SET NOT NULL  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130430151353')  (5.7ms) COMMIT Migrating to EnforceAddressUniquenessInWorkspaceInHosts (20130430162145)  (0.1ms) BEGIN  (1.0ms) SELECT workspace_id, address, count_addr FROM ( SELECT workspace_id, address, COUNT(address) AS count_addr FROM hosts GROUP BY address, workspace_id ) X WHERE count_addr > 1  (0.2ms) DROP INDEX "index_hosts_on_address"  (6.7ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130430162145')  (6.2ms) COMMIT Migrating to RemoveCampaigns (20130510021637)  (0.2ms) BEGIN  (1.0ms) DROP TABLE "attachments"  (0.5ms) DROP TABLE "attachments_email_templates"  (1.1ms) DROP TABLE "email_addresses"  (0.7ms) DROP TABLE "email_templates"  (0.6ms) DROP TABLE "web_templates"  (0.7ms) DROP TABLE "campaigns"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130510021637')  (7.5ms) COMMIT Migrating to ChangeWebVulnsConfidenceToInteger (20130515164311)  (0.3ms) BEGIN  (27.2ms) ALTER TABLE web_vulns ALTER COLUMN confidence TYPE integer USING confidence::integer  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130515164311')  (0.9ms) COMMIT Migrating to ValidMdmWebVulnParams (20130515172727)  (0.1ms) BEGIN Mdm::WebVuln Load (0.6ms) SELECT "web_vulns".* FROM "web_vulns" ORDER BY "web_vulns"."id" ASC LIMIT 1000  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130515172727')  (5.8ms) COMMIT Migrating to MakingVulnsRefsARealArModel (20130516204810)  (0.2ms) BEGIN  (8.3ms) ALTER TABLE "vulns_refs" ADD COLUMN "id" serial primary key  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130516204810')  (6.2ms) COMMIT Migrating to CreateTaskCreds (20130522001343)  (5.9ms) BEGIN  (8.0ms) 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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130522001343')  (6.1ms) COMMIT Migrating to CreateTaskHosts (20130522032517)  (5.6ms) BEGIN  (7.6ms) 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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130522032517')  (6.0ms) COMMIT Migrating to CreateTaskServices (20130522041110)  (5.8ms) BEGIN  (7.8ms) 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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130522041110')  (6.0ms) COMMIT Migrating to RemoveCampaignIdFromClients (20130525015035)  (5.6ms) BEGIN  (0.5ms) ALTER TABLE "clients" DROP "campaign_id"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130525015035')  (6.1ms) COMMIT Migrating to DropTableImportedCreds (20130525212420)  (0.2ms) BEGIN  (0.9ms) DROP TABLE "imported_creds"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130525212420')  (6.5ms) COMMIT Migrating to MakingHostTagsARealArModel (20130531144949)  (0.2ms) BEGIN  (8.0ms) ALTER TABLE "hosts_tags" ADD COLUMN "id" serial primary key  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130531144949')  (6.5ms) COMMIT Migrating to CreateTaskSessions (20130604145732)  (6.1ms) BEGIN  (12.4ms) 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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130604145732')  (6.0ms) COMMIT Migrating to RemovePnameValidation (20130717150737)  (4.4ms) BEGIN  (0.4ms) ALTER TABLE "web_vulns" ALTER COLUMN "pname" TYPE text  (0.2ms) ALTER TABLE "web_vulns" ALTER "pname" DROP NOT NULL  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130717150737')  (6.0ms) COMMIT Migrating to CreateMetasploitCredentialPublics (20140331173835)  (0.1ms) BEGIN  (7.5ms) 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)  (6.7ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140331173835')  (0.4ms) COMMIT Migrating to CreateMetasploitCredentialPrivates (20140407212345)  (0.2ms) BEGIN  (3.5ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140407212345')  (0.5ms) COMMIT Migrating to CreateMetasploitCredentialRealms (20140410132401)  (0.2ms) BEGIN  (3.0ms) 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)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140410132401')  (0.3ms) COMMIT Migrating to UniqueMetasploitCredentialRealms (20140410161611)  (0.2ms) BEGIN  (1.1ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140410161611')  (0.4ms) COMMIT Migrating to CreateMetasploitCredentialOriginManuals (20140410191213)  (0.2ms) BEGIN  (2.5ms) 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)  (0.7ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140410191213')  (0.3ms) COMMIT Migrating to CreateMetasploitCredentialOriginImports (20140410205410)  (0.1ms) BEGIN  (2.9ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.1ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140410205410')  (0.4ms) COMMIT Migrating to CreateMetasploitCredentialOriginSessions (20140411142102)  (0.2ms) BEGIN  (3.8ms) 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)  (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140411142102')  (0.4ms) COMMIT Migrating to CreateMetasploitCredentialOriginServices (20140411205325)  (0.2ms) BEGIN  (2.8ms) 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)   (1.0ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140411205325')  (0.4ms) COMMIT Migrating to CreateMetasploitCredentialCores (20140414192550)  (0.3ms) BEGIN  (2.3ms) 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)  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.7ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.6ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (1.2ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140414192550')  (0.4ms) COMMIT Migrating to CreateMetasploitCredentialLogins (20140417140933)  (0.2ms) BEGIN  (4.2ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140417140933')  (0.4ms) COMMIT Migrating to AddLoginsCounterCacheToCores (20140520140817)  (0.2ms) BEGIN  (4.7ms) ALTER TABLE "metasploit_credential_cores" ADD COLUMN "logins_count" integer DEFAULT 0 Metasploit::Credential::Core Load (0.4ms) SELECT "metasploit_credential_cores".* FROM "metasploit_credential_cores"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140520140817')  (0.9ms) COMMIT Migrating to AddJtrFormatToMetasploitCredentialPrivates (20140603163708)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "metasploit_credential_privates" ADD COLUMN "jtr_format" character varying(255)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140603163708')  (0.3ms) COMMIT Migrating to CreateMetasploitCredentialOriginCrackedPasswords (20140605173747)  (0.1ms) BEGIN  (2.5ms) 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)  (1.3ms) CREATE INDEX "originating_credential_cores" ON "metasploit_credential_origin_cracked_passwords" ("metasploit_credential_core_id")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140605173747')  (0.5ms) COMMIT  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" Connecting to database specified by database.yml  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (121.4ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (264.6ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.7ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.7ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (23.9ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.8ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (3.1ms) 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), "fail_detail" text)  (2.7ms) 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)   (3.5ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.8ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.1ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.8ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.9ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.2ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.9ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.0ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (4.8ms) 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, "macro" text)   (3.7ms) 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, "content_type" character varying(255), "name" text, "info" text)  (3.2ms) 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)   (2.5ms) 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, "logins_count" integer DEFAULT 0)  (1.1ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.7ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (3.1ms) 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)  (1.1ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.0ms) 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)   (0.8ms) CREATE INDEX "originating_credential_cores" ON "metasploit_credential_origin_cracked_passwords" ("metasploit_credential_core_id")  (3.1ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.2ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (2.3ms) 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)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.8ms) 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)   (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (3.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)   (1.1ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (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, "jtr_format" character varying(255))   (1.1ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.8ms) 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)   (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (3.9ms) 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)   (1.1ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.8ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.7ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (1.0ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (3.3ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (1.0ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.7ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.9ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (3.1ms) 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)  (1.1ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.9ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.9ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.8ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.8ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (1.0ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (3.2ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (3.0ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (1.2ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (1.0ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (3.1ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (1.2ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.2ms) 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, "name" text)  (3.2ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (1.2ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (3.8ms) 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)   (2.9ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (1.0ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (3.4ms) 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)  (3.6ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (3.0ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (3.3ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (1.1ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (1.0ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (1.0ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (1.1ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (3.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)  (3.3ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (3.5ms) 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)  (2.1ms) 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)   (2.2ms) 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)  (2.2ms) 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)   (2.3ms) 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)  (3.5ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (3.0ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (3.2ms) 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, "fail_detail" text)   (4.8ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (3.9ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (2.2ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (4.2ms) 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, "query" text)  (0.9ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.7ms) 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, "headers" text, "body" bytea, "request" bytea)  (1.1ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (1.0ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (3.1ms) 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)   (0.8ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (1.0ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (1.0ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (4.1ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (1.1ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (1.0ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.9ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.2ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (4.3ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (1.0ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (4.9ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.4ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140605173747')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140520140817')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140603163708')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (15.7ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (10.7ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (136.0ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (235.4ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (6.0ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.8ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (4.1ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.9ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.7ms) 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), "fail_detail" text)  (2.9ms) 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)   (3.1ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (4.2ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (0.9ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.9ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (1.1ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.2ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (1.3ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.8ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.1ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.5ms) 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, "macro" text)   (2.9ms) 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, "content_type" character varying(255), "name" text, "info" text)  (3.1ms) 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)   (2.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, "logins_count" integer DEFAULT 0)  (1.2ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (1.0ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.7ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (3.2ms) 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)  (1.3ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (1.1ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.1ms) 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)   (0.9ms) CREATE INDEX "originating_credential_cores" ON "metasploit_credential_origin_cracked_passwords" ("metasploit_credential_core_id")  (3.2ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.3ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (2.3ms) 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)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.5ms) 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)   (1.0ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (3.3ms) 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)   (1.4ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (2.6ms) 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, "jtr_format" character varying(255))   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (2.2ms) 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)   (1.1ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (3.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)   (1.1ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.9ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.7ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (1.0ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (3.0ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.8ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (1.2ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (4.3ms) 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)  (1.1ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (1.1ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.8ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (1.0ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (3.3ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (1.3ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (3.2ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.9ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (1.3ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.9ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.9ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (2.8ms) 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, "name" text)  (3.2ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (1.2ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.8ms) 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)   (2.6ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (1.0ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (3.7ms) 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)  (3.1ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.7ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (3.0ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (1.0ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (1.1ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (1.0ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.8ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.9ms) 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)  (3.5ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (3.2ms) 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)  (2.0ms) 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)   (2.0ms) 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)  (2.4ms) 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)   (2.5ms) 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)  (3.7ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (2.7ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (3.5ms) 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, "fail_detail" text)   (3.2ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (2.9ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (11.8ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (13.0ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.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, "query" text)  (0.8ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (3.1ms) 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, "headers" text, "body" bytea, "request" bytea)  (1.1ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.9ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.9ms) 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)   (0.7ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (1.0ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (1.3ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.1ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.9ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.8ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (1.1ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.5ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (3.3ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.8ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (3.4ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140605173747')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140520140817')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140603163708')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (138.1ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (237.2ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (6.5ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.1ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (3.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(256), "source_id" integer, "source_type" character varying(255))  (5.1ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (4.3ms) 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), "fail_detail" text)  (3.9ms) 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)   (3.1ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.7ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.9ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.9ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.2ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.9ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (1.0ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.4ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.2ms) 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, "macro" text)   (3.0ms) 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, "content_type" character varying(255), "name" text, "info" text)  (3.1ms) 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)   (2.3ms) 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, "logins_count" integer DEFAULT 0)  (1.1ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.7ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (3.5ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.0ms) 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)   (0.7ms) CREATE INDEX "originating_credential_cores" ON "metasploit_credential_origin_cracked_passwords" ("metasploit_credential_core_id")  (3.4ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.3ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (3.0ms) 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)   (0.7ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (3.0ms) 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)   (1.4ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.9ms) 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)   (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (2.9ms) 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, "jtr_format" character varying(255))   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (2.1ms) 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)   (1.3ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (3.1ms) 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)   (1.1ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.5ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (3.1ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (1.4ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (3.9ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.7ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.9ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (3.5ms) 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)  (0.8ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.9ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.7ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.9ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (3.4ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (1.2ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.9ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.6ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (1.4ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (1.1ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (3.0ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.2ms) 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, "name" text)  (3.3ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.9ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.7ms) 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)   (2.6ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (1.0ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (3.7ms) 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)  (3.0ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.6ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (3.1ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (1.1ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.9ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (1.1ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.8ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (3.2ms) 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)  (3.5ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (3.3ms) 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)  (2.0ms) 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)   (1.9ms) 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)  (2.3ms) 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)   (2.4ms) 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)  (3.1ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (2.9ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (3.1ms) 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, "fail_detail" text)   (4.2ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (3.5ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (1.1ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (2.2ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (3.2ms) 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, "query" text)  (0.9ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (3.0ms) 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, "headers" text, "body" bytea, "request" bytea)  (0.9ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.9ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (3.4ms) 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)   (1.0ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.8ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.7ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.3ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (1.2ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (1.1ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.8ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.2ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (3.1ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.8ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (4.0ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (6.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20140605173747')  (11.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (5.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140520140817')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140603163708')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (136.3ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (237.9ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.4ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.1ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (3.2ms) 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(256), "source_id" integer, "source_type" character varying(255))  (3.4ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (3.2ms) 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), "fail_detail" text)  (2.8ms) 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)   (2.7ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (5.0ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.2ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (1.0ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.8ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.2ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (1.1ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (1.0ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.3ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.0ms) 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, "macro" text)   (3.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, "content_type" character varying(255), "name" text, "info" text)  (3.7ms) 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)   (2.8ms) 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, "logins_count" integer DEFAULT 0)  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (3.0ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.3ms) 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)   (0.9ms) CREATE INDEX "originating_credential_cores" ON "metasploit_credential_origin_cracked_passwords" ("metasploit_credential_core_id")  (2.9ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.9ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (2.2ms) 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)   (1.3ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (3.1ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (3.0ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (3.2ms) 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, "jtr_format" character varying(255))   (1.4ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (2.1ms) 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)   (1.1ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (3.3ms) 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)   (1.2ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.9ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (3.0ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.8ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (1.0ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (3.1ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (1.2ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.8ms) 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)  (1.1ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (1.1ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (1.0ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.9ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (3.0ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (3.2ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (1.1ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (3.4ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (3.1ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (1.0ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.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, "name" text)  (2.5ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.7ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (4.1ms) 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)   (3.0ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.7ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.9ms) 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)  (3.0ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (3.5ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (3.0ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.8ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.8ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (1.0ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (1.0ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (3.6ms) 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)  (2.9ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (3.3ms) 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)  (2.0ms) 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)   (2.2ms) 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)  (2.1ms) 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)   (2.0ms) 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)  (3.3ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (3.9ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (3.0ms) 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, "fail_detail" text)   (3.5ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (3.4ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (1.3ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (2.1ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (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, "query" text)  (1.0ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (4.5ms) 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, "headers" text, "body" bytea, "request" bytea)  (0.9ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.9ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (3.5ms) 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)   (1.0ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.9ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.9ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.1ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (1.0ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (1.0ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (1.2ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.5ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.7ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (1.0ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (4.0ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140605173747')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140520140817')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140603163708')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (135.3ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (237.3ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.3ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.2ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (2.9ms) 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(256), "source_id" integer, "source_type" character varying(255))  (3.3ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (3.8ms) 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), "fail_detail" text)  (2.8ms) 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)   (2.7ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.8ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.2ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.9ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.9ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.3ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (1.0ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (1.4ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.0ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (4.1ms) 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, "macro" text)   (3.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, "content_type" character varying(255), "name" text, "info" text)  (2.8ms) 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)   (1.9ms) 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, "logins_count" integer DEFAULT 0)  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (1.2ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (1.0ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (3.2ms) 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)  (1.5ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (1.9ms) 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)   (0.7ms) CREATE INDEX "originating_credential_cores" ON "metasploit_credential_origin_cracked_passwords" ("metasploit_credential_core_id")  (2.8ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.1ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (2.6ms) 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)   (1.0ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.8ms) 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)   (1.1ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (3.3ms) 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)   (1.6ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (2.9ms) 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, "jtr_format" character varying(255))   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.9ms) 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)   (1.1ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.9ms) 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)   (1.5ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.9ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.7ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (1.0ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (3.1ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.8ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.8ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (3.4ms) 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)  (1.1ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (1.1ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (1.1ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (1.1ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.7ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (1.1ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (3.1ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (1.0ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.4ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.9ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (1.0ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (4.1ms) 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, "name" text)  (2.6ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (1.2ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (3.6ms) 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)   (2.8ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.9ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (3.0ms) 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)  (3.1ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (3.3ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.8ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.9ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.8ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (1.1ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (1.3ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (3.0ms) 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)  (2.9ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (3.1ms) 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)  (2.9ms) 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)   (2.6ms) 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)  (2.1ms) 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)   (2.0ms) 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)  (3.2ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (3.0ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (3.3ms) 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, "fail_detail" text)   (3.3ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (3.7ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (2.2ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.6ms) 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, "query" text)  (1.0ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (3.4ms) 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, "headers" text, "body" bytea, "request" bytea)  (1.0ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.9ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.8ms) 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)   (0.9ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (1.0ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (1.3ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.3ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.8ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.9ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (1.0ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.3ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.8ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.8ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (2.7ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140605173747')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140520140817')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140603163708')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml Connecting to database specified by database.yml  (8.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (11.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Connecting to database specified by database.yml  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateTables (0)  (0.1ms) BEGIN  (26.5ms) 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))   (0.9ms) CREATE UNIQUE INDEX "index_hosts_on_address" ON "hosts" ("address")  (3.3ms) 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))   (2.9ms) 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))  (2.6ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created" timestamp, "name" character varying(255), "data" text)   (2.5ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created" timestamp, "name" character varying(512))  (0.5ms) CREATE TABLE "vulns_refs" ("ref_id" integer, "vuln_id" integer)   (2.8ms) CREATE TABLE "notes" ("id" serial primary key, "host_id" integer, "created" timestamp, "ntype" character varying(512), "data" text)  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('0')  (0.8ms) COMMIT Migrating to AddWmapTables (1)  (0.4ms) BEGIN  (13.6ms) 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)  (13.2ms) 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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('1')  (0.6ms) COMMIT Migrating to AddWorkspaces (2)  (0.2ms) BEGIN  (7.5ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.4ms) ALTER TABLE "hosts" ADD COLUMN "workspace_id" integer  (0.3ms) DROP INDEX "index_hosts_on_address"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('2')  (6.5ms) COMMIT Migrating to MoveNotes (3)  (6.0ms) BEGIN  (0.4ms) ALTER TABLE "notes" DROP "host_id"  (14.5ms) ALTER TABLE "notes" ADD COLUMN "workspace_id" integer DEFAULT 1 NOT NULL  (0.3ms) ALTER TABLE "notes" ADD COLUMN "service_id" integer  (0.2ms) ALTER TABLE "notes" ADD COLUMN "host_id" integer  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('3')  (6.5ms) COMMIT Migrating to AddEventsTable (4)  (0.3ms) BEGIN  (14.3ms) 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))  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('4')  (10.2ms) COMMIT Migrating to ExpandInfo (5)  (0.3ms) BEGIN  (0.5ms) ALTER TABLE "events" DROP "info"  (0.3ms) ALTER TABLE "events" ADD COLUMN "info" character varying(4096)  (0.3ms) ALTER TABLE "notes" DROP "data"  (0.2ms) ALTER TABLE "notes" ADD COLUMN "data" character varying(4096)  (0.2ms) ALTER TABLE "vulns" DROP "data"  (0.2ms) ALTER TABLE "vulns" ADD COLUMN "data" character varying(4096)  (0.3ms) ALTER TABLE "hosts" DROP "info"  (0.2ms) ALTER TABLE "hosts" ADD COLUMN "info" character varying(4096)  (0.2ms) ALTER TABLE "services" DROP "info"  (0.2ms) ALTER TABLE "services" ADD COLUMN "info" character varying(4096)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('5')  (5.7ms) COMMIT Migrating to AddTimestamps (6)  (0.2ms) BEGIN  (0.4ms) ALTER TABLE "clients" RENAME COLUMN "created" TO "created_at"  (0.2ms) ALTER TABLE "hosts" RENAME COLUMN "created" TO "created_at"  (0.2ms) ALTER TABLE "notes" RENAME COLUMN "created" TO "created_at"  (0.2ms) ALTER TABLE "refs" RENAME COLUMN "created" TO "created_at"  (0.1ms) ALTER TABLE "services" RENAME COLUMN "created" TO "created_at"  (0.2ms) ALTER TABLE "vulns" RENAME COLUMN "created" TO "created_at"  (0.2ms) ALTER TABLE "wmap_requests" RENAME COLUMN "created" TO "created_at"  (0.2ms) ALTER TABLE "wmap_targets" ADD COLUMN "created_at" timestamp  (0.2ms) ALTER TABLE "clients" ADD COLUMN "updated_at" timestamp  (0.2ms) ALTER TABLE "events" ADD COLUMN "updated_at" timestamp  (0.2ms) ALTER TABLE "hosts" ADD COLUMN "updated_at" timestamp  (0.2ms) ALTER TABLE "notes" ADD COLUMN "updated_at" timestamp  (0.2ms) ALTER TABLE "refs" ADD COLUMN "updated_at" timestamp  (0.2ms) ALTER TABLE "services" ADD COLUMN "updated_at" timestamp  (0.2ms) ALTER TABLE "vulns" ADD COLUMN "updated_at" timestamp  (0.2ms) ALTER TABLE "wmap_requests" ADD COLUMN "updated_at" timestamp  (0.3ms) ALTER TABLE "wmap_targets" ADD COLUMN "updated_at" timestamp  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('6')  (6.3ms) COMMIT Migrating to AddLoots (7)  (0.2ms) BEGIN  (14.4ms) 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)   (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('7')  (5.7ms) COMMIT Migrating to CreateUsers (8)  (4.5ms) BEGIN  (20.8ms) 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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('8')  (5.0ms) COMMIT Migrating to AddLootsCtype (9)  (0.3ms) BEGIN  (0.4ms) ALTER TABLE "loots" ADD COLUMN "content_type" character varying(255)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('9')  (5.9ms) COMMIT Migrating to AddAlertFields (10)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "notes" ADD COLUMN "critical" boolean  (0.3ms) ALTER TABLE "notes" ADD COLUMN "seen" boolean  (0.2ms) ALTER TABLE "events" ADD COLUMN "critical" boolean  (0.2ms) ALTER TABLE "events" ADD COLUMN "seen" boolean  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('10')  (11.9ms) COMMIT Migrating to AddReports (11)  (0.2ms) BEGIN  (13.9ms) 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)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('11')  (11.3ms) COMMIT Migrating to AddTasks (12)  (0.3ms) BEGIN  (14.1ms) 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)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('12')  (11.0ms) COMMIT Migrating to AddTasksResult (13)  (0.3ms) BEGIN  (0.4ms) ALTER TABLE "tasks" ADD COLUMN "result" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('13')  (6.1ms) COMMIT Migrating to AddLootsFields (14)  (0.2ms) BEGIN  (0.4ms) ALTER TABLE "loots" ADD COLUMN "name" text  (0.2ms) ALTER TABLE "loots" ADD COLUMN "info" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('14')  (6.2ms) COMMIT Migrating to RenameUser (15)  (0.2ms) BEGIN  (0.4ms) ALTER TABLE "events" DROP "user"  (0.2ms) ALTER TABLE "events" ADD COLUMN "username" character varying(255)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('15')  (11.7ms) COMMIT Migrating to AddHostPurpose (16)  (0.1ms) BEGIN  (0.5ms) ALTER TABLE "hosts" ADD COLUMN "purpose" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('16')  (5.9ms) COMMIT Migrating to ExpandInfo2 (17)  (0.1ms) BEGIN  (0.4ms) ALTER TABLE "events" DROP "info"  (0.2ms) ALTER TABLE "events" ADD COLUMN "info" character varying(65536)  (0.4ms) ALTER TABLE "notes" DROP "data"  (0.2ms) ALTER TABLE "notes" ADD COLUMN "data" character varying(65536)  (0.4ms) ALTER TABLE "vulns" DROP "data"  (0.4ms) ALTER TABLE "vulns" ADD COLUMN "data" character varying(65536)  (0.3ms) ALTER TABLE "hosts" DROP "info"  (0.2ms) ALTER TABLE "hosts" ADD COLUMN "info" character varying(65536)  (0.2ms) ALTER TABLE "services" DROP "info"  (0.2ms) ALTER TABLE "services" ADD COLUMN "info" character varying(65536)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('17')  (0.4ms) COMMIT Migrating to AddWorkspaceUserInfo (18)  (0.1ms) BEGIN  (6.7ms) ALTER TABLE "workspaces" ADD COLUMN "boundary" character varying(4096)  (0.5ms) ALTER TABLE "users" ADD COLUMN "fullname" character varying(255)  (0.3ms) ALTER TABLE "users" ADD COLUMN "email" character varying(255)  (0.2ms) ALTER TABLE "users" ADD COLUMN "phone" character varying(255)  (0.2ms) ALTER TABLE "users" ADD COLUMN "company" character varying(255)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('18')  (11.5ms) COMMIT Migrating to AddWorkspaceDesc (19)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "workspaces" ADD COLUMN "description" character varying(4096)  (0.2ms) ALTER TABLE "hosts" ADD COLUMN "comments" character varying(4096)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('19')  (5.8ms) COMMIT Migrating to AddUserPreferences (20)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "users" ADD COLUMN "prefs" character varying(524288)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20')  (6.0ms) COMMIT Migrating to StandardizeInfoAndData (21)  (0.2ms) BEGIN  (0.4ms) ALTER TABLE "vulns" DROP "data"  (0.2ms) ALTER TABLE "vulns" ADD COLUMN "info" character varying(65536)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('21')  (11.3ms) COMMIT Migrating to EnlargeEventInfo (22)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "events" ALTER COLUMN "info" TYPE text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('22')  (6.0ms) COMMIT Migrating to AddReportDownloadedAt (23)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "reports" ADD COLUMN "downloaded_at" timestamp  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('23')  (5.6ms) COMMIT Migrating to ConvertServiceInfoToText (24)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "services" ALTER COLUMN "info" TYPE text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('24')  (11.8ms) COMMIT Migrating to AddUserAdmin (25)  (0.2ms) BEGIN  (14.9ms) ALTER TABLE "users" ADD COLUMN "admin" boolean DEFAULT 't'  (10.7ms) CREATE TABLE "project_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('25')  (0.8ms) COMMIT Migrating to AddCredsTable (26)  (0.1ms) BEGIN  (25.4ms) 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))  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('26')  (0.6ms) COMMIT Migrating to MigrateCredData (20100819123300)  (0.2ms) BEGIN Mdm::Note Load (0.4ms) SELECT "notes".* FROM "notes" Mdm::Note Load (0.3ms) SELECT "notes".* FROM "notes"   (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100819123300')  (6.1ms) COMMIT Migrating to AddExploitedTable (20100824151500)  (0.1ms) BEGIN  (19.7ms) 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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100824151500')  (4.8ms) COMMIT Migrating to AddOwnerToWorkspaces (20100908001428)  (0.3ms) BEGIN  (0.3ms) ALTER TABLE "workspaces" ADD COLUMN "owner_id" integer  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100908001428')  (6.1ms) COMMIT Migrating to AddReportTemplates (20100911122000)  (0.1ms) BEGIN  (20.4ms) 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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100911122000')  (4.2ms) COMMIT Migrating to RequireAdminFlag (20100916151530)  (0.2ms) BEGIN SQL (0.3ms) UPDATE "users" SET "admin" = 't' WHERE "users"."admin" IS NULL  (0.4ms) ALTER TABLE "users" ALTER COLUMN "admin" TYPE boolean  (0.2ms) ALTER TABLE "users" ALTER COLUMN "admin" SET DEFAULT 't'  (0.2ms) UPDATE "users" SET "admin"='t' WHERE "admin" IS NULL  (0.1ms) ALTER TABLE "users" ALTER "admin" SET NOT NULL  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100916151530')  (11.4ms) COMMIT Migrating to AddCampaignsAndTemplates (20100916175000)  (0.2ms) BEGIN  (14.3ms) 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)   (13.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)  (2.6ms) 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)   (0.5ms) CREATE TABLE "attachments_email_templates" ("attachment_id" integer, "email_template_id" integer)  (2.5ms) 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)   (2.4ms) CREATE TABLE "web_templates" ("id" serial primary key, "name" character varying(512), "title" character varying(512), "body" character varying(524288), "campaign_id" integer)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100916175000')  (0.7ms) COMMIT Migrating to AddGenerateExeColumn (20100920012100)  (0.4ms) BEGIN  (14.6ms) ALTER TABLE "email_templates" ADD COLUMN "generate_exe" boolean DEFAULT 'f' NOT NULL  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100920012100')  (6.1ms) COMMIT Migrating to AddTemplatePrefs (20100926214000)  (0.1ms) BEGIN  (0.4ms) ALTER TABLE "email_templates" DROP "generate_exe"  (0.2ms) ALTER TABLE "email_templates" ADD COLUMN "prefs" text  (0.3ms) ALTER TABLE "web_templates" ADD COLUMN "prefs" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100926214000')  (5.9ms) COMMIT Migrating to AddWebTables (20101001000000)  (0.1ms) BEGIN  (14.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)  (8.9ms) 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)   (3.1ms) 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)  (2.3ms) 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))   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101001000000')  (0.6ms) COMMIT Migrating to AddQuery (20101002000000)  (0.3ms) BEGIN  (0.4ms) ALTER TABLE "web_forms" ADD COLUMN "query" text  (0.3ms) ALTER TABLE "web_vulns" ADD COLUMN "query" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101002000000')  (5.6ms) COMMIT Migrating to AddVulnInfo (20101007000000)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "web_vulns" ADD COLUMN "category" text  (0.3ms) ALTER TABLE "web_vulns" ADD COLUMN "confidence" text  (0.2ms) ALTER TABLE "web_vulns" ADD COLUMN "description" text  (0.3ms) ALTER TABLE "web_vulns" ADD COLUMN "blame" text  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101007000000')  (5.7ms) COMMIT Migrating to AddClientsToCampaigns (20101008111800)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "clients" ADD COLUMN "campaign_id" integer  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101008111800')  (5.6ms) COMMIT Migrating to AddCampaignAttachments (20101009023300)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "attachments" ADD COLUMN "campaign_id" integer  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101009023300')  (5.5ms) COMMIT Migrating to AddImportedCreds (20101104135100)  (0.1ms) BEGIN  (13.9ms) 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')   (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101104135100')  (5.8ms) COMMIT Migrating to FixWebTables (20101203000000)  (4.4ms) BEGIN  (0.5ms) ALTER TABLE "web_pages" ALTER COLUMN "path" TYPE text  (0.3ms) ALTER TABLE "web_pages" ALTER COLUMN "query" TYPE text  (0.3ms) ALTER TABLE "web_pages" ALTER COLUMN "cookie" TYPE text  (0.4ms) ALTER TABLE "web_pages" ALTER COLUMN "auth" TYPE text  (0.3ms) ALTER TABLE "web_pages" ALTER COLUMN "ctype" TYPE text  (0.4ms) ALTER TABLE "web_pages" ALTER COLUMN "location" TYPE text  (0.3ms) ALTER TABLE "web_pages" ALTER COLUMN "path" TYPE text  (0.4ms) ALTER TABLE "web_vulns" ALTER COLUMN "path" TYPE text  (0.3ms) ALTER TABLE "web_vulns" ALTER COLUMN "pname" TYPE text  (0.3ms) ALTER TABLE "web_pages" ADD COLUMN "request" text  (0.3ms) ALTER TABLE "web_vulns" ADD COLUMN "request" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101203000000')  (11.8ms) COMMIT Migrating to ExpandHostComment (20101203000001)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "hosts" ALTER COLUMN "comments" TYPE text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101203000001')  (6.2ms) COMMIT Migrating to AddLimitToNetworkToWorkspaces (20101206212033)  (0.1ms) BEGIN  (19.3ms) ALTER TABLE "workspaces" ADD COLUMN "limit_to_network" boolean DEFAULT 'f' NOT NULL  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101206212033')  (5.4ms) COMMIT Migrating to AddModuleUuidToTasks (20110112154300)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "tasks" ADD COLUMN "module_uuid" character varying(8)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110112154300')  (5.8ms) COMMIT Migrating to AddHostTags (20110204112800)  (0.2ms) BEGIN  (21.0ms) 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)   (0.7ms) CREATE TABLE "hosts_tags" ("host_id" integer, "tag_id" integer)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110204112800')  (4.7ms) COMMIT Migrating to AddSessionTable (20110317144932)  (0.3ms) BEGIN  (14.2ms) 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))  (7.9ms) 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)  AddSessionTable::Event Load (0.5ms) SELECT "events".* FROM "events" WHERE "events"."name" = 'session_close' AddSessionTable::Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."name" = 'session_open' AddSessionTable::Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."name" = 'session_command' AddSessionTable::Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."name" = 'session_output' AddSessionTable::Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."name" = 'session_upload' AddSessionTable::Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."name" = 'session_download'  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110317144932')  (0.5ms) COMMIT Migrating to AddLocalIdToSessionTable (20110414180600)  (0.2ms) BEGIN  (0.4ms) ALTER TABLE "sessions" ADD COLUMN "local_id" integer  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110414180600')  (6.4ms) COMMIT Migrating to AddRoutesTable (20110415175705)  (0.2ms) BEGIN  (14.3ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))   (0.4ms) ALTER TABLE "sessions" DROP "routes"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110415175705')  (11.4ms) COMMIT Migrating to ConvertBinary (20110422000000)  (0.3ms) BEGIN  (0.4ms) ALTER TABLE "web_pages" RENAME COLUMN "body" TO "body_text"  (0.2ms) ALTER TABLE "web_pages" RENAME COLUMN "request" TO "request_text"  (0.2ms) ALTER TABLE "web_vulns" RENAME COLUMN "request" TO "request_text"  (0.2ms) ALTER TABLE "web_vulns" RENAME COLUMN "proof" TO "proof_text"  (0.3ms) ALTER TABLE "web_pages" ADD COLUMN "body" bytea  (0.3ms) ALTER TABLE "web_pages" ADD COLUMN "request" bytea  (0.4ms) ALTER TABLE "web_vulns" ADD COLUMN "request" bytea  (0.3ms) ALTER TABLE "web_vulns" ADD COLUMN "proof" bytea ConvertBinary::WebPage Load (0.4ms) SELECT "web_pages".* FROM "web_pages" ConvertBinary::WebPage Load (0.2ms) SELECT "web_pages".* FROM "web_pages"  ConvertBinary::WebVuln Load (0.3ms) SELECT "web_vulns".* FROM "web_vulns" ConvertBinary::WebVuln Load (0.2ms) SELECT "web_vulns".* FROM "web_vulns"   (0.2ms) ALTER TABLE "web_pages" DROP "body_text"  (0.2ms) ALTER TABLE "web_pages" DROP "request_text"  (0.2ms) ALTER TABLE "web_vulns" DROP "request_text"  (0.2ms) ALTER TABLE "web_vulns" DROP "proof_text"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110422000000')  (0.3ms) COMMIT Migrating to AddLastSeenToSessions (20110425095900)  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "sessions" ADD COLUMN "last_seen" timestamp  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110425095900')  (6.1ms) COMMIT Migrating to TrackSuccessfulExploits (20110513143900)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "vulns" ADD COLUMN "exploited_at" timestamp TrackSuccessfulExploits::ExploitedHost Load (0.3ms) SELECT "exploited_hosts".* FROM "exploited_hosts"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110513143900')  (5.6ms) COMMIT Migrating to RenameAndPruneNessusVulns (20110517160800)  (0.1ms) BEGIN RenameAndPruneNessusVulns::Vuln Load (0.3ms) SELECT "vulns".* FROM "vulns"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110517160800')  (5.9ms) COMMIT Migrating to AddTaskIdToReportsTable (20110527000000)  (0.1ms) BEGIN  (0.4ms) ALTER TABLE "reports" ADD COLUMN "task_id" integer  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110527000000')  (5.6ms) COMMIT Migrating to AddApiKeysTable (20110527000001)  (0.1ms) BEGIN  (20.4ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110527000001')  (5.1ms) COMMIT Migrating to AddMacrosTable (20110606000001)  (0.3ms) BEGIN  (19.8ms) 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)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110606000001')  (5.2ms) COMMIT Migrating to AddSettingsToTasksTable (20110622000000)  (0.3ms) BEGIN  (0.3ms) ALTER TABLE "tasks" ADD COLUMN "settings" bytea  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110622000000')  (5.9ms) COMMIT Migrating to AddListenersTable (20110624000001)  (0.1ms) BEGIN  (13.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)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110624000001')  (5.9ms) COMMIT Migrating to AddMacroToListenersTable (20110625000001)  (5.8ms) BEGIN  (0.3ms) ALTER TABLE "listeners" ADD COLUMN "macro" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110625000001')  (6.1ms) COMMIT Migrating to AddNexposeConsolesTable (20110630000001)  (0.1ms) BEGIN  (22.9ms) 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)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110630000001')  (10.1ms) COMMIT Migrating to AddNameToNexposeConsolesTable (20110630000002)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "nexpose_consoles" ADD COLUMN "name" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110630000002')  (5.9ms) COMMIT Migrating to AddProfilesTable (20110717000001)  (0.2ms) BEGIN  (20.6ms) 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)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110717000001')  (3.0ms) COMMIT Migrating to ExpandCredPtypeColumn (20110727163801)  (0.3ms) BEGIN  (0.4ms) ALTER TABLE "creds" ALTER COLUMN "ptype" TYPE character varying(256)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110727163801')  (6.1ms) COMMIT Migrating to AddInitialIndexes (20110730000001)  (0.3ms) BEGIN  (12.4ms) CREATE INDEX "index_hosts_on_address" ON "hosts" ("address")  (6.7ms) CREATE INDEX "index_hosts_on_address6" ON "hosts" ("address6")  (0.9ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.6ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (0.7ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.7ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.9ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (1.0ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (1.1ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (1.1ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (1.0ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (1.0ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (1.2ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (1.1ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (0.8ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.7ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.7ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.7ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (0.8ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (0.7ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (0.7ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.5ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110730000001')  (0.7ms) COMMIT Migrating to PruneIndexes (20110812000001)  (0.2ms) BEGIN  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110812000001')  (5.6ms) COMMIT Migrating to ExpandNotes (20110922000000)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "notes" ALTER COLUMN "data" TYPE text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110922000000')  (11.4ms) COMMIT Migrating to AddModRefTable (20110928101300)  (0.1ms) BEGIN  (14.3ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110928101300')  (10.8ms) COMMIT Migrating to AddDisplayNameToReportsTable (20111011110000)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "reports" ADD COLUMN "name" character varying(63) AddDisplayNameToReportsTable::Report Load (0.3ms) SELECT "reports".* FROM "reports"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20111011110000')  (5.7ms) COMMIT Migrating to InetColumns (20111203000000)  (0.1ms) BEGIN  (29.0ms) ALTER TABLE "hosts" ALTER COLUMN "address" TYPE INET using address::INET  (0.3ms) ALTER TABLE "hosts" DROP "address6"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20111203000000')  (1.3ms) COMMIT Migrating to MoreInetColumns (20111204000000)  (0.2ms) BEGIN  (19.6ms) ALTER TABLE "wmap_requests" ALTER COLUMN "address" TYPE INET using address::INET  (0.3ms) ALTER TABLE "wmap_requests" DROP "address6"  (7.1ms) ALTER TABLE "wmap_targets" ALTER COLUMN "address" TYPE INET using address::INET  (0.3ms) ALTER TABLE "wmap_targets" DROP "address6"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20111204000000')  (1.0ms) COMMIT Migrating to AddScopeToHosts (20111210000000)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "hosts" ADD COLUMN "scope" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20111210000000')  (11.0ms) COMMIT Migrating to AddVirtualHostToHosts (20120126110000)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "hosts" ADD COLUMN "virtual_host" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120126110000')  (6.2ms) COMMIT Migrating to RenameWorkspaceMembers (20120411173220)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "project_members" RENAME TO "workspace_members"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120411173220')  (6.0ms) COMMIT Migrating to AddCounterCachesToHosts (20120601152442)  (0.1ms) BEGIN  (30.1ms) ALTER TABLE "hosts" ADD COLUMN "note_count" integer DEFAULT 0  (7.0ms) ALTER TABLE "hosts" ADD COLUMN "vuln_count" integer DEFAULT 0  (5.0ms) ALTER TABLE "hosts" ADD COLUMN "service_count" integer DEFAULT 0 Mdm::Host Load (0.8ms) SELECT "hosts".* FROM "hosts"   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120601152442')  (2.3ms) COMMIT Migrating to AddVulnDetails (20120625000000)  (0.3ms) BEGIN  (19.4ms) 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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000000')  (4.7ms) COMMIT Migrating to AddHostDetails (20120625000001)  (0.3ms) BEGIN  (7.3ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000001')  (15.9ms) COMMIT Migrating to ExpandDetails (20120625000002)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "vuln_details" ADD COLUMN "nx_vuln_status" text  (0.2ms) ALTER TABLE "vuln_details" ADD COLUMN "nx_proof_key" text  (0.2ms) ALTER TABLE "vuln_details" ADD COLUMN "src" character varying(255)  (0.2ms) ALTER TABLE "host_details" ADD COLUMN "src" character varying(255)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000002')  (6.0ms) COMMIT Migrating to ExpandDetails2 (20120625000003)  (0.1ms) BEGIN  (12.8ms) ALTER TABLE "host_details" ADD COLUMN "nx_site_name" character varying(255)  (0.3ms) ALTER TABLE "host_details" ADD COLUMN "nx_site_importance" character varying(255)  (0.3ms) ALTER TABLE "host_details" ADD COLUMN "nx_scan_template" character varying(255)  (0.3ms) ALTER TABLE "host_details" ADD COLUMN "nx_risk_score" float  (0.4ms) ALTER TABLE "vuln_details" ADD COLUMN "nx_scan_id" integer  (0.3ms) ALTER TABLE "vuln_details" ADD COLUMN "nx_vulnerable_since" timestamp  (0.2ms) ALTER TABLE "vuln_details" ADD COLUMN "nx_pci_compliance_status" character varying(255)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000003')  (5.9ms) COMMIT Migrating to AddVulnAttempts (20120625000004)  (0.2ms) BEGIN  (20.3ms) 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)  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000004')  (4.7ms) COMMIT Migrating to AddVulnAndHostCounterCaches (20120625000005)  (0.3ms) BEGIN  (50.8ms) ALTER TABLE "hosts" ADD COLUMN "host_detail_count" integer DEFAULT 0  (2.9ms) ALTER TABLE "vulns" ADD COLUMN "vuln_detail_count" integer DEFAULT 0  (3.4ms) ALTER TABLE "vulns" ADD COLUMN "vuln_attempt_count" integer DEFAULT 0  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000005')  (1.9ms) COMMIT Migrating to AddModuleDetails (20120625000006)  (0.2ms) BEGIN  (13.8ms) 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)  (6.5ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (1.1ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.8ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.8ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (2.5ms) CREATE TABLE "module_authors" ("id" serial primary key, "module_detail_id" integer, "name" text, "email" text)   (0.7ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("module_detail_id")  (2.7ms) CREATE TABLE "module_mixins" ("id" serial primary key, "module_detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("module_detail_id")  (2.9ms) CREATE TABLE "module_targets" ("id" serial primary key, "module_detail_id" integer, "index" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("module_detail_id")  (2.9ms) CREATE TABLE "module_actions" ("id" serial primary key, "module_detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("module_detail_id")  (3.4ms) CREATE TABLE "module_refs" ("id" serial primary key, "module_detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("module_detail_id")  (1.0ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (3.5ms) CREATE TABLE "module_archs" ("id" serial primary key, "module_detail_id" integer, "name" text)  (1.7ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("module_detail_id")  (4.2ms) CREATE TABLE "module_platforms" ("id" serial primary key, "module_detail_id" integer, "name" text)  (1.3ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("module_detail_id")  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000006')  (1.2ms) COMMIT Migrating to AddExploitAttempts (20120625000007)  (0.6ms) BEGIN  (25.8ms) 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))   (5.7ms) ALTER TABLE "hosts" ADD COLUMN "exploit_attempt_count" integer DEFAULT 0  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000007')  (1.8ms) COMMIT Migrating to AddFailMessage (20120625000008)  (0.4ms) BEGIN  (0.5ms) ALTER TABLE "vuln_attempts" ADD COLUMN "fail_detail" text  (0.4ms) ALTER TABLE "exploit_attempts" ADD COLUMN "fail_detail" text  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000008')  (6.0ms) COMMIT Migrating to AddOwnerAndPayloadToWebVulns (20120718202805)  (0.2ms) BEGIN  (0.4ms) ALTER TABLE "web_vulns" ADD COLUMN "owner" character varying(255)  (0.2ms) ALTER TABLE "web_vulns" ADD COLUMN "payload" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120718202805')  (6.1ms) COMMIT Migrating to ChangeRequiredColumnsToNullFalseInWebVulns (20130228214900)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "web_vulns" ALTER "category" SET NOT NULL  (0.2ms) ALTER TABLE "web_vulns" ALTER "confidence" SET NOT NULL  (0.2ms) ALTER TABLE "web_vulns" ALTER "method" SET NOT NULL  (0.2ms) ALTER TABLE "web_vulns" ALTER "name" SET NOT NULL  (0.2ms) ALTER TABLE "web_vulns" ALTER "params" SET NOT NULL  (0.2ms) ALTER TABLE "web_vulns" ALTER "path" SET NOT NULL  (0.2ms) ALTER TABLE "web_vulns" ALTER "pname" SET NOT NULL  (0.2ms) ALTER TABLE "web_vulns" ALTER "proof" SET NOT NULL  (0.2ms) ALTER TABLE "web_vulns" ALTER "risk" SET NOT NULL  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130228214900')  (11.5ms) COMMIT Migrating to ChangeForeignKeyInModuleActions (20130412154159)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "module_actions" RENAME COLUMN "module_detail_id" TO "detail_id"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130412154159')  (5.5ms) COMMIT Migrating to ChangeForeignKeyInModuleArchs (20130412171844)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "module_archs" RENAME COLUMN "module_detail_id" TO "detail_id"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130412171844')  (5.8ms) COMMIT Migrating to ChangeForeignKeyInModuleAuthors (20130412173121)  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "module_authors" RENAME COLUMN "module_detail_id" TO "detail_id"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130412173121')  (11.6ms) COMMIT Migrating to ChangeForeignKeyInModuleMixins (20130412173640)  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "module_mixins" RENAME COLUMN "module_detail_id" TO "detail_id"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130412173640')  (6.0ms) COMMIT Migrating to ChangeForeignKeyInModulePlatforms (20130412174254)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "module_platforms" RENAME COLUMN "module_detail_id" TO "detail_id"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130412174254')  (6.0ms) COMMIT Migrating to ChangeForeignKeyInModuleRefs (20130412174719)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "module_refs" RENAME COLUMN "module_detail_id" TO "detail_id"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130412174719')  (12.0ms) COMMIT Migrating to ChangeForeignKeyInModuleTargets (20130412175040)  (0.2ms) BEGIN  (0.2ms) ALTER TABLE "module_targets" RENAME COLUMN "module_detail_id" TO "detail_id"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130412175040')  (5.8ms) COMMIT Migrating to AddCredsCounterCache (20130423211152)  (0.2ms) BEGIN  (28.3ms) ALTER TABLE "hosts" ADD COLUMN "cred_count" integer DEFAULT 0 Mdm::Cred Load (0.3ms) SELECT "creds".* FROM "creds"   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130423211152')  (1.1ms) COMMIT Migrating to ChangeRequiredColumnsToNullFalseInHosts (20130430151353)  (0.2ms) BEGIN  (0.5ms) ALTER TABLE "hosts" ALTER "address" SET NOT NULL  (0.2ms) ALTER TABLE "hosts" ALTER "workspace_id" SET NOT NULL  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130430151353')  (11.3ms) COMMIT Migrating to EnforceAddressUniquenessInWorkspaceInHosts (20130430162145)  (0.2ms) BEGIN  (0.9ms) SELECT workspace_id, address, count_addr FROM ( SELECT workspace_id, address, COUNT(address) AS count_addr FROM hosts GROUP BY address, workspace_id ) X WHERE count_addr > 1  (0.2ms) DROP INDEX "index_hosts_on_address"  (6.5ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130430162145')  (11.4ms) COMMIT Migrating to RemoveCampaigns (20130510021637)  (0.2ms) BEGIN  (1.0ms) DROP TABLE "attachments"  (0.2ms) DROP TABLE "attachments_email_templates"  (0.7ms) DROP TABLE "email_addresses"  (0.7ms) DROP TABLE "email_templates"  (0.7ms) DROP TABLE "web_templates"  (0.7ms) DROP TABLE "campaigns"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130510021637')  (8.0ms) COMMIT Migrating to ChangeWebVulnsConfidenceToInteger (20130515164311)  (0.3ms) BEGIN  (26.8ms) ALTER TABLE web_vulns ALTER COLUMN confidence TYPE integer USING confidence::integer  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130515164311')  (0.8ms) COMMIT Migrating to ValidMdmWebVulnParams (20130515172727)  (0.1ms) BEGIN Mdm::WebVuln Load (0.5ms) SELECT "web_vulns".* FROM "web_vulns" ORDER BY "web_vulns"."id" ASC LIMIT 1000  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130515172727')  (6.2ms) COMMIT Migrating to MakingVulnsRefsARealArModel (20130516204810)  (0.2ms) BEGIN  (7.8ms) ALTER TABLE "vulns_refs" ADD COLUMN "id" serial primary key  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130516204810')  (6.5ms) COMMIT Migrating to CreateTaskCreds (20130522001343)  (11.3ms) BEGIN  (7.6ms) 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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130522001343')  (6.2ms) COMMIT Migrating to CreateTaskHosts (20130522032517)  (33.2ms) BEGIN  (13.6ms) 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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130522032517')  (6.1ms) COMMIT Migrating to CreateTaskServices (20130522041110)  (5.0ms) BEGIN  (7.7ms) 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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130522041110')  (11.2ms) COMMIT Migrating to RemoveCampaignIdFromClients (20130525015035)  (4.9ms) BEGIN  (0.4ms) ALTER TABLE "clients" DROP "campaign_id"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130525015035')  (6.1ms) COMMIT Migrating to DropTableImportedCreds (20130525212420)  (0.2ms) BEGIN  (0.9ms) DROP TABLE "imported_creds"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130525212420')  (6.2ms) COMMIT Migrating to MakingHostTagsARealArModel (20130531144949)  (0.2ms) BEGIN  (13.8ms) ALTER TABLE "hosts_tags" ADD COLUMN "id" serial primary key  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130531144949')  (6.5ms) COMMIT Migrating to CreateTaskSessions (20130604145732)  (4.5ms) BEGIN  (7.4ms) 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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130604145732')  (11.7ms) COMMIT Migrating to RemovePnameValidation (20130717150737)  (4.9ms) BEGIN  (0.4ms) ALTER TABLE "web_vulns" ALTER COLUMN "pname" TYPE text  (0.2ms) ALTER TABLE "web_vulns" ALTER "pname" DROP NOT NULL  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130717150737')  (6.0ms) COMMIT Migrating to CreateMetasploitCredentialPublics (20140331173835)  (0.1ms) BEGIN  (13.4ms) 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)  (6.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140331173835')  (4.6ms) COMMIT Migrating to CreateMetasploitCredentialPrivates (20140407212345)  (0.2ms) BEGIN  (19.5ms) 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)   (5.4ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140407212345')  (0.4ms) COMMIT Migrating to CreateMetasploitCredentialRealms (20140410132401)  (0.2ms) BEGIN  (20.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)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140410132401')  (5.0ms) COMMIT Migrating to UniqueMetasploitCredentialRealms (20140410161611)  (0.3ms) BEGIN  (6.5ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140410161611')  (11.4ms) COMMIT Migrating to CreateMetasploitCredentialOriginManuals (20140410191213)  (0.2ms) BEGIN  (7.3ms) 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)  (6.6ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140410191213')  (10.8ms) COMMIT Migrating to CreateMetasploitCredentialOriginImports (20140410205410)  (0.3ms) BEGIN  (14.6ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (11.0ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140410205410')  (0.5ms) COMMIT Migrating to CreateMetasploitCredentialOriginSessions (20140411142102)  (0.2ms) BEGIN  (14.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)  (32.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140411142102')  (0.4ms) COMMIT Migrating to CreateMetasploitCredentialOriginServices (20140411205325)  (0.2ms) BEGIN  (14.1ms) 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)   (11.3ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140411205325')  (0.4ms) COMMIT Migrating to CreateMetasploitCredentialCores (20140414192550)  (0.2ms) BEGIN  (13.0ms) 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)  (6.4ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (5.2ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140414192550')  (0.4ms) COMMIT Migrating to CreateMetasploitCredentialLogins (20140417140933)  (0.3ms) BEGIN  (14.2ms) 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)   (6.3ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (3.3ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140417140933')  (0.4ms) COMMIT Migrating to AddLoginsCounterCacheToCores (20140520140817)  (0.2ms) BEGIN  (26.2ms) ALTER TABLE "metasploit_credential_cores" ADD COLUMN "logins_count" integer DEFAULT 0 Metasploit::Credential::Core Load (0.6ms) SELECT "metasploit_credential_cores".* FROM "metasploit_credential_cores"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140520140817')  (1.2ms) COMMIT Migrating to AddJtrFormatToMetasploitCredentialPrivates (20140603163708)  (0.2ms) BEGIN  (0.4ms) ALTER TABLE "metasploit_credential_privates" ADD COLUMN "jtr_format" character varying(255)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140603163708')  (5.9ms) COMMIT Migrating to CreateMetasploitCredentialOriginCrackedPasswords (20140605173747)  (0.1ms) BEGIN  (8.2ms) 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)  (12.5ms) CREATE INDEX "originating_credential_cores" ON "metasploit_credential_origin_cracked_passwords" ("metasploit_credential_core_id")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140605173747')  (4.7ms) COMMIT  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" Connecting to database specified by database.yml  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (116.4ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (235.1ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.6ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.1ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (19.4ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.9ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (3.1ms) 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), "fail_detail" text)  (2.8ms) 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)   (2.7ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.4ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.2ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (1.1ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.9ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.1ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (1.0ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.0ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (4.3ms) 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, "macro" text)   (2.9ms) 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, "content_type" character varying(255), "name" text, "info" text)  (3.0ms) 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)   (2.4ms) 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, "logins_count" integer DEFAULT 0)  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (1.1ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.7ms) 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)  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.1ms) 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)   (0.7ms) CREATE INDEX "originating_credential_cores" ON "metasploit_credential_origin_cracked_passwords" ("metasploit_credential_core_id")  (2.8ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.7ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (2.0ms) 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)   (1.0ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.8ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (3.2ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (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, "jtr_format" character varying(255))   (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.8ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.5ms) 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)   (1.1ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (7.4ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (3.3ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.5ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (7.6ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (1.1ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (3.1ms) 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)  (0.9ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.8ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.8ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.9ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (3.2ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.8ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (3.7ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (1.2ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (1.1ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.7ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (1.0ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.2ms) 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, "name" text)  (2.9ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.9ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.7ms) 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)   (2.8ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.9ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (3.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)  (3.0ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (3.3ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (3.2ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (1.0ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.9ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.9ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.9ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (3.3ms) 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)  (3.5ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (23.2ms) 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)  (2.4ms) 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)   (2.0ms) 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)  (2.1ms) 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)   (2.0ms) 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)  (4.1ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (3.7ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (3.2ms) 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, "fail_detail" text)   (2.9ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (3.1ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.8ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (2.1ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (3.2ms) 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, "query" text)  (1.3ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (3.0ms) 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, "headers" text, "body" bytea, "request" bytea)  (0.9ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (1.0ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.9ms) 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)   (0.8ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.8ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.8ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.2ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.9ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.8ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.9ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.2ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (3.2ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (1.0ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (4.1ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140605173747')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140520140817')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140603163708')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (5.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (180.0ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (343.2ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (17.1ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.0ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (20.6ms) 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(256), "source_id" integer, "source_type" character varying(255))  (3.2ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.9ms) 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), "fail_detail" text)  (2.8ms) 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)   (3.1ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.4ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (2.0ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (1.0ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.8ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (2.7ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.9ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (1.0ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.2ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (5.1ms) 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, "macro" text)   (4.6ms) 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, "content_type" character varying(255), "name" text, "info" text)  (3.1ms) 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)   (2.2ms) 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, "logins_count" integer DEFAULT 0)  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (1.4ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.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)  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.1ms) 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)   (0.7ms) CREATE INDEX "originating_credential_cores" ON "metasploit_credential_origin_cracked_passwords" ("metasploit_credential_core_id")  (2.8ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.7ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (3.0ms) 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)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (3.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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (3.1ms) 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)   (1.4ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (20.0ms) 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, "jtr_format" character varying(255))   (1.3ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (2.0ms) 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)   (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.9ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.8ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.8ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (4.6ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (4.9ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.9ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (3.1ms) 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)  (0.9ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.9ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.7ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (1.0ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (3.2ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.9ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.8ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.9ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.8ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.1ms) 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, "name" text)  (3.0ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.9ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.7ms) 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)   (2.8ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.8ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (3.0ms) 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)  (2.9ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.7ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.8ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (1.0ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.9ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.9ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.8ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (3.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)  (3.1ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (3.2ms) 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)  (4.3ms) 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)   (2.0ms) 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)  (2.2ms) 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)   (1.9ms) 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)  (3.1ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (2.9ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (2.9ms) 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, "fail_detail" text)   (3.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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (3.4ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.8ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (2.0ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.9ms) 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, "query" text)  (0.9ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (3.2ms) 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, "headers" text, "body" bytea, "request" bytea)  (0.9ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.9ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (3.0ms) 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)   (0.8ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.8ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.8ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.3ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.9ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.8ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.8ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (2.9ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (3.3ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (2.9ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140605173747')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140520140817')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140603163708')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (8.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (12.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateTables (0)  (0.1ms) BEGIN  (25.4ms) 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))   (0.8ms) CREATE UNIQUE INDEX "index_hosts_on_address" ON "hosts" ("address")  (2.6ms) 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))   (2.3ms) 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))  (2.4ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created" timestamp, "name" character varying(255), "data" text)   (2.5ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created" timestamp, "name" character varying(512))  (0.5ms) CREATE TABLE "vulns_refs" ("ref_id" integer, "vuln_id" integer)   (2.4ms) CREATE TABLE "notes" ("id" serial primary key, "host_id" integer, "created" timestamp, "ntype" character varying(512), "data" text)  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('0')  (0.8ms) COMMIT Migrating to AddWmapTables (1)  (0.4ms) BEGIN  (14.7ms) 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)  (13.9ms) 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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('1')  (0.5ms) COMMIT Migrating to AddWorkspaces (2)  (0.2ms) BEGIN  (7.7ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (12.1ms) ALTER TABLE "hosts" ADD COLUMN "workspace_id" integer  (0.3ms) DROP INDEX "index_hosts_on_address"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('2')  (5.8ms) COMMIT Migrating to MoveNotes (3)  (0.2ms) BEGIN  (12.3ms) ALTER TABLE "notes" DROP "host_id"  (26.4ms) ALTER TABLE "notes" ADD COLUMN "workspace_id" integer DEFAULT 1 NOT NULL  (0.3ms) ALTER TABLE "notes" ADD COLUMN "service_id" integer  (0.2ms) ALTER TABLE "notes" ADD COLUMN "host_id" integer  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('3')  (0.8ms) COMMIT Migrating to AddEventsTable (4)  (0.1ms) BEGIN  (14.3ms) 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))  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('4')  (6.4ms) COMMIT Migrating to ExpandInfo (5)  (5.0ms) BEGIN  (0.5ms) ALTER TABLE "events" DROP "info"  (0.2ms) ALTER TABLE "events" ADD COLUMN "info" character varying(4096)  (0.3ms) ALTER TABLE "notes" DROP "data"  (0.2ms) ALTER TABLE "notes" ADD COLUMN "data" character varying(4096)  (0.2ms) ALTER TABLE "vulns" DROP "data"  (0.2ms) ALTER TABLE "vulns" ADD COLUMN "data" character varying(4096)  (0.2ms) ALTER TABLE "hosts" DROP "info"  (0.2ms) ALTER TABLE "hosts" ADD COLUMN "info" character varying(4096)  (0.2ms) ALTER TABLE "services" DROP "info"  (0.2ms) ALTER TABLE "services" ADD COLUMN "info" character varying(4096)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('5')  (10.9ms) COMMIT Migrating to AddTimestamps (6)  (0.1ms) BEGIN  (6.4ms) ALTER TABLE "clients" RENAME COLUMN "created" TO "created_at"  (0.3ms) ALTER TABLE "hosts" RENAME COLUMN "created" TO "created_at"  (0.2ms) ALTER TABLE "notes" RENAME COLUMN "created" TO "created_at"  (0.2ms) ALTER TABLE "refs" RENAME COLUMN "created" TO "created_at"  (0.2ms) ALTER TABLE "services" RENAME COLUMN "created" TO "created_at"  (0.2ms) ALTER TABLE "vulns" RENAME COLUMN "created" TO "created_at"  (0.2ms) ALTER TABLE "wmap_requests" RENAME COLUMN "created" TO "created_at"  (0.2ms) ALTER TABLE "wmap_targets" ADD COLUMN "created_at" timestamp  (0.2ms) ALTER TABLE "clients" ADD COLUMN "updated_at" timestamp  (0.3ms) ALTER TABLE "events" ADD COLUMN "updated_at" timestamp  (0.2ms) ALTER TABLE "hosts" ADD COLUMN "updated_at" timestamp  (0.2ms) ALTER TABLE "notes" ADD COLUMN "updated_at" timestamp  (0.2ms) ALTER TABLE "refs" ADD COLUMN "updated_at" timestamp  (0.2ms) ALTER TABLE "services" ADD COLUMN "updated_at" timestamp  (0.2ms) ALTER TABLE "vulns" ADD COLUMN "updated_at" timestamp  (0.2ms) ALTER TABLE "wmap_requests" ADD COLUMN "updated_at" timestamp  (0.2ms) ALTER TABLE "wmap_targets" ADD COLUMN "updated_at" timestamp  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('6')  (6.3ms) COMMIT Migrating to AddLoots (7)  (0.2ms) BEGIN  (14.5ms) 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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('7')  (5.8ms) COMMIT Migrating to CreateUsers (8)  (4.7ms) BEGIN  (19.3ms) 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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('8')  (3.9ms) COMMIT Migrating to AddLootsCtype (9)  (0.3ms) BEGIN  (0.3ms) ALTER TABLE "loots" ADD COLUMN "content_type" character varying(255)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('9')  (6.1ms) COMMIT Migrating to AddAlertFields (10)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "notes" ADD COLUMN "critical" boolean  (0.2ms) ALTER TABLE "notes" ADD COLUMN "seen" boolean  (0.2ms) ALTER TABLE "events" ADD COLUMN "critical" boolean  (0.2ms) ALTER TABLE "events" ADD COLUMN "seen" boolean  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('10')  (6.0ms) COMMIT Migrating to AddReports (11)  (0.3ms) BEGIN  (14.3ms) 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)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('11')  (5.6ms) COMMIT Migrating to AddTasks (12)  (5.0ms) BEGIN  (14.8ms) 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)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('12')  (6.4ms) COMMIT Migrating to AddTasksResult (13)  (4.9ms) BEGIN  (0.3ms) ALTER TABLE "tasks" ADD COLUMN "result" text  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('13')  (6.1ms) COMMIT Migrating to AddLootsFields (14)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "loots" ADD COLUMN "name" text  (0.2ms) ALTER TABLE "loots" ADD COLUMN "info" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('14')  (6.2ms) COMMIT Migrating to RenameUser (15)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "events" DROP "user"  (0.2ms) ALTER TABLE "events" ADD COLUMN "username" character varying(255)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('15')  (6.0ms) COMMIT Migrating to AddHostPurpose (16)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "hosts" ADD COLUMN "purpose" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('16')  (6.1ms) COMMIT Migrating to ExpandInfo2 (17)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "events" DROP "info"  (0.2ms) ALTER TABLE "events" ADD COLUMN "info" character varying(65536)  (0.3ms) ALTER TABLE "notes" DROP "data"  (0.2ms) ALTER TABLE "notes" ADD COLUMN "data" character varying(65536)  (0.2ms) ALTER TABLE "vulns" DROP "data"  (0.2ms) ALTER TABLE "vulns" ADD COLUMN "data" character varying(65536)  (0.2ms) ALTER TABLE "hosts" DROP "info"  (0.2ms) ALTER TABLE "hosts" ADD COLUMN "info" character varying(65536)  (0.2ms) ALTER TABLE "services" DROP "info"  (0.2ms) ALTER TABLE "services" ADD COLUMN "info" character varying(65536)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('17')  (6.0ms) COMMIT Migrating to AddWorkspaceUserInfo (18)  (0.2ms) BEGIN  (7.2ms) ALTER TABLE "workspaces" ADD COLUMN "boundary" character varying(4096)  (0.4ms) ALTER TABLE "users" ADD COLUMN "fullname" character varying(255)  (0.2ms) ALTER TABLE "users" ADD COLUMN "email" character varying(255)  (0.2ms) ALTER TABLE "users" ADD COLUMN "phone" character varying(255)  (0.2ms) ALTER TABLE "users" ADD COLUMN "company" character varying(255)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('18')  (5.9ms) COMMIT Migrating to AddWorkspaceDesc (19)  (0.3ms) BEGIN  (0.4ms) ALTER TABLE "workspaces" ADD COLUMN "description" character varying(4096)  (0.2ms) ALTER TABLE "hosts" ADD COLUMN "comments" character varying(4096)  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('19')  (6.1ms) COMMIT Migrating to AddUserPreferences (20)  (0.1ms) BEGIN  (0.4ms) ALTER TABLE "users" ADD COLUMN "prefs" character varying(524288)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20')  (6.3ms) COMMIT Migrating to StandardizeInfoAndData (21)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "vulns" DROP "data"  (0.2ms) ALTER TABLE "vulns" ADD COLUMN "info" character varying(65536)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('21')  (6.3ms) COMMIT Migrating to EnlargeEventInfo (22)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "events" ALTER COLUMN "info" TYPE text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('22')  (5.6ms) COMMIT Migrating to AddReportDownloadedAt (23)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "reports" ADD COLUMN "downloaded_at" timestamp  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('23')  (5.7ms) COMMIT Migrating to ConvertServiceInfoToText (24)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "services" ALTER COLUMN "info" TYPE text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('24')  (6.2ms) COMMIT Migrating to AddUserAdmin (25)  (0.3ms) BEGIN  (15.2ms) ALTER TABLE "users" ADD COLUMN "admin" boolean DEFAULT 't'  (0.7ms) CREATE TABLE "project_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('25')  (6.0ms) COMMIT Migrating to AddCredsTable (26)  (0.1ms) BEGIN  (20.6ms) 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))  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('26')  (5.3ms) COMMIT Migrating to MigrateCredData (20100819123300)  (0.3ms) BEGIN Mdm::Note Load (0.3ms) SELECT "notes".* FROM "notes" Mdm::Note Load (0.2ms) SELECT "notes".* FROM "notes"   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100819123300')  (6.1ms) COMMIT Migrating to AddExploitedTable (20100824151500)  (0.1ms) BEGIN  (14.8ms) 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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100824151500')  (6.0ms) COMMIT Migrating to AddOwnerToWorkspaces (20100908001428)  (4.6ms) BEGIN  (0.3ms) ALTER TABLE "workspaces" ADD COLUMN "owner_id" integer  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100908001428')  (5.7ms) COMMIT Migrating to AddReportTemplates (20100911122000)  (0.2ms) BEGIN  (14.9ms) 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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100911122000')  (6.1ms) COMMIT Migrating to RequireAdminFlag (20100916151530)  (4.9ms) BEGIN SQL (0.3ms) UPDATE "users" SET "admin" = 't' WHERE "users"."admin" IS NULL  (0.4ms) ALTER TABLE "users" ALTER COLUMN "admin" TYPE boolean  (0.2ms) ALTER TABLE "users" ALTER COLUMN "admin" SET DEFAULT 't'  (0.2ms) UPDATE "users" SET "admin"='t' WHERE "admin" IS NULL  (0.1ms) ALTER TABLE "users" ALTER "admin" SET NOT NULL  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100916151530')  (6.1ms) COMMIT Migrating to AddCampaignsAndTemplates (20100916175000)  (0.1ms) BEGIN  (14.1ms) 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)   (13.9ms) CREATE TABLE "email_templates" ("id" serial primary key, "name" character varying(512), "subject" character varying(1024), "body" text, "parent_id" integer, "campaign_id" integer)  (2.9ms) 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)   (0.5ms) CREATE TABLE "attachments_email_templates" ("attachment_id" integer, "email_template_id" integer)  (2.5ms) 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)   (3.1ms) CREATE TABLE "web_templates" ("id" serial primary key, "name" character varying(512), "title" character varying(512), "body" character varying(524288), "campaign_id" integer)  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100916175000')  (0.7ms) COMMIT Migrating to AddGenerateExeColumn (20100920012100)  (0.4ms) BEGIN  (14.0ms) ALTER TABLE "email_templates" ADD COLUMN "generate_exe" boolean DEFAULT 'f' NOT NULL  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100920012100')  (6.3ms) COMMIT Migrating to AddTemplatePrefs (20100926214000)  (0.2ms) BEGIN  (0.4ms) ALTER TABLE "email_templates" DROP "generate_exe"  (0.2ms) ALTER TABLE "email_templates" ADD COLUMN "prefs" text  (0.2ms) ALTER TABLE "web_templates" ADD COLUMN "prefs" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100926214000')  (6.0ms) COMMIT Migrating to AddWebTables (20101001000000)  (0.2ms) BEGIN  (15.0ms) 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)  (9.4ms) 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)   (2.7ms) 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)  (2.7ms) 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))   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101001000000')  (0.7ms) COMMIT Migrating to AddQuery (20101002000000)  (0.3ms) BEGIN  (0.3ms) ALTER TABLE "web_forms" ADD COLUMN "query" text  (0.2ms) ALTER TABLE "web_vulns" ADD COLUMN "query" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101002000000')  (8.3ms) COMMIT Migrating to AddVulnInfo (20101007000000)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "web_vulns" ADD COLUMN "category" text  (0.2ms) ALTER TABLE "web_vulns" ADD COLUMN "confidence" text  (0.2ms) ALTER TABLE "web_vulns" ADD COLUMN "description" text  (0.2ms) ALTER TABLE "web_vulns" ADD COLUMN "blame" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101007000000')  (6.4ms) COMMIT Migrating to AddClientsToCampaigns (20101008111800)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "clients" ADD COLUMN "campaign_id" integer  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101008111800')  (6.0ms) COMMIT Migrating to AddCampaignAttachments (20101009023300)  (0.3ms) BEGIN  (0.3ms) ALTER TABLE "attachments" ADD COLUMN "campaign_id" integer  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101009023300')  (6.1ms) COMMIT Migrating to AddImportedCreds (20101104135100)  (0.2ms) BEGIN  (14.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')   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101104135100')  (5.9ms) COMMIT Migrating to FixWebTables (20101203000000)  (4.6ms) BEGIN  (0.4ms) ALTER TABLE "web_pages" ALTER COLUMN "path" TYPE text  (0.2ms) ALTER TABLE "web_pages" ALTER COLUMN "query" TYPE text  (0.2ms) ALTER TABLE "web_pages" ALTER COLUMN "cookie" TYPE text  (0.2ms) ALTER TABLE "web_pages" ALTER COLUMN "auth" TYPE text  (0.2ms) ALTER TABLE "web_pages" ALTER COLUMN "ctype" TYPE text  (0.2ms) ALTER TABLE "web_pages" ALTER COLUMN "location" TYPE text  (0.2ms) ALTER TABLE "web_pages" ALTER COLUMN "path" TYPE text  (0.2ms) ALTER TABLE "web_vulns" ALTER COLUMN "path" TYPE text  (0.2ms) ALTER TABLE "web_vulns" ALTER COLUMN "pname" TYPE text  (0.2ms) ALTER TABLE "web_pages" ADD COLUMN "request" text  (0.2ms) ALTER TABLE "web_vulns" ADD COLUMN "request" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101203000000')  (5.7ms) COMMIT Migrating to ExpandHostComment (20101203000001)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "hosts" ALTER COLUMN "comments" TYPE text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101203000001')  (6.2ms) COMMIT Migrating to AddLimitToNetworkToWorkspaces (20101206212033)  (0.2ms) BEGIN  (14.9ms) ALTER TABLE "workspaces" ADD COLUMN "limit_to_network" boolean DEFAULT 'f' NOT NULL  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101206212033')  (6.8ms) COMMIT Migrating to AddModuleUuidToTasks (20110112154300)  (0.2ms) BEGIN  (0.4ms) ALTER TABLE "tasks" ADD COLUMN "module_uuid" character varying(8)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110112154300')  (5.8ms) COMMIT Migrating to AddHostTags (20110204112800)  (0.4ms) BEGIN  (14.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)   (0.7ms) CREATE TABLE "hosts_tags" ("host_id" integer, "tag_id" integer)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110204112800')  (5.9ms) COMMIT Migrating to AddSessionTable (20110317144932)  (4.4ms) BEGIN  (14.1ms) 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))  (9.6ms) 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)  AddSessionTable::Event Load (0.5ms) SELECT "events".* FROM "events" WHERE "events"."name" = 'session_close' AddSessionTable::Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."name" = 'session_open' AddSessionTable::Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."name" = 'session_command' AddSessionTable::Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."name" = 'session_output' AddSessionTable::Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."name" = 'session_upload' AddSessionTable::Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."name" = 'session_download'  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110317144932')  (0.6ms) COMMIT Migrating to AddLocalIdToSessionTable (20110414180600)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "sessions" ADD COLUMN "local_id" integer  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110414180600')  (6.2ms) COMMIT Migrating to AddRoutesTable (20110415175705)  (0.2ms) BEGIN  (14.3ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))   (0.3ms) ALTER TABLE "sessions" DROP "routes"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110415175705')  (6.4ms) COMMIT Migrating to ConvertBinary (20110422000000)  (4.7ms) BEGIN  (0.3ms) ALTER TABLE "web_pages" RENAME COLUMN "body" TO "body_text"  (0.2ms) ALTER TABLE "web_pages" RENAME COLUMN "request" TO "request_text"  (0.2ms) ALTER TABLE "web_vulns" RENAME COLUMN "request" TO "request_text"  (0.2ms) ALTER TABLE "web_vulns" RENAME COLUMN "proof" TO "proof_text"  (0.2ms) ALTER TABLE "web_pages" ADD COLUMN "body" bytea  (0.2ms) ALTER TABLE "web_pages" ADD COLUMN "request" bytea  (0.2ms) ALTER TABLE "web_vulns" ADD COLUMN "request" bytea  (0.2ms) ALTER TABLE "web_vulns" ADD COLUMN "proof" bytea ConvertBinary::WebPage Load (0.3ms) SELECT "web_pages".* FROM "web_pages" ConvertBinary::WebPage Load (0.2ms) SELECT "web_pages".* FROM "web_pages"  ConvertBinary::WebVuln Load (0.3ms) SELECT "web_vulns".* FROM "web_vulns" ConvertBinary::WebVuln Load (0.2ms) SELECT "web_vulns".* FROM "web_vulns"   (0.2ms) ALTER TABLE "web_pages" DROP "body_text"  (0.2ms) ALTER TABLE "web_pages" DROP "request_text"  (0.2ms) ALTER TABLE "web_vulns" DROP "request_text"  (0.2ms) ALTER TABLE "web_vulns" DROP "proof_text"  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110422000000')  (6.3ms) COMMIT Migrating to AddLastSeenToSessions (20110425095900)  (0.3ms) BEGIN  (0.4ms) ALTER TABLE "sessions" ADD COLUMN "last_seen" timestamp  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110425095900')  (6.2ms) COMMIT Migrating to TrackSuccessfulExploits (20110513143900)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "vulns" ADD COLUMN "exploited_at" timestamp TrackSuccessfulExploits::ExploitedHost Load (0.3ms) SELECT "exploited_hosts".* FROM "exploited_hosts"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110513143900')  (6.2ms) COMMIT Migrating to RenameAndPruneNessusVulns (20110517160800)  (0.3ms) BEGIN RenameAndPruneNessusVulns::Vuln Load (0.3ms) SELECT "vulns".* FROM "vulns"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110517160800')  (6.2ms) COMMIT Migrating to AddTaskIdToReportsTable (20110527000000)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "reports" ADD COLUMN "task_id" integer  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110527000000')  (5.9ms) COMMIT Migrating to AddApiKeysTable (20110527000001)  (0.2ms) BEGIN  (14.8ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110527000001')  (5.9ms) COMMIT Migrating to AddMacrosTable (20110606000001)  (4.5ms) BEGIN  (14.1ms) 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)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110606000001')  (6.4ms) COMMIT Migrating to AddSettingsToTasksTable (20110622000000)  (4.4ms) BEGIN  (0.4ms) ALTER TABLE "tasks" ADD COLUMN "settings" bytea  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110622000000')  (6.1ms) COMMIT Migrating to AddListenersTable (20110624000001)  (0.2ms) BEGIN  (14.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)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110624000001')  (6.2ms) COMMIT Migrating to AddMacroToListenersTable (20110625000001)  (4.9ms) BEGIN  (0.4ms) ALTER TABLE "listeners" ADD COLUMN "macro" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110625000001')  (6.3ms) COMMIT Migrating to AddNexposeConsolesTable (20110630000001)  (0.3ms) BEGIN  (15.1ms) 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)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110630000001')  (6.2ms) COMMIT Migrating to AddNameToNexposeConsolesTable (20110630000002)  (4.9ms) BEGIN  (0.3ms) ALTER TABLE "nexpose_consoles" ADD COLUMN "name" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110630000002')  (6.2ms) COMMIT Migrating to AddProfilesTable (20110717000001)  (0.3ms) BEGIN  (14.1ms) 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)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110717000001')  (5.8ms) COMMIT Migrating to ExpandCredPtypeColumn (20110727163801)  (4.8ms) BEGIN  (0.4ms) ALTER TABLE "creds" ALTER COLUMN "ptype" TYPE character varying(256)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110727163801')  (6.1ms) COMMIT Migrating to AddInitialIndexes (20110730000001)  (0.2ms) BEGIN  (9.5ms) CREATE INDEX "index_hosts_on_address" ON "hosts" ("address")  (6.2ms) CREATE INDEX "index_hosts_on_address6" ON "hosts" ("address6")  (5.6ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.6ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (0.7ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.7ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.6ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.6ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (0.7ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.8ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (0.7ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (0.7ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (0.7ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (0.7ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.6ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.8ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (1.0ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (0.7ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (0.7ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (0.8ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.8ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110730000001')  (0.4ms) COMMIT Migrating to PruneIndexes (20110812000001)  (0.2ms) BEGIN  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110812000001')  (5.8ms) COMMIT Migrating to ExpandNotes (20110922000000)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "notes" ALTER COLUMN "data" TYPE text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110922000000')  (6.2ms) COMMIT Migrating to AddModRefTable (20110928101300)  (0.2ms) BEGIN  (14.3ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110928101300')  (6.2ms) COMMIT Migrating to AddDisplayNameToReportsTable (20111011110000)  (5.0ms) BEGIN  (0.4ms) ALTER TABLE "reports" ADD COLUMN "name" character varying(63) AddDisplayNameToReportsTable::Report Load (0.3ms) SELECT "reports".* FROM "reports"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20111011110000')  (6.2ms) COMMIT Migrating to InetColumns (20111203000000)  (0.3ms) BEGIN  (72.3ms) ALTER TABLE "hosts" ALTER COLUMN "address" TYPE INET using address::INET  (0.3ms) ALTER TABLE "hosts" DROP "address6"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20111203000000')  (1.3ms) COMMIT Migrating to MoreInetColumns (20111204000000)  (0.1ms) BEGIN  (15.0ms) ALTER TABLE "wmap_requests" ALTER COLUMN "address" TYPE INET using address::INET  (0.2ms) ALTER TABLE "wmap_requests" DROP "address6"  (13.6ms) ALTER TABLE "wmap_targets" ALTER COLUMN "address" TYPE INET using address::INET  (0.3ms) ALTER TABLE "wmap_targets" DROP "address6"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20111204000000')  (1.1ms) COMMIT Migrating to AddScopeToHosts (20111210000000)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "hosts" ADD COLUMN "scope" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20111210000000')  (5.7ms) COMMIT Migrating to AddVirtualHostToHosts (20120126110000)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "hosts" ADD COLUMN "virtual_host" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120126110000')  (5.6ms) COMMIT Migrating to RenameWorkspaceMembers (20120411173220)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "project_members" RENAME TO "workspace_members"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120411173220')  (4.6ms) COMMIT Migrating to AddCounterCachesToHosts (20120601152442)  (0.1ms) BEGIN  (27.0ms) ALTER TABLE "hosts" ADD COLUMN "note_count" integer DEFAULT 0  (5.1ms) ALTER TABLE "hosts" ADD COLUMN "vuln_count" integer DEFAULT 0  (5.1ms) ALTER TABLE "hosts" ADD COLUMN "service_count" integer DEFAULT 0 Mdm::Host Load (0.4ms) SELECT "hosts".* FROM "hosts"   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120601152442')  (2.5ms) COMMIT Migrating to AddVulnDetails (20120625000000)  (0.3ms) BEGIN  (14.7ms) 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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000000')  (6.3ms) COMMIT Migrating to AddHostDetails (20120625000001)  (4.9ms) BEGIN  (8.6ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000001')  (6.3ms) COMMIT Migrating to ExpandDetails (20120625000002)  (5.8ms) BEGIN  (0.3ms) ALTER TABLE "vuln_details" ADD COLUMN "nx_vuln_status" text  (0.2ms) ALTER TABLE "vuln_details" ADD COLUMN "nx_proof_key" text  (0.2ms) ALTER TABLE "vuln_details" ADD COLUMN "src" character varying(255)  (0.2ms) ALTER TABLE "host_details" ADD COLUMN "src" character varying(255)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000002')  (6.1ms) COMMIT Migrating to ExpandDetails2 (20120625000003)  (0.2ms) BEGIN  (7.6ms) ALTER TABLE "host_details" ADD COLUMN "nx_site_name" character varying(255)  (0.4ms) ALTER TABLE "host_details" ADD COLUMN "nx_site_importance" character varying(255)  (0.5ms) ALTER TABLE "host_details" ADD COLUMN "nx_scan_template" character varying(255)  (0.5ms) ALTER TABLE "host_details" ADD COLUMN "nx_risk_score" float  (0.4ms) ALTER TABLE "vuln_details" ADD COLUMN "nx_scan_id" integer  (0.5ms) ALTER TABLE "vuln_details" ADD COLUMN "nx_vulnerable_since" timestamp  (0.4ms) ALTER TABLE "vuln_details" ADD COLUMN "nx_pci_compliance_status" character varying(255)  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000003')  (6.0ms) COMMIT Migrating to AddVulnAttempts (20120625000004)  (0.2ms) BEGIN  (14.9ms) 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)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000004')  (6.3ms) COMMIT Migrating to AddVulnAndHostCounterCaches (20120625000005)  (4.8ms) BEGIN  (28.2ms) ALTER TABLE "hosts" ADD COLUMN "host_detail_count" integer DEFAULT 0  (3.1ms) ALTER TABLE "vulns" ADD COLUMN "vuln_detail_count" integer DEFAULT 0  (3.3ms) ALTER TABLE "vulns" ADD COLUMN "vuln_attempt_count" integer DEFAULT 0  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000005')  (1.8ms) COMMIT Migrating to AddModuleDetails (20120625000006)  (0.2ms) BEGIN  (16.7ms) 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)  (6.9ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (0.9ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.6ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.7ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (2.3ms) CREATE TABLE "module_authors" ("id" serial primary key, "module_detail_id" integer, "name" text, "email" text)   (6.2ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("module_detail_id")  (14.3ms) CREATE TABLE "module_mixins" ("id" serial primary key, "module_detail_id" integer, "name" text)   (5.7ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("module_detail_id")  (2.9ms) CREATE TABLE "module_targets" ("id" serial primary key, "module_detail_id" integer, "index" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("module_detail_id")  (2.4ms) CREATE TABLE "module_actions" ("id" serial primary key, "module_detail_id" integer, "name" text)   (0.7ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("module_detail_id")  (2.4ms) CREATE TABLE "module_refs" ("id" serial primary key, "module_detail_id" integer, "name" text)   (0.6ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("module_detail_id")  (0.7ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.8ms) CREATE TABLE "module_archs" ("id" serial primary key, "module_detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("module_detail_id")  (2.5ms) CREATE TABLE "module_platforms" ("id" serial primary key, "module_detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("module_detail_id")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000006')  (1.0ms) COMMIT Migrating to AddExploitAttempts (20120625000007)  (0.5ms) BEGIN  (14.4ms) 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))   (12.5ms) ALTER TABLE "hosts" ADD COLUMN "exploit_attempt_count" integer DEFAULT 0  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000007')  (1.2ms) COMMIT Migrating to AddFailMessage (20120625000008)  (0.3ms) BEGIN  (0.4ms) ALTER TABLE "vuln_attempts" ADD COLUMN "fail_detail" text  (0.2ms) ALTER TABLE "exploit_attempts" ADD COLUMN "fail_detail" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000008')  (6.2ms) COMMIT Migrating to AddOwnerAndPayloadToWebVulns (20120718202805)  (0.2ms) BEGIN  (0.4ms) ALTER TABLE "web_vulns" ADD COLUMN "owner" character varying(255)  (0.2ms) ALTER TABLE "web_vulns" ADD COLUMN "payload" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120718202805')  (6.2ms) COMMIT Migrating to ChangeRequiredColumnsToNullFalseInWebVulns (20130228214900)  (0.2ms) BEGIN  (0.4ms) ALTER TABLE "web_vulns" ALTER "category" SET NOT NULL  (0.2ms) ALTER TABLE "web_vulns" ALTER "confidence" SET NOT NULL  (0.3ms) ALTER TABLE "web_vulns" ALTER "method" SET NOT NULL  (0.2ms) ALTER TABLE "web_vulns" ALTER "name" SET NOT NULL  (0.2ms) ALTER TABLE "web_vulns" ALTER "params" SET NOT NULL  (0.2ms) ALTER TABLE "web_vulns" ALTER "path" SET NOT NULL  (0.2ms) ALTER TABLE "web_vulns" ALTER "pname" SET NOT NULL  (0.2ms) ALTER TABLE "web_vulns" ALTER "proof" SET NOT NULL  (0.2ms) ALTER TABLE "web_vulns" ALTER "risk" SET NOT NULL  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130228214900')  (0.3ms) COMMIT Migrating to ChangeForeignKeyInModuleActions (20130412154159)  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "module_actions" RENAME COLUMN "module_detail_id" TO "detail_id"  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130412154159')  (6.2ms) COMMIT Migrating to ChangeForeignKeyInModuleArchs (20130412171844)  (0.2ms) BEGIN  (0.2ms) ALTER TABLE "module_archs" RENAME COLUMN "module_detail_id" TO "detail_id"  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130412171844')  (6.6ms) COMMIT Migrating to ChangeForeignKeyInModuleAuthors (20130412173121)  (0.3ms) BEGIN  (0.3ms) ALTER TABLE "module_authors" RENAME COLUMN "module_detail_id" TO "detail_id"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130412173121')  (6.2ms) COMMIT Migrating to ChangeForeignKeyInModuleMixins (20130412173640)  (0.3ms) BEGIN  (0.2ms) ALTER TABLE "module_mixins" RENAME COLUMN "module_detail_id" TO "detail_id"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130412173640')  (6.0ms) COMMIT Migrating to ChangeForeignKeyInModulePlatforms (20130412174254)  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "module_platforms" RENAME COLUMN "module_detail_id" TO "detail_id"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130412174254')  (5.6ms) COMMIT Migrating to ChangeForeignKeyInModuleRefs (20130412174719)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "module_refs" RENAME COLUMN "module_detail_id" TO "detail_id"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130412174719')  (6.0ms) COMMIT Migrating to ChangeForeignKeyInModuleTargets (20130412175040)  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "module_targets" RENAME COLUMN "module_detail_id" TO "detail_id"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130412175040')  (6.2ms) COMMIT Migrating to AddCredsCounterCache (20130423211152)  (0.2ms) BEGIN  (28.8ms) ALTER TABLE "hosts" ADD COLUMN "cred_count" integer DEFAULT 0 Mdm::Cred Load (0.3ms) SELECT "creds".* FROM "creds"   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130423211152')  (1.1ms) COMMIT Migrating to ChangeRequiredColumnsToNullFalseInHosts (20130430151353)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "hosts" ALTER "address" SET NOT NULL  (0.2ms) ALTER TABLE "hosts" ALTER "workspace_id" SET NOT NULL  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130430151353')  (6.1ms) COMMIT Migrating to EnforceAddressUniquenessInWorkspaceInHosts (20130430162145)  (0.3ms) BEGIN  (0.9ms) SELECT workspace_id, address, count_addr FROM ( SELECT workspace_id, address, COUNT(address) AS count_addr FROM hosts GROUP BY address, workspace_id ) X WHERE count_addr > 1  (0.2ms) DROP INDEX "index_hosts_on_address"  (6.6ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130430162145')  (5.8ms) COMMIT Migrating to RemoveCampaigns (20130510021637)  (0.2ms) BEGIN  (7.1ms) DROP TABLE "attachments"  (0.4ms) DROP TABLE "attachments_email_templates"  (0.7ms) DROP TABLE "email_addresses"  (0.6ms) DROP TABLE "email_templates"  (0.7ms) DROP TABLE "web_templates"  (0.8ms) DROP TABLE "campaigns"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130510021637')  (7.5ms) COMMIT Migrating to ChangeWebVulnsConfidenceToInteger (20130515164311)  (0.3ms) BEGIN  (27.5ms) ALTER TABLE web_vulns ALTER COLUMN confidence TYPE integer USING confidence::integer  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130515164311')  (0.9ms) COMMIT Migrating to ValidMdmWebVulnParams (20130515172727)  (0.2ms) BEGIN Mdm::WebVuln Load (0.5ms) SELECT "web_vulns".* FROM "web_vulns" ORDER BY "web_vulns"."id" ASC LIMIT 1000  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130515172727')  (6.2ms) COMMIT Migrating to MakingVulnsRefsARealArModel (20130516204810)  (0.3ms) BEGIN  (8.0ms) ALTER TABLE "vulns_refs" ADD COLUMN "id" serial primary key  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130516204810')  (6.5ms) COMMIT Migrating to CreateTaskCreds (20130522001343)  (5.7ms) BEGIN  (8.0ms) 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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130522001343')  (6.3ms) COMMIT Migrating to CreateTaskHosts (20130522032517)  (6.2ms) BEGIN  (8.0ms) 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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130522032517')  (6.2ms) COMMIT Migrating to CreateTaskServices (20130522041110)  (5.9ms) BEGIN  (7.3ms) 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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130522041110')  (5.9ms) COMMIT Migrating to RemoveCampaignIdFromClients (20130525015035)  (6.0ms) BEGIN  (0.3ms) ALTER TABLE "clients" DROP "campaign_id"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130525015035')  (6.1ms) COMMIT Migrating to DropTableImportedCreds (20130525212420)  (0.2ms) BEGIN  (0.9ms) DROP TABLE "imported_creds"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130525212420')  (6.1ms) COMMIT Migrating to MakingHostTagsARealArModel (20130531144949)  (0.1ms) BEGIN  (9.3ms) ALTER TABLE "hosts_tags" ADD COLUMN "id" serial primary key  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130531144949')  (6.6ms) COMMIT Migrating to CreateTaskSessions (20130604145732)  (5.5ms) BEGIN  (8.5ms) 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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130604145732')  (6.1ms) COMMIT Migrating to RemovePnameValidation (20130717150737)  (6.1ms) BEGIN  (0.3ms) ALTER TABLE "web_vulns" ALTER COLUMN "pname" TYPE text  (0.1ms) ALTER TABLE "web_vulns" ALTER "pname" DROP NOT NULL  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130717150737')  (6.2ms) COMMIT Migrating to CreateMetasploitCredentialPublics (20140331173835)  (0.2ms) BEGIN  (8.0ms) 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)  (6.7ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140331173835')  (0.4ms) COMMIT Migrating to CreateMetasploitCredentialPrivates (20140407212345)  (0.2ms) BEGIN  (3.3ms) 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)   (0.7ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140407212345')  (0.4ms) COMMIT Migrating to CreateMetasploitCredentialRealms (20140410132401)  (0.2ms) BEGIN  (2.9ms) 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)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140410132401')  (0.4ms) COMMIT Migrating to UniqueMetasploitCredentialRealms (20140410161611)  (0.1ms) BEGIN  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140410161611')  (0.3ms) COMMIT Migrating to CreateMetasploitCredentialOriginManuals (20140410191213)  (0.1ms) BEGIN  (1.8ms) 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)  (0.7ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140410191213')  (0.4ms) COMMIT Migrating to CreateMetasploitCredentialOriginImports (20140410205410)  (0.1ms) BEGIN  (2.7ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.7ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140410205410')  (0.3ms) COMMIT Migrating to CreateMetasploitCredentialOriginSessions (20140411142102)  (0.2ms) BEGIN  (2.7ms) 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)  (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140411142102')  (0.4ms) COMMIT Migrating to CreateMetasploitCredentialOriginServices (20140411205325)  (0.2ms) BEGIN  (2.6ms) 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)   (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140411205325')  (0.3ms) COMMIT Migrating to CreateMetasploitCredentialCores (20140414192550)  (0.2ms) BEGIN  (2.0ms) 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)  (0.7ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.7ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.7ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.6ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.6ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140414192550')  (0.4ms) COMMIT Migrating to CreateMetasploitCredentialLogins (20140417140933)  (0.1ms) BEGIN  (2.6ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.6ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140417140933')  (0.6ms) COMMIT Migrating to AddLoginsCounterCacheToCores (20140520140817)  (0.2ms) BEGIN  (3.9ms) ALTER TABLE "metasploit_credential_cores" ADD COLUMN "logins_count" integer DEFAULT 0 Metasploit::Credential::Core Load (0.3ms) SELECT "metasploit_credential_cores".* FROM "metasploit_credential_cores"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140520140817')  (0.8ms) COMMIT Migrating to AddJtrFormatToMetasploitCredentialPrivates (20140603163708)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "metasploit_credential_privates" ADD COLUMN "jtr_format" character varying(255)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140603163708')  (0.3ms) COMMIT Migrating to CreateMetasploitCredentialOriginCrackedPasswords (20140605173747)  (0.1ms) BEGIN  (1.9ms) 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)  (0.7ms) CREATE INDEX "originating_credential_cores" ON "metasploit_credential_origin_cracked_passwords" ("metasploit_credential_core_id")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140605173747')  (0.4ms) COMMIT  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" Connecting to database specified by database.yml  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (114.3ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (231.1ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.3ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.8ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (2.8ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.8ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (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), "fail_detail" text)  (2.8ms) 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)   (3.0ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.4ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.9ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.9ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.1ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.9ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (1.9ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.0ms) 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, "macro" text)   (2.8ms) 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, "content_type" character varying(255), "name" text, "info" text)  (2.8ms) 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)   (2.2ms) 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, "logins_count" integer DEFAULT 0)  (1.0ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (27.0ms) 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)  (1.1ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.1ms) 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)   (0.8ms) CREATE INDEX "originating_credential_cores" ON "metasploit_credential_origin_cracked_passwords" ("metasploit_credential_core_id")  (3.4ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (2.0ms) 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)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.7ms) 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)   (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (3.0ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (2.5ms) 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, "jtr_format" character varying(255))   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.9ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.8ms) 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)   (1.1ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (6.8ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.8ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.5ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.9ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.9ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.9ms) 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)  (0.9ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.7ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.7ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.9ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.9ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.9ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (1.0ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.8ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.7ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (3.0ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.0ms) 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, "name" text)  (2.9ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.9ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.9ms) 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)   (2.8ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.9ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.9ms) 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)  (3.1ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.9ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.9ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.9ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (1.0ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.8ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (1.1ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (3.2ms) 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)  (2.9ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (3.2ms) 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)  (2.0ms) 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)   (2.0ms) 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)  (2.3ms) 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)   (2.0ms) 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)  (3.1ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (3.0ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (2.9ms) 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, "fail_detail" text)   (3.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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (3.2ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.9ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (1.8ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.9ms) 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, "query" text)  (0.9ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (3.0ms) 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, "headers" text, "body" bytea, "request" bytea)  (0.9ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.8ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.9ms) 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)   (0.8ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.8ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.9ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.2ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (1.1ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.8ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.8ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.0ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.9ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.8ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (2.7ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140605173747')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140520140817')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140603163708')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (11.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (158.4ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (364.6ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (6.0ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.8ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (19.2ms) 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(256), "source_id" integer, "source_type" character varying(255))  (5.5ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (3.0ms) 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), "fail_detail" text)  (2.7ms) 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)   (2.8ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (4.0ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.8ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.8ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.2ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.9ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.2ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.3ms) 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, "macro" text)   (3.9ms) 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, "content_type" character varying(255), "name" text, "info" text)  (3.5ms) 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)   (2.0ms) 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, "logins_count" integer DEFAULT 0)  (1.0ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (1.0ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.8ms) 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)  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.2ms) 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)   (1.2ms) CREATE INDEX "originating_credential_cores" ON "metasploit_credential_origin_cracked_passwords" ("metasploit_credential_core_id")  (2.8ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (2.2ms) 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)   (1.2ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (3.1ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (3.1ms) 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)   (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (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, "jtr_format" character varying(255))   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (2.0ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.7ms) 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)   (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (3.7ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.6ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.8ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.7ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.8ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.9ms) 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)  (1.0ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.8ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.7ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.8ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.8ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.6ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (3.7ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (1.0ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (3.1ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.1ms) 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, "name" text)  (2.6ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.9ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.7ms) 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)   (3.7ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.8ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (3.2ms) 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)  (3.3ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.6ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (3.3ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.9ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.8ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.8ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.9ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.9ms) 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)  (3.0ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (3.1ms) 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)  (2.0ms) 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)   (2.9ms) 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)  (2.2ms) 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)   (1.8ms) 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)  (3.3ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (2.9ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (3.3ms) 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, "fail_detail" text)   (2.9ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (3.4ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.8ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (2.1ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.7ms) 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, "query" text)  (0.9ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.9ms) 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, "headers" text, "body" bytea, "request" bytea)  (0.9ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.9ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (3.3ms) 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)   (4.2ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (1.0ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (1.1ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.2ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.9ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.9ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.8ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.0ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.9ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (2.8ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140605173747')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140520140817')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140603163708')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (135.3ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (396.7ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.3ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.8ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (3.0ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.7ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (3.2ms) 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), "fail_detail" text)  (2.7ms) 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)   (2.8ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.5ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.1ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.9ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.9ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.0ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.9ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.7ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.1ms) 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, "macro" text)   (2.7ms) 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, "content_type" character varying(255), "name" text, "info" text)  (3.5ms) 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)   (1.9ms) 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, "logins_count" integer DEFAULT 0)  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (3.4ms) 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)  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (1.9ms) 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)   (0.9ms) CREATE INDEX "originating_credential_cores" ON "metasploit_credential_origin_cracked_passwords" ("metasploit_credential_core_id")  (3.0ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.0ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (2.0ms) 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)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.8ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (3.0ms) 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)   (1.5ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (3.6ms) 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, "jtr_format" character varying(255))   (1.2ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (2.0ms) 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)   (1.1ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.8ms) 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)   (1.1ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.6ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (3.0ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.7ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (3.0ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.7ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.8ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (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)  (0.8ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.8ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.9ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.8ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.8ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.8ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (4.2ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (1.0ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.5ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.1ms) 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, "name" text)  (2.5ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (1.0ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.7ms) 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)   (2.6ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.9ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (3.8ms) 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)  (2.8ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.7ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (3.0ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (4.5ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (1.1ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.8ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.9ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (3.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)  (3.0ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (2.8ms) 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)  (2.2ms) 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)   (2.0ms) 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)  (2.2ms) 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)   (1.9ms) 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)  (2.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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (2.9ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (3.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, "fail_detail" text)   (2.9ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (2.9ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (1.8ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.7ms) 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, "query" text)  (0.8ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.7ms) 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, "headers" text, "body" bytea, "request" bytea)  (0.8ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.8ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.9ms) 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)   (0.8ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (1.1ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.9ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.1ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.8ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.9ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.9ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.0ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (3.0ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (2.8ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140605173747')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140520140817')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140603163708')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (133.9ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (233.9ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.2ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.1ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (3.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(256), "source_id" integer, "source_type" character varying(255))  (2.8ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.7ms) 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), "fail_detail" text)  (3.1ms) 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)   (3.6ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.9ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.3ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (1.0ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.9ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.1ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.9ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (1.8ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (2.9ms) 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, "macro" text)   (2.9ms) 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, "content_type" character varying(255), "name" text, "info" text)  (3.0ms) 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)   (2.8ms) 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, "logins_count" integer DEFAULT 0)  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (1.0ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (3.0ms) 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)  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.0ms) 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)   (0.9ms) CREATE INDEX "originating_credential_cores" ON "metasploit_credential_origin_cracked_passwords" ("metasploit_credential_core_id")  (3.8ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (2.0ms) 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)   (0.9ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.8ms) 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)   (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (3.2ms) 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)   (1.0ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (2.6ms) 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, "jtr_format" character varying(255))   (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.9ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.8ms) 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)   (1.2ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.9ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.7ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (1.0ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.6ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.7ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.9ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.7ms) 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)  (0.8ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (1.2ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.9ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.8ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.8ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (4.9ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.7ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.9ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.8ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (1.5ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.0ms) 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, "name" text)  (3.0ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.9ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.6ms) 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)   (2.8ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.9ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.7ms) 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)  (2.8ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.8ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (3.1ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.9ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.8ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.9ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.8ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (3.3ms) 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)  (3.0ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (2.9ms) 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)  (1.9ms) 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)   (1.9ms) 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)  (2.1ms) 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)   (2.4ms) 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)  (3.0ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (2.9ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (2.8ms) 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, "fail_detail" text)   (2.9ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (3.2ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (1.9ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.9ms) 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, "query" text)  (1.0ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (3.3ms) 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, "headers" text, "body" bytea, "request" bytea)  (0.8ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (1.0ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.9ms) 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)   (0.9ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.8ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.7ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.0ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.8ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.9ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (1.0ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.2ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.7ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (2.9ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140605173747')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140520140817')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140603163708')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (137.6ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (396.8ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (7.4ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.8ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (20.8ms) 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(256), "source_id" integer, "source_type" character varying(255))  (3.1ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (3.0ms) 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), "fail_detail" text)  (2.7ms) 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)   (3.1ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.7ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.3ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (1.1ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.9ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.0ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (1.0ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.9ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.0ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.1ms) 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, "macro" text)   (3.0ms) 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, "content_type" character varying(255), "name" text, "info" text)  (2.8ms) 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)   (2.1ms) 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, "logins_count" integer DEFAULT 0)  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.7ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (1.9ms) 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)   (0.9ms) CREATE INDEX "originating_credential_cores" ON "metasploit_credential_origin_cracked_passwords" ("metasploit_credential_core_id")  (2.7ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.9ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (2.0ms) 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)   (0.9ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.7ms) 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)   (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (3.0ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (2.8ms) 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, "jtr_format" character varying(255))   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.7ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.8ms) 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)   (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.7ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.7ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.6ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.7ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.9ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.8ms) 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)  (0.8ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.9ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.8ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.8ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.9ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.9ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.5ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (1.0ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.9ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.7ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.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, "name" text)  (2.8ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.9ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.9ms) 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)   (2.7ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (1.0ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (3.7ms) 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)  (2.9ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.7ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.9ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.9ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.9ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.8ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.7ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (3.0ms) 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)  (3.9ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (6.0ms) 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)  (1.9ms) 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)   (1.9ms) 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)  (7.8ms) 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)   (12.5ms) 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)  (3.1ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (3.0ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (2.9ms) 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, "fail_detail" text)   (4.1ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (3.0ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.9ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (1.9ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.7ms) 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, "query" text)  (0.9ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.9ms) 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, "headers" text, "body" bytea, "request" bytea)  (0.8ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.7ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (3.1ms) 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)   (0.8ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.8ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.8ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.0ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.9ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.8ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.8ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (2.8ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.7ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (3.0ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140605173747')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140520140817')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140603163708')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (142.8ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (427.3ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (14.8ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.2ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (3.8ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.8ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (3.0ms) 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), "fail_detail" text)  (3.0ms) 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)   (4.3ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (4.1ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.2ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (1.3ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (1.1ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.0ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.9ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (1.1ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.2ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.2ms) 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, "macro" text)   (3.5ms) 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, "content_type" character varying(255), "name" text, "info" text)  (3.0ms) 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)   (2.4ms) 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, "logins_count" integer DEFAULT 0)  (1.5ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.7ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.7ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.9ms) 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)   (1.0ms) CREATE INDEX "originating_credential_cores" ON "metasploit_credential_origin_cracked_passwords" ("metasploit_credential_core_id")  (2.8ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.9ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (2.2ms) 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)   (0.9ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (3.0ms) 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)   (1.1ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (3.1ms) 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)   (1.1ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (2.9ms) 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, "jtr_format" character varying(255))   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (2.0ms) 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)   (1.1ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (3.0ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.9ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (3.4ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.6ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (3.1ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (1.0ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (3.1ms) 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)  (0.8ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.8ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.8ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (1.0ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (3.4ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (3.1ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (3.5ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.9ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.8ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.3ms) 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, "name" text)  (2.9ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.8ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (3.1ms) 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)   (2.7ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (1.1ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (3.2ms) 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)  (3.0ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (3.0ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.9ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.9ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (1.0ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.9ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.9ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (3.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)  (3.1ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (3.3ms) 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)  (2.2ms) 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)   (2.0ms) 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)  (2.2ms) 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)   (2.2ms) 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)  (3.3ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (3.3ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (3.2ms) 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, "fail_detail" text)   (3.2ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (3.4ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (2.1ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (3.0ms) 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, "query" text)  (0.9ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (3.1ms) 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, "headers" text, "body" bytea, "request" bytea)  (1.1ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.9ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (3.1ms) 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)   (1.0ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.8ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.9ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.2ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.9ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (1.0ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.8ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.5ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.9ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.8ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (3.7ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140605173747')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140520140817')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140603163708')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (152.1ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (381.6ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.6ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.0ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (3.6ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.7ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.8ms) 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), "fail_detail" text)  (3.0ms) 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)   (3.3ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.9ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.1ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (1.0ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (1.0ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.0ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (1.0ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (1.0ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.2ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.5ms) 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, "macro" text)   (3.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, "content_type" character varying(255), "name" text, "info" text)  (3.4ms) 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)   (2.5ms) 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, "logins_count" integer DEFAULT 0)  (1.1ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (1.0ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (1.0ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (3.5ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.9ms) 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)   (0.9ms) CREATE INDEX "originating_credential_cores" ON "metasploit_credential_origin_cracked_passwords" ("metasploit_credential_core_id")  (4.0ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (2.6ms) 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)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.9ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (3.2ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (3.0ms) 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, "jtr_format" character varying(255))   (1.1ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (2.1ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (3.3ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.8ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (3.0ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.9ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.9ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.9ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (3.2ms) 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)  (1.0ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.9ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.7ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.8ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (3.1ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (3.2ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.8ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.9ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (3.2ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.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, "name" text)  (3.3ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.9ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (3.0ms) 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)   (3.2ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.9ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (3.4ms) 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)  (3.1ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.9ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.9ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.9ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.7ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.9ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (1.0ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (3.4ms) 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)  (24.9ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (3.2ms) 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)  (2.4ms) 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)   (2.1ms) 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)  (2.3ms) 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)   (2.0ms) 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)  (3.2ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (3.2ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (3.0ms) 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, "fail_detail" text)   (3.1ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (4.4ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (2.0ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (3.2ms) 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, "query" text)  (0.9ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (3.1ms) 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, "headers" text, "body" bytea, "request" bytea)  (1.0ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.8ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (3.0ms) 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)   (0.8ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.9ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (1.0ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.2ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.8ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (1.1ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.8ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.3ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.9ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (2.9ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140605173747')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140520140817')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140603163708')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (5.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (6.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (5.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (11.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (7.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (138.4ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (366.1ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (6.0ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.0ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (20.0ms) 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(256), "source_id" integer, "source_type" character varying(255))  (3.2ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (3.0ms) 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), "fail_detail" text)  (3.1ms) 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)   (3.0ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.6ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (1.1ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (1.1ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (0.8ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (1.2ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.9ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (1.9ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.0ms) 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, "macro" text)   (2.9ms) 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, "content_type" character varying(255), "name" text, "info" text)  (2.9ms) 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)   (2.0ms) 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, "logins_count" integer DEFAULT 0)  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (1.0ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.7ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (1.9ms) 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)   (0.8ms) CREATE INDEX "originating_credential_cores" ON "metasploit_credential_origin_cracked_passwords" ("metasploit_credential_core_id")  (2.8ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.9ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (2.0ms) 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)   (0.7ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.9ms) 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)   (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.9ms) 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)   (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (2.8ms) 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, "jtr_format" character varying(255))   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.9ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (3.1ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (3.1ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.6ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.9ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.6ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.9ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (3.2ms) 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)  (0.8ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.8ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.9ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.7ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (3.3ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.7ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (3.0ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (1.0ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.7ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (1.0ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.9ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.0ms) 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, "name" text)  (3.0ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.8ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.9ms) 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)   (2.9ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.9ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (3.3ms) 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)  (3.0ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.9ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.8ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.7ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.8ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.8ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (1.0ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (3.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)  (2.8ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (3.0ms) 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)  (2.0ms) 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)   (2.1ms) 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)  (6.1ms) 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)   (2.4ms) 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)  (7.0ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (3.2ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (2.9ms) 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, "fail_detail" text)   (3.1ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (3.2ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.9ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (2.0ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (3.0ms) 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, "query" text)  (0.8ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.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, "headers" text, "body" bytea, "request" bytea)  (0.9ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.8ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (3.1ms) 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)   (0.9ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.8ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (1.0ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.0ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (1.0ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.9ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.8ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.0ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.7ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (3.2ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140605173747')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140520140817')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140603163708')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (128.6ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (288.9ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.4ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.7ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (3.1ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.8ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.8ms) 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), "fail_detail" text)  (2.7ms) 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)   (2.8ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.6ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (1.0ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (1.2ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (0.7ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.9ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (1.3ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.2ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.3ms) 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, "macro" text)   (3.0ms) 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, "content_type" character varying(255), "name" text, "info" text)  (2.7ms) 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)   (2.3ms) 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, "logins_count" integer DEFAULT 0)  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.7ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.8ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (1.9ms) 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)   (0.9ms) CREATE INDEX "originating_credential_cores" ON "metasploit_credential_origin_cracked_passwords" ("metasploit_credential_core_id")  (2.8ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.9ms) 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)   (1.0ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.7ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.9ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (2.6ms) 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, "jtr_format" character varying(255))   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.9ms) 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)   (1.1ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.8ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.7ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.6ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.5ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.6ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.8ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.9ms) 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)  (0.9ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.8ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.8ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.9ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (3.0ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (3.2ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.5ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.4ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.7ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.1ms) 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, "name" text)  (3.0ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.8ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.6ms) 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)   (2.8ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.8ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.8ms) 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)  (5.7ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (6.8ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.8ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (4.7ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (1.0ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.8ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.9ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.9ms) 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)  (2.8ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (4.4ms) 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)  (2.1ms) 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)   (2.0ms) 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)  (2.1ms) 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)   (1.8ms) 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)  (2.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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (2.9ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (2.8ms) 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, "fail_detail" text)   (3.2ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (3.0ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (1.9ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.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, "query" text)  (0.8ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (3.2ms) 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, "headers" text, "body" bytea, "request" bytea)  (0.8ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.8ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.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)   (1.3ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (1.0ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.8ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (2.9ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.8ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (1.0ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.9ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (2.8ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.6ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (3.1ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140605173747')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140520140817')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140603163708')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (146.6ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (349.7ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.7ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.0ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (21.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(256), "source_id" integer, "source_type" character varying(255))  (3.0ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (3.0ms) 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), "fail_detail" text)  (2.8ms) 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)   (3.0ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.5ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.9ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.8ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.1ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.9ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.0ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.9ms) 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, "macro" text)   (2.9ms) 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, "content_type" character varying(255), "name" text, "info" text)  (3.1ms) 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)   (2.2ms) 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, "logins_count" integer DEFAULT 0)  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.1ms) 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)   (0.8ms) CREATE INDEX "originating_credential_cores" ON "metasploit_credential_origin_cracked_passwords" ("metasploit_credential_core_id")  (2.8ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (2.0ms) 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)   (0.9ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.7ms) 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)   (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (3.1ms) 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)   (1.0ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (2.8ms) 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, "jtr_format" character varying(255))   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (2.1ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.8ms) 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)   (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.8ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.7ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.7ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (3.2ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.9ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (3.1ms) 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)  (0.9ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.8ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (1.0ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.8ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (3.0ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (1.0ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (3.0ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.6ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.6ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.1ms) 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, "name" text)  (2.8ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.9ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.9ms) 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)   (2.9ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.8ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.9ms) 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)  (3.0ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.6ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (3.0ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.9ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.9ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.8ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.9ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (3.0ms) 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)  (2.9ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (4.1ms) 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)  (2.0ms) 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)   (2.0ms) 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)  (2.2ms) 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)   (2.1ms) 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)  (3.0ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (2.9ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (2.8ms) 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, "fail_detail" text)   (3.3ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (3.1ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.9ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (2.0ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (3.0ms) 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, "query" text)  (0.9ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.9ms) 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, "headers" text, "body" bytea, "request" bytea)  (0.8ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.8ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (3.3ms) 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)   (0.8ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.8ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.8ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.0ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.9ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.8ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.9ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.2ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.8ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.8ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (3.3ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140605173747')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140520140817')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140603163708')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (127.7ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (229.8ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.2ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.8ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (3.0ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.7ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (3.0ms) 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), "fail_detail" text)  (2.7ms) 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)   (2.8ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.5ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.9ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.8ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.0ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (1.0ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.8ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.0ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.0ms) 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, "macro" text)   (2.8ms) 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, "content_type" character varying(255), "name" text, "info" text)  (2.9ms) 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)   (2.2ms) 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, "logins_count" integer DEFAULT 0)  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.8ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.1ms) 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)   (0.8ms) CREATE INDEX "originating_credential_cores" ON "metasploit_credential_origin_cracked_passwords" ("metasploit_credential_core_id")  (2.6ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (2.1ms) 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)   (0.9ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.7ms) 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)   (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.9ms) 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)   (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (2.6ms) 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, "jtr_format" character varying(255))   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.9ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.6ms) 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)   (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.8ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.6ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.6ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.6ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (1.1ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.9ms) 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)  (0.8ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.8ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.8ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (1.8ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.8ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.6ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.6ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.9ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.6ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.0ms) 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, "name" text)  (2.9ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.8ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.7ms) 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)   (2.8ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.9ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.6ms) 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)  (3.1ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.7ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.8ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.9ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.8ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.8ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.7ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.9ms) 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)  (3.0ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (2.9ms) 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)  (1.8ms) 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)   (1.9ms) 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)  (2.1ms) 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)   (2.0ms) 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)  (3.0ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (2.9ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (2.7ms) 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, "fail_detail" text)   (3.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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (3.0ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.9ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (1.8ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.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, "query" text)  (0.8ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.7ms) 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, "headers" text, "body" bytea, "request" bytea)  (0.8ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.9ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.8ms) 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)   (0.8ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.8ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.9ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.1ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.9ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.8ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.8ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (2.9ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (3.0ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (3.0ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140605173747')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140520140817')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140603163708')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (132.0ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (231.0ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.1ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.6ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (3.0ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.8ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.7ms) 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), "fail_detail" text)  (2.6ms) 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)   (2.8ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.4ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.1ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.9ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.8ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.1ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.7ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.0ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.1ms) 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, "macro" text)   (2.9ms) 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, "content_type" character varying(255), "name" text, "info" text)  (2.9ms) 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)   (2.1ms) 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, "logins_count" integer DEFAULT 0)  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.5ms) 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)  (0.7ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.0ms) 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)   (0.7ms) CREATE INDEX "originating_credential_cores" ON "metasploit_credential_origin_cracked_passwords" ("metasploit_credential_core_id")  (2.4ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (2.1ms) 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)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.7ms) 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)   (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (3.0ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (2.8ms) 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, "jtr_format" character varying(255))   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.9ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.6ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.6ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.5ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.7ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.7ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (1.0ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.7ms) 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)  (0.8ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.9ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.7ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.8ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.9ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.7ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.8ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.6ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (2.9ms) 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, "name" text)  (2.7ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.9ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.6ms) 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)   (2.6ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.8ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.9ms) 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)  (2.7ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.8ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.9ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.8ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.9ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.8ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.7ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.9ms) 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)  (2.7ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (2.9ms) 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)  (2.0ms) 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)   (2.0ms) 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)  (1.9ms) 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)   (2.0ms) 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)  (3.1ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (3.0ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (2.7ms) 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, "fail_detail" text)   (3.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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (3.0ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.8ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (1.9ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (3.0ms) 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, "query" text)  (0.9ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.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, "headers" text, "body" bytea, "request" bytea)  (0.8ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.9ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (3.1ms) 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)   (0.8ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.8ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.8ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.1ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.9ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.8ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.8ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (2.8ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.5ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.6ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (2.6ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140605173747')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140520140817')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140603163708')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (167.6ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (384.1ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (16.7ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.8ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (23.9ms) 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(256), "source_id" integer, "source_type" character varying(255))  (4.0ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (7.1ms) 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), "fail_detail" text)  (5.7ms) 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)   (3.0ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.7ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.1ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.9ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (1.0ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.4ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (1.0ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.9ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.7ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.3ms) 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, "macro" text)   (2.8ms) 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, "content_type" character varying(255), "name" text, "info" text)  (4.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)   (2.1ms) 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, "logins_count" integer DEFAULT 0)  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.7ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (3.0ms) 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)  (1.5ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (1.2ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.5ms) 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)   (3.3ms) CREATE INDEX "originating_credential_cores" ON "metasploit_credential_origin_cracked_passwords" ("metasploit_credential_core_id")  (2.8ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (2.6ms) 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)   (0.9ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.8ms) 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)   (1.0ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (3.7ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (2.8ms) 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, "jtr_format" character varying(255))   (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (2.0ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.6ms) 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)   (1.3ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.8ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.7ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (3.5ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.8ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (1.2ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.9ms) 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)  (0.8ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.8ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (1.1ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (1.6ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (3.0ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.7ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (3.5ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (1.0ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.9ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (1.0ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.7ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.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, "name" text)  (3.1ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.9ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (3.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)   (2.7ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.9ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (3.4ms) 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)  (4.0ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (5.8ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (3.4ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.8ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.9ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.9ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.8ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (3.2ms) 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)  (3.8ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (2.9ms) 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)  (2.1ms) 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)   (2.6ms) 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)  (4.9ms) 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)   (2.0ms) 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)  (3.0ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (24.7ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (8.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, "fail_detail" text)   (3.2ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (3.9ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.9ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (2.1ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (3.0ms) 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, "query" text)  (1.0ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (3.0ms) 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, "headers" text, "body" bytea, "request" bytea)  (2.8ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (1.2ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (23.3ms) 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)   (1.3ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (1.3ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (10.0ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (6.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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.9ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (1.0ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.9ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.1ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (3.6ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.8ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (9.3ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.4ms) SELECT version FROM "schema_migrations"  (3.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20140605173747')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140520140817')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140603163708')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (24.7ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (149.3ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (379.1ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (16.4ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.9ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (49.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(256), "source_id" integer, "source_type" character varying(255))  (2.9ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.8ms) 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), "fail_detail" text)  (3.0ms) 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)   (3.0ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.9ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.1ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (1.0ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.9ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.1ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (1.3ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.2ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.2ms) 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, "macro" text)   (2.9ms) 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, "content_type" character varying(255), "name" text, "info" text)  (2.9ms) 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)   (2.1ms) 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, "logins_count" integer DEFAULT 0)  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.7ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.6ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.2ms) 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)   (0.8ms) CREATE INDEX "originating_credential_cores" ON "metasploit_credential_origin_cracked_passwords" ("metasploit_credential_core_id")  (2.8ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.9ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (2.1ms) 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)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.9ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (3.0ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (3.2ms) 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, "jtr_format" character varying(255))   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.8ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (3.1ms) 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)   (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.8ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.8ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.9ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.7ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.8ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.8ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.8ms) 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)  (0.9ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.8ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.9ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.8ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (3.0ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.9ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.8ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.9ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.9ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (1.0ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.6ms) 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, "name" text)  (2.9ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.9ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.8ms) 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)   (3.0ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.9ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (3.0ms) 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)  (3.2ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.9ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (3.0ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.9ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.8ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (1.1ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.9ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (5.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)  (3.5ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (3.1ms) 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)  (2.0ms) 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)   (2.1ms) 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)  (2.4ms) 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)   (2.0ms) 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)  (3.2ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (2.9ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (3.7ms) 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, "fail_detail" text)   (3.1ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (3.2ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.9ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (1.9ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (3.0ms) 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, "query" text)  (0.8ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (3.0ms) 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, "headers" text, "body" bytea, "request" bytea)  (0.9ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.9ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (3.3ms) 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)   (0.9ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (1.0ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.8ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.2ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.9ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.8ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.8ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.2ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (3.0ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (2.9ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140605173747')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140520140817')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140603163708')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml  (0.1ms) BEGIN Connecting to database specified by database.yml  (6.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (157.6ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (383.6ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (16.2ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.0ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (26.1ms) 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(256), "source_id" integer, "source_type" character varying(255))  (3.1ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (3.0ms) 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), "fail_detail" text)  (3.1ms) 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)   (3.0ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (4.0ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.1ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.9ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (1.1ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (0.8ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.9ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (1.4ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.2ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.3ms) 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, "macro" text)   (3.0ms) 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, "content_type" character varying(255), "name" text, "info" text)  (3.2ms) 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)   (2.4ms) 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, "logins_count" integer DEFAULT 0)  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (1.2ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (3.0ms) 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)  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.2ms) 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)   (0.9ms) CREATE INDEX "originating_credential_cores" ON "metasploit_credential_origin_cracked_passwords" ("metasploit_credential_core_id")  (2.6ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.1ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (2.2ms) 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)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.9ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (3.1ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (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, "jtr_format" character varying(255))   (5.4ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (6.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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (3.1ms) 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)   (4.7ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (3.1ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (4.3ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (1.0ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.9ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.9ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.9ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (3.3ms) 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)  (0.8ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.8ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.8ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (1.4ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (3.5ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (3.1ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.9ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.7ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.8ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.0ms) 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, "name" text)  (3.0ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.9ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (3.2ms) 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)   (2.9ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.9ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (3.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)  (3.2ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.9ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.8ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.9ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.9ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.8ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.9ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (3.3ms) 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)  (3.3ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (3.0ms) 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)  (2.2ms) 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)   (2.2ms) 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)  (2.3ms) 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)   (2.0ms) 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)  (3.4ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (3.0ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (3.0ms) 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, "fail_detail" text)   (3.1ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (3.1ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.9ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (2.1ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.9ms) 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, "query" text)  (0.9ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.9ms) 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, "headers" text, "body" bytea, "request" bytea)  (0.8ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.7ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.9ms) 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)   (1.0ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.8ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (5.2ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.3ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.8ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.8ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.9ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.1ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.7ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (3.2ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140605173747')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140520140817')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140603163708')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (2.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (133.8ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (378.8ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.2ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.9ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (24.8ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.9ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.8ms) 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), "fail_detail" text)  (2.7ms) 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)   (2.7ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.6ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.8ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (1.1ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (0.8ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.9ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.1ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.0ms) 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, "macro" text)   (2.8ms) 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, "content_type" character varying(255), "name" text, "info" text)  (3.0ms) 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)   (9.3ms) 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, "logins_count" integer DEFAULT 0)  (3.1ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (1.0ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.6ms) 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)  (1.1ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.2ms) 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)   (0.9ms) CREATE INDEX "originating_credential_cores" ON "metasploit_credential_origin_cracked_passwords" ("metasploit_credential_core_id")  (3.1ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.0ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (2.1ms) 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)   (0.9ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.6ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (3.0ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (2.6ms) 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, "jtr_format" character varying(255))   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (2.1ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (3.0ms) 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)   (1.1ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.6ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.4ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.7ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.6ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.8ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.7ms) 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)  (0.9ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.8ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.8ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (1.0ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.8ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.6ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.6ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.9ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (2.9ms) 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, "name" text)  (2.5ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.9ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.9ms) 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)   (2.7ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.9ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (3.0ms) 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)  (2.7ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.6ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.8ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.8ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (1.0ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (1.0ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.9ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (3.0ms) 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)  (2.8ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (2.9ms) 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)  (1.9ms) 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)   (1.9ms) 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)  (2.1ms) 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)   (1.9ms) 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)  (3.1ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (2.9ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (2.9ms) 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, "fail_detail" text)   (3.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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (3.0ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.9ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (1.9ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.9ms) 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, "query" text)  (0.9ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.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, "headers" text, "body" bytea, "request" bytea)  (0.8ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.9ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.9ms) 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)   (0.8ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.8ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.8ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.2ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.8ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.8ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.8ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.3ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.7ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (2.7ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140605173747')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140520140817')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140603163708')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (2.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml  (17.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (158.1ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (475.1ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (16.4ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.1ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (25.9ms) 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(256), "source_id" integer, "source_type" character varying(255))  (3.0ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (3.2ms) 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), "fail_detail" text)  (2.9ms) 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)   (3.1ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.9ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.1ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.9ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.8ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.0ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (1.0ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.9ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.3ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.2ms) 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, "macro" text)   (3.1ms) 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, "content_type" character varying(255), "name" text, "info" text)  (3.5ms) 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)   (2.2ms) 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, "logins_count" integer DEFAULT 0)  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.1ms) 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)   (0.9ms) CREATE INDEX "originating_credential_cores" ON "metasploit_credential_origin_cracked_passwords" ("metasploit_credential_core_id")  (3.1ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.9ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (2.3ms) 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)   (0.9ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (3.0ms) 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)   (1.1ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (3.0ms) 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)   (1.0ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (3.0ms) 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, "jtr_format" character varying(255))   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (2.5ms) 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)   (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.7ms) 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)   (1.4ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (3.0ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.8ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (3.1ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (1.0ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (3.1ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.8ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (3.3ms) 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)  (0.9ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.9ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.8ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.9ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (3.2ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (3.1ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.8ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (1.0ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (3.1ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (1.1ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.2ms) 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, "name" text)  (3.2ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.9ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.9ms) 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)   (2.9ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (1.0ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (3.0ms) 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)  (3.1ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (4.2ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.9ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.9ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.8ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.9ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.9ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (3.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)  (3.1ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (3.2ms) 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)  (2.2ms) 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)   (2.1ms) 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)  (2.2ms) 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)   (2.0ms) 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)  (3.0ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (2.9ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (2.9ms) 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, "fail_detail" text)   (3.1ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (3.1ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.9ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (2.2ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (3.1ms) 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, "query" text)  (0.8ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (3.0ms) 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, "headers" text, "body" bytea, "request" bytea)  (0.9ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.8ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (3.1ms) 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)   (0.8ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.9ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.9ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.4ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (1.0ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.9ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.8ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.2ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (3.1ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (2.9ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (4.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20140605173747')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140520140817')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140603163708')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (137.8ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (343.1ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.4ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.8ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (3.1ms) 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(256), "source_id" integer, "source_type" character varying(255))  (3.1ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (3.1ms) 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), "fail_detail" text)  (2.8ms) 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)   (2.8ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.5ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (0.9ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (1.0ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.9ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.1ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.8ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (1.9ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.0ms) 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, "macro" text)   (3.0ms) 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, "content_type" character varying(255), "name" text, "info" text)  (3.1ms) 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)   (2.1ms) 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, "logins_count" integer DEFAULT 0)  (1.0ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.7ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.7ms) 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)  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.0ms) 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)   (0.8ms) CREATE INDEX "originating_credential_cores" ON "metasploit_credential_origin_cracked_passwords" ("metasploit_credential_core_id")  (3.0ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.7ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (2.0ms) 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)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.7ms) 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)   (1.0ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (3.2ms) 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)   (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (2.8ms) 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, "jtr_format" character varying(255))   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.9ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.6ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.8ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.7ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.6ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.8ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.8ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (3.5ms) 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)  (0.9ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.9ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.8ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.9ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.9ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (1.0ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (3.0ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (1.1ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (3.0ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.9ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (3.1ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.2ms) 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, "name" text)  (2.9ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (1.0ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.9ms) 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)   (2.8ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (1.0ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.9ms) 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)  (2.8ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (3.0ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.9ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.9ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.9ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.9ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.9ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (3.0ms) 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)  (3.0ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (3.1ms) 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)  (2.0ms) 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)   (2.0ms) 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)  (2.2ms) 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)   (2.0ms) 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)  (3.0ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (3.0ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (2.8ms) 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, "fail_detail" text)   (3.1ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (3.2ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.9ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (1.9ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.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, "query" text)  (0.9ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.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, "headers" text, "body" bytea, "request" bytea)  (0.9ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.8ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.9ms) 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)   (1.0ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.8ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.8ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.1ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.9ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.9ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.8ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.0ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (3.0ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (1.0ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (3.4ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140605173747')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140520140817')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140603163708')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (139.8ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (355.0ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.3ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.0ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (21.0ms) 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(256), "source_id" integer, "source_type" character varying(255))  (3.2ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.8ms) 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), "fail_detail" text)  (2.8ms) 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)   (2.8ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.4ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (0.9ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.9ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.8ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.0ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.9ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.9ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (1.9ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (2.9ms) 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, "macro" text)   (2.7ms) 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, "content_type" character varying(255), "name" text, "info" text)  (2.9ms) 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)   (2.1ms) 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, "logins_count" integer DEFAULT 0)  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.7ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.7ms) 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)  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.0ms) 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)   (0.9ms) CREATE INDEX "originating_credential_cores" ON "metasploit_credential_origin_cracked_passwords" ("metasploit_credential_core_id")  (2.6ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (2.1ms) 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)   (1.0ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.9ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.9ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (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, "jtr_format" character varying(255))   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (3.1ms) 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)   (1.3ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (4.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)   (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.7ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.5ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.6ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.6ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.9ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.9ms) 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)  (0.9ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.9ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (1.0ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.9ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (3.0ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.8ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.9ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.7ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (2.9ms) 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, "name" text)  (2.8ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.9ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.7ms) 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)   (2.6ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.9ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.8ms) 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)  (2.8ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.7ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.8ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.9ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.8ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.8ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.9ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.9ms) 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)  (2.8ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (3.0ms) 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)  (2.1ms) 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)   (1.9ms) 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)  (2.1ms) 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)   (1.9ms) 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)  (2.8ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (2.7ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (2.7ms) 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, "fail_detail" text)   (2.9ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (3.1ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (1.9ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.7ms) 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, "query" text)  (0.8ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (3.0ms) 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, "headers" text, "body" bytea, "request" bytea)  (0.8ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.8ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (3.1ms) 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)   (0.9ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.9ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.9ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.3ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (1.0ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.8ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.8ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.5ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.9ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (3.1ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140605173747')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140520140817')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140603163708')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (137.1ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (241.9ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.3ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.8ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (3.1ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.9ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.7ms) 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), "fail_detail" text)  (2.7ms) 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)   (2.7ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.6ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.1ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (1.1ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.9ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.1ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.8ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.0ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.1ms) 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, "macro" text)   (2.9ms) 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, "content_type" character varying(255), "name" text, "info" text)  (2.8ms) 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)   (2.1ms) 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, "logins_count" integer DEFAULT 0)  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (1.1ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.7ms) 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)  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.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)   (0.9ms) CREATE INDEX "originating_credential_cores" ON "metasploit_credential_origin_cracked_passwords" ("metasploit_credential_core_id")  (3.4ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.9ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (2.1ms) 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)   (0.9ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.8ms) 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)   (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (3.7ms) 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)   (1.1ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (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, "jtr_format" character varying(255))   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.8ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (3.1ms) 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)   (2.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.7ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.7ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.7ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (3.0ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.9ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (3.1ms) 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)  (1.0ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.9ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.9ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.9ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (3.0ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (1.0ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.9ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (1.1ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.8ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.9ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.6ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (1.1ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.3ms) 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, "name" text)  (2.9ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.9ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (3.0ms) 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)   (2.8ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.8ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.9ms) 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)  (2.9ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.9ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.9ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (1.0ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.9ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.8ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.9ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (3.4ms) 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)  (3.1ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (3.5ms) 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)  (2.1ms) 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)   (2.0ms) 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)  (2.2ms) 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)   (2.0ms) 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)  (3.2ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (2.9ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (2.8ms) 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, "fail_detail" text)   (3.1ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (3.4ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (5.6ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (2.0ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.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, "query" text)  (0.8ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (3.0ms) 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, "headers" text, "body" bytea, "request" bytea)  (0.9ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.9ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.9ms) 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)   (0.9ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.8ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.8ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.0ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.8ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.8ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (1.1ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.1ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.8ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (2.8ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140605173747')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140520140817')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140603163708')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (130.9ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (231.0ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.1ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.9ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (3.1ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.9ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (4.0ms) 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), "fail_detail" text)  (2.7ms) 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)   (2.9ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.5ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.8ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.8ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.1ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.8ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.0ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.1ms) 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, "macro" text)   (2.8ms) 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, "content_type" character varying(255), "name" text, "info" text)  (3.1ms) 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)   (1.9ms) 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, "logins_count" integer DEFAULT 0)  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (1.0ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.8ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.0ms) 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)   (0.9ms) CREATE INDEX "originating_credential_cores" ON "metasploit_credential_origin_cracked_passwords" ("metasploit_credential_core_id")  (2.6ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.7ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (2.2ms) 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)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.7ms) 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)   (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (3.0ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (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, "jtr_format" character varying(255))   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.7ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.7ms) 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)   (1.1ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (3.3ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (3.2ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (3.1ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.8ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.9ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.8ms) 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)  (0.8ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.8ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.8ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.8ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.9ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (1.0ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.9ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.6ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.7ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.1ms) 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, "name" text)  (2.9ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (1.1ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.9ms) 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)   (2.7ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.8ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.9ms) 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)  (3.0ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (3.0ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (3.0ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.9ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.8ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.9ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.8ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (3.0ms) 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)  (2.9ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (3.0ms) 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)  (1.9ms) 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)   (1.9ms) 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)  (2.1ms) 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)   (1.9ms) 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)  (3.0ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (2.9ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (2.7ms) 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, "fail_detail" text)   (3.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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (3.0ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.8ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (1.9ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.6ms) 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, "query" text)  (0.8ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (3.2ms) 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, "headers" text, "body" bytea, "request" bytea)  (0.9ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.8ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (3.1ms) 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)   (1.0ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.8ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (1.1ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.4ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.9ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.8ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.7ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.2ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (3.3ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (3.3ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140605173747')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140520140817')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140603163708')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (133.9ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (233.8ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.4ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.6ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (3.2ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.9ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.9ms) 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), "fail_detail" text)  (2.7ms) 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)   (3.1ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.5ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.1ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.9ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (1.0ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.2ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.9ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.8ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.0ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.0ms) 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, "macro" text)   (3.3ms) 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, "content_type" character varying(255), "name" text, "info" text)  (2.6ms) 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)   (2.0ms) 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, "logins_count" integer DEFAULT 0)  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (1.0ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (1.0ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.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)  (1.1ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.0ms) 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)   (0.9ms) CREATE INDEX "originating_credential_cores" ON "metasploit_credential_origin_cracked_passwords" ("metasploit_credential_core_id")  (2.8ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (2.0ms) 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)   (0.9ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.7ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (3.0ms) 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)   (1.0ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (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, "jtr_format" character varying(255))   (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.9ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.7ms) 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)   (5.5ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (8.0ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.9ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.6ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.8ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.9ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (3.1ms) 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)  (0.8ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (1.0ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.8ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.9ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.7ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (1.0ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (3.0ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.7ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.9ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.9ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.1ms) 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, "name" text)  (2.8ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.8ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (3.7ms) 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)   (2.8ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (1.1ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.8ms) 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)  (2.9ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.7ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.8ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (1.0ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.8ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.8ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.9ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (3.0ms) 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)  (3.0ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (3.2ms) 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)  (1.9ms) 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)   (1.9ms) 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)  (2.3ms) 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)   (1.9ms) 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)  (3.0ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (2.8ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (2.8ms) 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, "fail_detail" text)   (3.1ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (3.4ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (1.9ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.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, "query" text)  (0.9ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.9ms) 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, "headers" text, "body" bytea, "request" bytea)  (1.0ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.8ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (3.0ms) 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)   (0.9ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (1.0ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.8ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.2ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.9ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.8ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.9ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.1ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.9ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.8ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (3.0ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140605173747')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140520140817')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140603163708')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (134.0ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (232.9ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.2ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.8ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (2.9ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.6ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (3.0ms) 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), "fail_detail" text)  (3.0ms) 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)   (2.8ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.4ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.1ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.9ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.8ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.2ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.9ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.9ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.0ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.0ms) 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, "macro" text)   (2.9ms) 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, "content_type" character varying(255), "name" text, "info" text)  (2.9ms) 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)   (2.0ms) 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, "logins_count" integer DEFAULT 0)  (1.1ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.7ms) 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)  (1.2ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.0ms) 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)   (1.0ms) CREATE INDEX "originating_credential_cores" ON "metasploit_credential_origin_cracked_passwords" ("metasploit_credential_core_id")  (2.7ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.9ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (2.2ms) 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)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.9ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.8ms) 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)   (1.0ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (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, "jtr_format" character varying(255))   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (2.0ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.8ms) 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)   (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.6ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.6ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.7ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.6ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.8ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (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)  (0.8ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.9ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.8ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.8ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.8ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.7ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.6ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.6ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.1ms) 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, "name" text)  (2.7ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.9ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.9ms) 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)   (2.9ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.8ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.8ms) 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)  (2.8ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.6ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.9ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.8ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.8ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.9ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.9ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.9ms) 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)  (2.9ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (2.8ms) 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)  (2.0ms) 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)   (2.0ms) 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)  (2.1ms) 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)   (1.9ms) 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)  (3.0ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (2.7ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (2.8ms) 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, "fail_detail" text)   (3.2ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (3.1ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.9ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (2.0ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.9ms) 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, "query" text)  (0.8ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (3.4ms) 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, "headers" text, "body" bytea, "request" bytea)  (0.8ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.8ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (3.3ms) 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)   (0.8ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.7ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.9ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.4ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.9ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.8ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.8ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.3ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.8ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (3.1ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140605173747')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140520140817')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140603163708')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (133.5ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (377.3ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.5ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.9ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (21.2ms) 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(256), "source_id" integer, "source_type" character varying(255))  (3.0ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.8ms) 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), "fail_detail" text)  (2.8ms) 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)   (2.8ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.4ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.1ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.9ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.9ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.0ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.9ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.0ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (2.9ms) 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, "macro" text)   (2.8ms) 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, "content_type" character varying(255), "name" text, "info" text)  (2.8ms) 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)   (2.2ms) 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, "logins_count" integer DEFAULT 0)  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.7ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.8ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.0ms) 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)   (0.8ms) CREATE INDEX "originating_credential_cores" ON "metasploit_credential_origin_cracked_passwords" ("metasploit_credential_core_id")  (2.5ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.9ms) 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)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.7ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.9ms) 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)   (1.0ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (2.6ms) 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, "jtr_format" character varying(255))   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (2.2ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.5ms) 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)   (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.9ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.6ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.8ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.6ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.8ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (3.1ms) 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)  (0.8ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.8ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.8ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.8ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.9ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.6ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.7ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.6ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.0ms) 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, "name" text)  (2.7ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.9ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.8ms) 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)   (2.7ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.8ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (3.0ms) 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)  (2.9ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (3.9ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.8ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.9ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.8ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.9ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.9ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.9ms) 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)  (2.9ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (3.0ms) 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)  (1.9ms) 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)   (1.9ms) 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)  (2.2ms) 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)   (2.0ms) 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)  (3.3ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (2.6ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (2.7ms) 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, "fail_detail" text)   (3.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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (3.2ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (1.3ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (2.0ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.9ms) 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, "query" text)  (0.8ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.7ms) 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, "headers" text, "body" bytea, "request" bytea)  (0.9ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.9ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.9ms) 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)   (0.8ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.8ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.9ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.1ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.8ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.8ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.8ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.2ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.8ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (2.9ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140605173747')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140520140817')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140603163708')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (133.8ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (256.2ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.5ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.8ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (3.0ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.7ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (3.0ms) 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), "fail_detail" text)  (2.7ms) 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)   (3.1ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.4ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (0.9ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.8ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.9ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.3ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.9ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.0ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.0ms) 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, "macro" text)   (2.9ms) 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, "content_type" character varying(255), "name" text, "info" text)  (3.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)   (1.9ms) 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, "logins_count" integer DEFAULT 0)  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.7ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.6ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.2ms) 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)   (0.7ms) CREATE INDEX "originating_credential_cores" ON "metasploit_credential_origin_cracked_passwords" ("metasploit_credential_core_id")  (2.7ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.9ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (2.0ms) 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)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.7ms) 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)   (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.9ms) 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)   (1.1ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (3.0ms) 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, "jtr_format" character varying(255))   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.9ms) 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)   (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.7ms) 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)   (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.8ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.5ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.9ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.6ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.9ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.8ms) 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)  (0.8ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.8ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.8ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.8ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (3.3ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.9ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.6ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.5ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (1.0ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.1ms) 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, "name" text)  (2.8ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.9ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.7ms) 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)   (2.5ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.9ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.9ms) 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)  (2.8ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (3.4ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.8ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.8ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.9ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.8ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.8ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (3.0ms) 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)  (2.8ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (3.0ms) 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)  (1.9ms) 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)   (2.0ms) 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)  (2.1ms) 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)   (1.9ms) 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)  (2.8ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (2.6ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (2.7ms) 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, "fail_detail" text)   (2.9ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (3.1ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.8ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (1.9ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.7ms) 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, "query" text)  (1.0ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.6ms) 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, "headers" text, "body" bytea, "request" bytea)  (0.8ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.9ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.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)   (0.8ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.8ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.8ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.4ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.9ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.7ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.8ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (4.0ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.8ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.6ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (2.9ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140605173747')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140520140817')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140603163708')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (2.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Connecting to database specified by database.yml  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateTables (0) Migrating to AddWmapTables (1) Migrating to AddWorkspaces (2) Migrating to MoveNotes (3) Migrating to AddEventsTable (4) Migrating to ExpandInfo (5) Migrating to AddTimestamps (6) Migrating to AddLoots (7) Migrating to CreateUsers (8) Migrating to AddLootsCtype (9) Migrating to AddAlertFields (10) Migrating to AddReports (11) Migrating to AddTasks (12) Migrating to AddTasksResult (13) Migrating to AddLootsFields (14) Migrating to RenameUser (15) Migrating to AddHostPurpose (16) Migrating to ExpandInfo2 (17) Migrating to AddWorkspaceUserInfo (18) Migrating to AddWorkspaceDesc (19) Migrating to AddUserPreferences (20) Migrating to StandardizeInfoAndData (21) Migrating to EnlargeEventInfo (22) Migrating to AddReportDownloadedAt (23) Migrating to ConvertServiceInfoToText (24) Migrating to AddUserAdmin (25) Migrating to AddCredsTable (26) Migrating to MigrateCredData (20100819123300) Migrating to AddExploitedTable (20100824151500) Migrating to AddOwnerToWorkspaces (20100908001428) Migrating to AddReportTemplates (20100911122000) Migrating to RequireAdminFlag (20100916151530) Migrating to AddCampaignsAndTemplates (20100916175000) Migrating to AddGenerateExeColumn (20100920012100) Migrating to AddTemplatePrefs (20100926214000) Migrating to AddWebTables (20101001000000) Migrating to AddQuery (20101002000000) Migrating to AddVulnInfo (20101007000000) Migrating to AddClientsToCampaigns (20101008111800) Migrating to AddCampaignAttachments (20101009023300) Migrating to AddImportedCreds (20101104135100) Migrating to FixWebTables (20101203000000) Migrating to ExpandHostComment (20101203000001) Migrating to AddLimitToNetworkToWorkspaces (20101206212033) Migrating to AddModuleUuidToTasks (20110112154300) Migrating to AddHostTags (20110204112800) Migrating to AddSessionTable (20110317144932) Migrating to AddLocalIdToSessionTable (20110414180600) Migrating to AddRoutesTable (20110415175705) Migrating to ConvertBinary (20110422000000) Migrating to AddLastSeenToSessions (20110425095900) Migrating to TrackSuccessfulExploits (20110513143900) Migrating to RenameAndPruneNessusVulns (20110517160800) Migrating to AddTaskIdToReportsTable (20110527000000) Migrating to AddApiKeysTable (20110527000001) Migrating to AddMacrosTable (20110606000001) Migrating to AddSettingsToTasksTable (20110622000000) Migrating to AddListenersTable (20110624000001) Migrating to AddMacroToListenersTable (20110625000001) Migrating to AddNexposeConsolesTable (20110630000001) Migrating to AddNameToNexposeConsolesTable (20110630000002) Migrating to AddProfilesTable (20110717000001) Migrating to ExpandCredPtypeColumn (20110727163801) Migrating to AddInitialIndexes (20110730000001) Migrating to PruneIndexes (20110812000001) Migrating to ExpandNotes (20110922000000) Migrating to AddModRefTable (20110928101300) Migrating to AddDisplayNameToReportsTable (20111011110000) Migrating to InetColumns (20111203000000) Migrating to MoreInetColumns (20111204000000) Migrating to AddScopeToHosts (20111210000000) Migrating to AddVirtualHostToHosts (20120126110000) Migrating to RenameWorkspaceMembers (20120411173220) Migrating to AddCounterCachesToHosts (20120601152442) Migrating to AddVulnDetails (20120625000000) Migrating to AddHostDetails (20120625000001) Migrating to ExpandDetails (20120625000002) Migrating to ExpandDetails2 (20120625000003) Migrating to AddVulnAttempts (20120625000004) Migrating to AddVulnAndHostCounterCaches (20120625000005) Migrating to AddModuleDetails (20120625000006) Migrating to AddExploitAttempts (20120625000007) Migrating to AddFailMessage (20120625000008) Migrating to AddOwnerAndPayloadToWebVulns (20120718202805) Migrating to ChangeRequiredColumnsToNullFalseInWebVulns (20130228214900) Migrating to ChangeForeignKeyInModuleActions (20130412154159) Migrating to ChangeForeignKeyInModuleArchs (20130412171844) Migrating to ChangeForeignKeyInModuleAuthors (20130412173121) Migrating to ChangeForeignKeyInModuleMixins (20130412173640) Migrating to ChangeForeignKeyInModulePlatforms (20130412174254) Migrating to ChangeForeignKeyInModuleRefs (20130412174719) Migrating to ChangeForeignKeyInModuleTargets (20130412175040) Migrating to AddCredsCounterCache (20130423211152) Migrating to ChangeRequiredColumnsToNullFalseInHosts (20130430151353) Migrating to EnforceAddressUniquenessInWorkspaceInHosts (20130430162145) Migrating to RemoveCampaigns (20130510021637) Migrating to ChangeWebVulnsConfidenceToInteger (20130515164311) Migrating to ValidMdmWebVulnParams (20130515172727) Migrating to MakingVulnsRefsARealArModel (20130516204810) Migrating to CreateTaskCreds (20130522001343) Migrating to CreateTaskHosts (20130522032517) Migrating to CreateTaskServices (20130522041110) Migrating to RemoveCampaignIdFromClients (20130525015035) Migrating to DropTableImportedCreds (20130525212420) Migrating to MakingHostTagsARealArModel (20130531144949) Migrating to CreateTaskSessions (20130604145732) Migrating to RemovePnameValidation (20130717150737) Migrating to CreateMetasploitCredentialPublics (20140331173835) Migrating to CreateMetasploitCredentialPrivates (20140407212345) Migrating to CreateMetasploitCredentialRealms (20140410132401) Migrating to UniqueMetasploitCredentialRealms (20140410161611) Migrating to CreateMetasploitCredentialOriginManuals (20140410191213) Migrating to CreateMetasploitCredentialOriginImports (20140410205410) Migrating to CreateMetasploitCredentialOriginSessions (20140411142102) Migrating to CreateMetasploitCredentialOriginServices (20140411205325) Migrating to CreateMetasploitCredentialCores (20140414192550) Migrating to CreateMetasploitCredentialLogins (20140417140933) Migrating to AddLoginsCounterCacheToCores (20140520140817) Migrating to AddJtrFormatToMetasploitCredentialPrivates (20140603163708) Migrating to CreateMetasploitCredentialOriginCrackedPasswords (20140605173747) Migrating to CreateCredentialCoresTasksJoinTable (20140702184622)  (0.2ms) BEGIN  (15.9ms) CREATE TABLE "credential_cores_tasks" ("core_id" integer, "task_id" integer)   (1.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140702184622')  (0.7ms) COMMIT Migrating to CreateCredentialLoginsTasksJoinTable (20140703144541)  (0.1ms) BEGIN  (1.1ms) CREATE TABLE "credential_logins_tasks" ("login_id" integer, "task_id" integer)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140703144541')  (0.3ms) COMMIT  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" Connecting to database specified by database.yml  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (147.6ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (240.5ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.1ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.7ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (0.7ms) CREATE TABLE "credential_cores_tasks" ("core_id" integer, "task_id" integer)  (0.7ms) CREATE TABLE "credential_logins_tasks" ("login_id" integer, "task_id" integer)   (3.2ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.7ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.8ms) 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), "fail_detail" text)  (2.9ms) 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)   (2.8ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.4ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (1.0ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.8ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (0.8ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.9ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.2ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (2.8ms) 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, "macro" text)   (2.8ms) 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, "content_type" character varying(255), "name" text, "info" text)  (3.0ms) 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)   (2.0ms) 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, "logins_count" integer DEFAULT 0)  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (3.0ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.0ms) 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)   (0.9ms) CREATE INDEX "originating_credential_cores" ON "metasploit_credential_origin_cracked_passwords" ("metasploit_credential_core_id")  (2.9ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.9ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (2.1ms) 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)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.7ms) 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)   (1.0ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.7ms) 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)   (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (2.6ms) 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, "jtr_format" character varying(255))   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.8ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.9ms) 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)   (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.7ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (3.0ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.7ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.8ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.9ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.8ms) 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)  (0.8ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (1.0ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.9ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.9ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.7ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.8ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.6ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.7ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.1ms) 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, "name" text)  (3.1ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.9ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.8ms) 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)   (2.8ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.9ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.9ms) 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)  (2.8ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.8ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.9ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.9ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.8ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (1.0ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.8ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (3.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)  (2.8ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (3.0ms) 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)  (2.0ms) 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)   (2.5ms) 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)  (2.2ms) 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)   (2.0ms) 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)  (3.0ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (3.0ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (2.7ms) 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, "fail_detail" text)   (3.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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (2.8ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.8ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (1.7ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.7ms) 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, "query" text)  (1.0ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.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, "headers" text, "body" bytea, "request" bytea)  (0.9ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.9ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (3.0ms) 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)   (0.8ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.8ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.7ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.0ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.8ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.8ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.8ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (2.8ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.7ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (2.9ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140703144541')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140520140817')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140603163708')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140605173747')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140702184622')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (132.2ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (233.7ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.0ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.6ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (0.7ms) CREATE TABLE "credential_cores_tasks" ("core_id" integer, "task_id" integer)  (0.8ms) CREATE TABLE "credential_logins_tasks" ("login_id" integer, "task_id" integer)   (3.1ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.6ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.8ms) 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), "fail_detail" text)  (2.9ms) 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)   (2.8ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.3ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.1ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (1.1ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.8ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (0.8ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.8ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.1ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (2.9ms) 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, "macro" text)   (2.7ms) 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, "content_type" character varying(255), "name" text, "info" text)  (2.7ms) 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)   (1.9ms) 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, "logins_count" integer DEFAULT 0)  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (3.0ms) 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)  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.0ms) 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)   (0.7ms) CREATE INDEX "originating_credential_cores" ON "metasploit_credential_origin_cracked_passwords" ("metasploit_credential_core_id")  (2.6ms) CREATE TABLE "metasploit_credential_origin_imports" ("id" serial primary key, "filename" text NOT NULL, "task_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.9ms) 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)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.7ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.5ms) 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)   (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (2.4ms) 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, "jtr_format" character varying(255))   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (2.0ms) 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)   (0.7ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.6ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.5ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.7ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.5ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.8ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.8ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.9ms) 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)  (0.9ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.8ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.8ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.9ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.8ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.4ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.4ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.7ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.6ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.7ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (2.8ms) 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, "name" text)  (2.6ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.8ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.8ms) 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)   (2.6ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.7ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.8ms) 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)  (2.8ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.5ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.6ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.7ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.7ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.8ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.9ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.8ms) 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)  (2.7ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (2.9ms) 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)  (2.0ms) 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)   (2.1ms) 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)  (3.0ms) 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)   (2.0ms) 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)  (2.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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (3.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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (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, "fail_detail" text)   (2.9ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (3.1ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.8ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (1.9ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.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, "query" text)  (0.9ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (23.2ms) 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, "headers" text, "body" bytea, "request" bytea)  (1.4ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (1.0ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.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)   (4.5ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (1.2ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.8ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.9ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.9ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.9ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (2.8ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.6ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (2.7ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140703144541')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140520140817')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140603163708')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140605173747')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140702184622')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (4.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateTables (0)  (0.1ms) BEGIN  (3.2ms) 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))   (0.7ms) CREATE UNIQUE INDEX "index_hosts_on_address" ON "hosts" ("address")  (2.5ms) 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))   (2.3ms) 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))  (2.2ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created" timestamp, "name" character varying(255), "data" text)   (2.1ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created" timestamp, "name" character varying(512))  (0.5ms) CREATE TABLE "vulns_refs" ("ref_id" integer, "vuln_id" integer)   (2.2ms) CREATE TABLE "notes" ("id" serial primary key, "host_id" integer, "created" timestamp, "ntype" character varying(512), "data" text)  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('0')  (0.8ms) COMMIT Migrating to AddWmapTables (1)  (0.4ms) BEGIN  (2.4ms) 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)  (2.7ms) 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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('1')  (0.5ms) COMMIT Migrating to AddWorkspaces (2)  (0.2ms) BEGIN  (1.7ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.6ms) ALTER TABLE "hosts" ADD COLUMN "workspace_id" integer  (0.3ms) DROP INDEX "index_hosts_on_address"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('2')  (0.9ms) COMMIT Migrating to MoveNotes (3)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "notes" DROP "host_id"  (2.8ms) ALTER TABLE "notes" ADD COLUMN "workspace_id" integer DEFAULT 1 NOT NULL  (0.2ms) ALTER TABLE "notes" ADD COLUMN "service_id" integer  (0.2ms) ALTER TABLE "notes" ADD COLUMN "host_id" integer  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('3')  (0.7ms) COMMIT Migrating to AddEventsTable (4)  (0.1ms) BEGIN  (2.5ms) 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))  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('4')  (0.4ms) COMMIT Migrating to ExpandInfo (5)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "events" DROP "info"  (0.2ms) ALTER TABLE "events" ADD COLUMN "info" character varying(4096)  (0.2ms) ALTER TABLE "notes" DROP "data"  (0.2ms) ALTER TABLE "notes" ADD COLUMN "data" character varying(4096)  (0.2ms) ALTER TABLE "vulns" DROP "data"  (0.2ms) ALTER TABLE "vulns" ADD COLUMN "data" character varying(4096)  (0.2ms) ALTER TABLE "hosts" DROP "info"  (0.2ms) ALTER TABLE "hosts" ADD COLUMN "info" character varying(4096)  (0.2ms) ALTER TABLE "services" DROP "info"  (0.2ms) ALTER TABLE "services" ADD COLUMN "info" character varying(4096)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('5')  (0.3ms) COMMIT Migrating to AddTimestamps (6)  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "clients" RENAME COLUMN "created" TO "created_at"  (0.2ms) ALTER TABLE "hosts" RENAME COLUMN "created" TO "created_at"  (0.2ms) ALTER TABLE "notes" RENAME COLUMN "created" TO "created_at"  (0.2ms) ALTER TABLE "refs" RENAME COLUMN "created" TO "created_at"  (0.2ms) ALTER TABLE "services" RENAME COLUMN "created" TO "created_at"  (0.2ms) ALTER TABLE "vulns" RENAME COLUMN "created" TO "created_at"  (0.2ms) ALTER TABLE "wmap_requests" RENAME COLUMN "created" TO "created_at"  (0.2ms) ALTER TABLE "wmap_targets" ADD COLUMN "created_at" timestamp  (0.2ms) ALTER TABLE "clients" ADD COLUMN "updated_at" timestamp  (0.3ms) ALTER TABLE "events" ADD COLUMN "updated_at" timestamp  (0.2ms) ALTER TABLE "hosts" ADD COLUMN "updated_at" timestamp  (0.2ms) ALTER TABLE "notes" ADD COLUMN "updated_at" timestamp  (0.2ms) ALTER TABLE "refs" ADD COLUMN "updated_at" timestamp  (0.2ms) ALTER TABLE "services" ADD COLUMN "updated_at" timestamp  (0.2ms) ALTER TABLE "vulns" ADD COLUMN "updated_at" timestamp  (0.2ms) ALTER TABLE "wmap_requests" ADD COLUMN "updated_at" timestamp  (0.2ms) ALTER TABLE "wmap_targets" ADD COLUMN "updated_at" timestamp  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('6')  (0.4ms) COMMIT Migrating to AddLoots (7)  (0.1ms) BEGIN  (2.4ms) 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)   (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('7')  (0.3ms) COMMIT Migrating to CreateUsers (8)  (0.2ms) BEGIN  (2.6ms) 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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('8')  (0.4ms) COMMIT Migrating to AddLootsCtype (9)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "loots" ADD COLUMN "content_type" character varying(255)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('9')  (0.3ms) COMMIT Migrating to AddAlertFields (10)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "notes" ADD COLUMN "critical" boolean  (0.2ms) ALTER TABLE "notes" ADD COLUMN "seen" boolean  (0.2ms) ALTER TABLE "events" ADD COLUMN "critical" boolean  (0.2ms) ALTER TABLE "events" ADD COLUMN "seen" boolean  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('10')  (0.3ms) COMMIT Migrating to AddReports (11)  (0.1ms) BEGIN  (2.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)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('11')  (0.4ms) COMMIT Migrating to AddTasks (12)  (0.1ms) BEGIN  (2.7ms) 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)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('12')  (0.4ms) COMMIT Migrating to AddTasksResult (13)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "tasks" ADD COLUMN "result" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('13')  (0.3ms) COMMIT Migrating to AddLootsFields (14)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "loots" ADD COLUMN "name" text  (0.2ms) ALTER TABLE "loots" ADD COLUMN "info" text  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('14')  (0.3ms) COMMIT Migrating to RenameUser (15)  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "events" DROP "user"  (0.2ms) ALTER TABLE "events" ADD COLUMN "username" character varying(255)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('15')  (0.2ms) COMMIT Migrating to AddHostPurpose (16)  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "hosts" ADD COLUMN "purpose" text  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('16')  (0.3ms) COMMIT Migrating to ExpandInfo2 (17)  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "events" DROP "info"  (0.2ms) ALTER TABLE "events" ADD COLUMN "info" character varying(65536)  (0.3ms) ALTER TABLE "notes" DROP "data"  (0.2ms) ALTER TABLE "notes" ADD COLUMN "data" character varying(65536)  (0.2ms) ALTER TABLE "vulns" DROP "data"  (0.2ms) ALTER TABLE "vulns" ADD COLUMN "data" character varying(65536)  (0.2ms) ALTER TABLE "hosts" DROP "info"  (0.2ms) ALTER TABLE "hosts" ADD COLUMN "info" character varying(65536)  (0.2ms) ALTER TABLE "services" DROP "info"  (0.2ms) ALTER TABLE "services" ADD COLUMN "info" character varying(65536)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('17')  (0.3ms) COMMIT Migrating to AddWorkspaceUserInfo (18)  (0.1ms) BEGIN  (1.2ms) ALTER TABLE "workspaces" ADD COLUMN "boundary" character varying(4096)  (0.2ms) ALTER TABLE "users" ADD COLUMN "fullname" character varying(255)  (0.2ms) ALTER TABLE "users" ADD COLUMN "email" character varying(255)  (0.2ms) ALTER TABLE "users" ADD COLUMN "phone" character varying(255)  (0.2ms) ALTER TABLE "users" ADD COLUMN "company" character varying(255)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('18')  (0.3ms) COMMIT Migrating to AddWorkspaceDesc (19)  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "workspaces" ADD COLUMN "description" character varying(4096)  (0.2ms) ALTER TABLE "hosts" ADD COLUMN "comments" character varying(4096)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('19')  (0.3ms) COMMIT Migrating to AddUserPreferences (20)  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "users" ADD COLUMN "prefs" character varying(524288)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20')  (0.3ms) COMMIT Migrating to StandardizeInfoAndData (21)  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "vulns" DROP "data"  (0.2ms) ALTER TABLE "vulns" ADD COLUMN "info" character varying(65536)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('21')  (0.3ms) COMMIT Migrating to EnlargeEventInfo (22)  (0.1ms) BEGIN  (0.4ms) ALTER TABLE "events" ALTER COLUMN "info" TYPE text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('22')  (0.3ms) COMMIT Migrating to AddReportDownloadedAt (23)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "reports" ADD COLUMN "downloaded_at" timestamp  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('23')  (0.4ms) COMMIT Migrating to ConvertServiceInfoToText (24)  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "services" ALTER COLUMN "info" TYPE text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('24')  (0.3ms) COMMIT Migrating to AddUserAdmin (25)  (0.1ms) BEGIN  (2.6ms) ALTER TABLE "users" ADD COLUMN "admin" boolean DEFAULT 't'  (0.5ms) CREATE TABLE "project_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('25')  (0.7ms) COMMIT Migrating to AddCredsTable (26)  (0.1ms) BEGIN  (2.8ms) 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))  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('26')  (0.5ms) COMMIT Migrating to MigrateCredData (20100819123300)  (0.2ms) BEGIN Mdm::Note Load (0.3ms) SELECT "notes".* FROM "notes" Mdm::Note Load (0.2ms) SELECT "notes".* FROM "notes"   (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100819123300')  (0.3ms) COMMIT Migrating to AddExploitedTable (20100824151500)  (0.1ms) BEGIN  (2.6ms) 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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100824151500')  (0.5ms) COMMIT Migrating to AddOwnerToWorkspaces (20100908001428)  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "workspaces" ADD COLUMN "owner_id" integer  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100908001428')  (0.3ms) COMMIT Migrating to AddReportTemplates (20100911122000)  (0.1ms) BEGIN  (2.7ms) 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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100911122000')  (0.3ms) COMMIT Migrating to RequireAdminFlag (20100916151530)  (0.2ms) BEGIN SQL (0.3ms) UPDATE "users" SET "admin" = 't' WHERE "users"."admin" IS NULL  (0.4ms) ALTER TABLE "users" ALTER COLUMN "admin" TYPE boolean  (0.2ms) ALTER TABLE "users" ALTER COLUMN "admin" SET DEFAULT 't'  (0.2ms) UPDATE "users" SET "admin"='t' WHERE "admin" IS NULL  (0.1ms) ALTER TABLE "users" ALTER "admin" SET NOT NULL  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100916151530')  (0.3ms) COMMIT Migrating to AddCampaignsAndTemplates (20100916175000)  (0.1ms) BEGIN  (2.5ms) 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)   (2.1ms) CREATE TABLE "email_templates" ("id" serial primary key, "name" character varying(512), "subject" character varying(1024), "body" text, "parent_id" integer, "campaign_id" integer)  (2.4ms) 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)   (0.4ms) CREATE TABLE "attachments_email_templates" ("attachment_id" integer, "email_template_id" integer)  (2.3ms) 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)   (2.4ms) CREATE TABLE "web_templates" ("id" serial primary key, "name" character varying(512), "title" character varying(512), "body" character varying(524288), "campaign_id" integer)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100916175000')  (0.7ms) COMMIT Migrating to AddGenerateExeColumn (20100920012100)  (0.4ms) BEGIN  (2.5ms) ALTER TABLE "email_templates" ADD COLUMN "generate_exe" boolean DEFAULT 'f' NOT NULL  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100920012100')  (0.6ms) COMMIT Migrating to AddTemplatePrefs (20100926214000)  (0.1ms) BEGIN  (0.4ms) ALTER TABLE "email_templates" DROP "generate_exe"  (0.2ms) ALTER TABLE "email_templates" ADD COLUMN "prefs" text  (0.2ms) ALTER TABLE "web_templates" ADD COLUMN "prefs" text  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100926214000')  (0.4ms) COMMIT Migrating to AddWebTables (20101001000000)  (0.1ms) BEGIN  (2.4ms) 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)  (2.6ms) 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)   (2.4ms) 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)  (2.3ms) 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))   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101001000000')  (0.7ms) COMMIT Migrating to AddQuery (20101002000000)  (0.3ms) BEGIN  (0.3ms) ALTER TABLE "web_forms" ADD COLUMN "query" text  (0.2ms) ALTER TABLE "web_vulns" ADD COLUMN "query" text  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101002000000')  (0.4ms) COMMIT Migrating to AddVulnInfo (20101007000000)  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "web_vulns" ADD COLUMN "category" text  (0.2ms) ALTER TABLE "web_vulns" ADD COLUMN "confidence" text  (0.2ms) ALTER TABLE "web_vulns" ADD COLUMN "description" text  (0.2ms) ALTER TABLE "web_vulns" ADD COLUMN "blame" text  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101007000000')  (0.2ms) COMMIT Migrating to AddClientsToCampaigns (20101008111800)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "clients" ADD COLUMN "campaign_id" integer  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101008111800')  (0.3ms) COMMIT Migrating to AddCampaignAttachments (20101009023300)  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "attachments" ADD COLUMN "campaign_id" integer  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101009023300')  (0.2ms) COMMIT Migrating to AddImportedCreds (20101104135100)  (0.1ms) BEGIN  (2.6ms) 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')   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101104135100')  (0.4ms) COMMIT Migrating to FixWebTables (20101203000000)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "web_pages" ALTER COLUMN "path" TYPE text  (0.2ms) ALTER TABLE "web_pages" ALTER COLUMN "query" TYPE text  (0.2ms) ALTER TABLE "web_pages" ALTER COLUMN "cookie" TYPE text  (0.2ms) ALTER TABLE "web_pages" ALTER COLUMN "auth" TYPE text  (0.2ms) ALTER TABLE "web_pages" ALTER COLUMN "ctype" TYPE text  (0.2ms) ALTER TABLE "web_pages" ALTER COLUMN "location" TYPE text  (0.2ms) ALTER TABLE "web_pages" ALTER COLUMN "path" TYPE text  (0.2ms) ALTER TABLE "web_vulns" ALTER COLUMN "path" TYPE text  (0.2ms) ALTER TABLE "web_vulns" ALTER COLUMN "pname" TYPE text  (0.2ms) ALTER TABLE "web_pages" ADD COLUMN "request" text  (0.2ms) ALTER TABLE "web_vulns" ADD COLUMN "request" text  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101203000000')  (0.3ms) COMMIT Migrating to ExpandHostComment (20101203000001)  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "hosts" ALTER COLUMN "comments" TYPE text  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101203000001')  (0.3ms) COMMIT Migrating to AddLimitToNetworkToWorkspaces (20101206212033)  (0.1ms) BEGIN  (2.5ms) ALTER TABLE "workspaces" ADD COLUMN "limit_to_network" boolean DEFAULT 'f' NOT NULL  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101206212033')  (0.7ms) COMMIT Migrating to AddModuleUuidToTasks (20110112154300)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "tasks" ADD COLUMN "module_uuid" character varying(8)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110112154300')  (0.3ms) COMMIT Migrating to AddHostTags (20110204112800)  (0.1ms) BEGIN  (2.9ms) 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)   (0.5ms) CREATE TABLE "hosts_tags" ("host_id" integer, "tag_id" integer)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110204112800')  (0.4ms) COMMIT Migrating to AddSessionTable (20110317144932)  (0.2ms) BEGIN  (14.7ms) 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))  (7.2ms) 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)  AddSessionTable::Event Load (0.5ms) SELECT "events".* FROM "events" WHERE "events"."name" = 'session_close' AddSessionTable::Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."name" = 'session_open' AddSessionTable::Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."name" = 'session_command' AddSessionTable::Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."name" = 'session_output' AddSessionTable::Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."name" = 'session_upload' AddSessionTable::Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."name" = 'session_download'  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110317144932')  (0.4ms) COMMIT Migrating to AddLocalIdToSessionTable (20110414180600)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "sessions" ADD COLUMN "local_id" integer  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110414180600')  (0.3ms) COMMIT Migrating to AddRoutesTable (20110415175705)  (0.1ms) BEGIN  (2.5ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))   (0.2ms) ALTER TABLE "sessions" DROP "routes"  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110415175705')  (0.4ms) COMMIT Migrating to ConvertBinary (20110422000000)  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "web_pages" RENAME COLUMN "body" TO "body_text"  (0.2ms) ALTER TABLE "web_pages" RENAME COLUMN "request" TO "request_text"  (0.2ms) ALTER TABLE "web_vulns" RENAME COLUMN "request" TO "request_text"  (0.2ms) ALTER TABLE "web_vulns" RENAME COLUMN "proof" TO "proof_text"  (0.2ms) ALTER TABLE "web_pages" ADD COLUMN "body" bytea  (0.2ms) ALTER TABLE "web_pages" ADD COLUMN "request" bytea  (0.2ms) ALTER TABLE "web_vulns" ADD COLUMN "request" bytea  (0.2ms) ALTER TABLE "web_vulns" ADD COLUMN "proof" bytea ConvertBinary::WebPage Load (0.3ms) SELECT "web_pages".* FROM "web_pages" ConvertBinary::WebPage Load (0.2ms) SELECT "web_pages".* FROM "web_pages"  ConvertBinary::WebVuln Load (0.3ms) SELECT "web_vulns".* FROM "web_vulns" ConvertBinary::WebVuln Load (0.2ms) SELECT "web_vulns".* FROM "web_vulns"   (0.2ms) ALTER TABLE "web_pages" DROP "body_text"  (0.2ms) ALTER TABLE "web_pages" DROP "request_text"  (0.2ms) ALTER TABLE "web_vulns" DROP "request_text"  (0.2ms) ALTER TABLE "web_vulns" DROP "proof_text"  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110422000000')  (0.4ms) COMMIT Migrating to AddLastSeenToSessions (20110425095900)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "sessions" ADD COLUMN "last_seen" timestamp  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110425095900')  (0.3ms) COMMIT Migrating to TrackSuccessfulExploits (20110513143900)  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "vulns" ADD COLUMN "exploited_at" timestamp TrackSuccessfulExploits::ExploitedHost Load (0.3ms) SELECT "exploited_hosts".* FROM "exploited_hosts"  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110513143900')  (0.3ms) COMMIT Migrating to RenameAndPruneNessusVulns (20110517160800)  (0.1ms) BEGIN RenameAndPruneNessusVulns::Vuln Load (0.3ms) SELECT "vulns".* FROM "vulns"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110517160800')  (0.4ms) COMMIT Migrating to AddTaskIdToReportsTable (20110527000000)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "reports" ADD COLUMN "task_id" integer  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110527000000')  (0.3ms) COMMIT Migrating to AddApiKeysTable (20110527000001)  (0.1ms) BEGIN  (2.5ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110527000001')  (0.3ms) COMMIT Migrating to AddMacrosTable (20110606000001)  (0.2ms) BEGIN  (2.4ms) 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)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110606000001')  (0.4ms) COMMIT Migrating to AddSettingsToTasksTable (20110622000000)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "tasks" ADD COLUMN "settings" bytea  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110622000000')  (0.3ms) COMMIT Migrating to AddListenersTable (20110624000001)  (0.1ms) BEGIN  (2.6ms) 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)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110624000001')  (0.4ms) COMMIT Migrating to AddMacroToListenersTable (20110625000001)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "listeners" ADD COLUMN "macro" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110625000001')  (0.3ms) COMMIT Migrating to AddNexposeConsolesTable (20110630000001)  (0.1ms) BEGIN  (2.8ms) 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)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110630000001')  (0.4ms) COMMIT Migrating to AddNameToNexposeConsolesTable (20110630000002)  (0.2ms) BEGIN  (0.2ms) ALTER TABLE "nexpose_consoles" ADD COLUMN "name" text  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110630000002')  (0.3ms) COMMIT Migrating to AddProfilesTable (20110717000001)  (0.1ms) BEGIN  (2.5ms) 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)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110717000001')  (0.4ms) COMMIT Migrating to ExpandCredPtypeColumn (20110727163801)  (0.2ms) BEGIN  (0.4ms) ALTER TABLE "creds" ALTER COLUMN "ptype" TYPE character varying(256)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110727163801')  (0.3ms) COMMIT Migrating to AddInitialIndexes (20110730000001)  (0.1ms) BEGIN  (0.8ms) CREATE INDEX "index_hosts_on_address" ON "hosts" ("address")  (0.6ms) CREATE INDEX "index_hosts_on_address6" ON "hosts" ("address6")  (0.6ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.7ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.7ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (0.7ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.7ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.6ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.7ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.5ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (0.7ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.7ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (0.6ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (0.5ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (0.7ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (0.7ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.6ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.7ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.6ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (0.6ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (0.7ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (0.6ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.7ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110730000001')  (0.5ms) COMMIT Migrating to PruneIndexes (20110812000001)  (0.1ms) BEGIN  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110812000001')  (0.3ms) COMMIT Migrating to ExpandNotes (20110922000000)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "notes" ALTER COLUMN "data" TYPE text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110922000000')  (0.4ms) COMMIT Migrating to AddModRefTable (20110928101300)  (0.1ms) BEGIN  (2.5ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110928101300')  (0.4ms) COMMIT Migrating to AddDisplayNameToReportsTable (20111011110000)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "reports" ADD COLUMN "name" character varying(63) AddDisplayNameToReportsTable::Report Load (0.3ms) SELECT "reports".* FROM "reports"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20111011110000')  (0.3ms) COMMIT Migrating to InetColumns (20111203000000)  (0.1ms) BEGIN  (6.2ms) ALTER TABLE "hosts" ALTER COLUMN "address" TYPE INET using address::INET  (0.3ms) ALTER TABLE "hosts" DROP "address6"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20111203000000')  (1.4ms) COMMIT Migrating to MoreInetColumns (20111204000000)  (0.2ms) BEGIN  (2.7ms) ALTER TABLE "wmap_requests" ALTER COLUMN "address" TYPE INET using address::INET  (0.2ms) ALTER TABLE "wmap_requests" DROP "address6"  (2.5ms) ALTER TABLE "wmap_targets" ALTER COLUMN "address" TYPE INET using address::INET  (0.2ms) ALTER TABLE "wmap_targets" DROP "address6"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20111204000000')  (0.9ms) COMMIT Migrating to AddScopeToHosts (20111210000000)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "hosts" ADD COLUMN "scope" text  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20111210000000')  (0.3ms) COMMIT Migrating to AddVirtualHostToHosts (20120126110000)  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "hosts" ADD COLUMN "virtual_host" text  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120126110000')  (0.2ms) COMMIT Migrating to RenameWorkspaceMembers (20120411173220)  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "project_members" RENAME TO "workspace_members"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120411173220')  (0.3ms) COMMIT Migrating to AddCounterCachesToHosts (20120601152442)  (0.1ms) BEGIN  (5.2ms) ALTER TABLE "hosts" ADD COLUMN "note_count" integer DEFAULT 0  (5.0ms) ALTER TABLE "hosts" ADD COLUMN "vuln_count" integer DEFAULT 0  (4.9ms) ALTER TABLE "hosts" ADD COLUMN "service_count" integer DEFAULT 0 Mdm::Host Load (0.4ms) SELECT "hosts".* FROM "hosts"   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120601152442')  (4.1ms) COMMIT Migrating to AddVulnDetails (20120625000000)  (0.3ms) BEGIN  (2.9ms) 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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000000')  (0.3ms) COMMIT Migrating to AddHostDetails (20120625000001)  (0.1ms) BEGIN  (1.9ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000001')  (0.3ms) COMMIT Migrating to ExpandDetails (20120625000002)  (0.2ms) BEGIN  (0.2ms) ALTER TABLE "vuln_details" ADD COLUMN "nx_vuln_status" text  (0.2ms) ALTER TABLE "vuln_details" ADD COLUMN "nx_proof_key" text  (0.2ms) ALTER TABLE "vuln_details" ADD COLUMN "src" character varying(255)  (0.2ms) ALTER TABLE "host_details" ADD COLUMN "src" character varying(255)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000002')  (0.3ms) COMMIT Migrating to ExpandDetails2 (20120625000003)  (0.1ms) BEGIN  (1.2ms) ALTER TABLE "host_details" ADD COLUMN "nx_site_name" character varying(255)  (0.2ms) ALTER TABLE "host_details" ADD COLUMN "nx_site_importance" character varying(255)  (0.2ms) ALTER TABLE "host_details" ADD COLUMN "nx_scan_template" character varying(255)  (0.2ms) ALTER TABLE "host_details" ADD COLUMN "nx_risk_score" float  (0.2ms) ALTER TABLE "vuln_details" ADD COLUMN "nx_scan_id" integer  (0.2ms) ALTER TABLE "vuln_details" ADD COLUMN "nx_vulnerable_since" timestamp  (0.2ms) ALTER TABLE "vuln_details" ADD COLUMN "nx_pci_compliance_status" character varying(255)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000003')  (0.4ms) COMMIT Migrating to AddVulnAttempts (20120625000004)  (0.1ms) BEGIN  (2.7ms) 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)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000004')  (0.4ms) COMMIT Migrating to AddVulnAndHostCounterCaches (20120625000005)  (0.1ms) BEGIN  (5.5ms) ALTER TABLE "hosts" ADD COLUMN "host_detail_count" integer DEFAULT 0  (3.3ms) ALTER TABLE "vulns" ADD COLUMN "vuln_detail_count" integer DEFAULT 0  (3.9ms) ALTER TABLE "vulns" ADD COLUMN "vuln_attempt_count" integer DEFAULT 0  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000005')  (2.3ms) COMMIT Migrating to AddModuleDetails (20120625000006)  (0.2ms) BEGIN  (2.8ms) 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)  (0.8ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (0.8ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.7ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.7ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (2.5ms) CREATE TABLE "module_authors" ("id" serial primary key, "module_detail_id" integer, "name" text, "email" text)   (0.7ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("module_detail_id")  (2.5ms) CREATE TABLE "module_mixins" ("id" serial primary key, "module_detail_id" integer, "name" text)   (0.7ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("module_detail_id")  (2.5ms) CREATE TABLE "module_targets" ("id" serial primary key, "module_detail_id" integer, "index" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("module_detail_id")  (2.4ms) CREATE TABLE "module_actions" ("id" serial primary key, "module_detail_id" integer, "name" text)   (13.2ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("module_detail_id")  (10.0ms) CREATE TABLE "module_refs" ("id" serial primary key, "module_detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("module_detail_id")  (0.9ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.6ms) CREATE TABLE "module_archs" ("id" serial primary key, "module_detail_id" integer, "name" text)  (0.7ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("module_detail_id")  (2.5ms) CREATE TABLE "module_platforms" ("id" serial primary key, "module_detail_id" integer, "name" text)  (0.7ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("module_detail_id")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000006')  (1.0ms) COMMIT Migrating to AddExploitAttempts (20120625000007)  (0.5ms) BEGIN  (3.1ms) 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))   (5.2ms) ALTER TABLE "hosts" ADD COLUMN "exploit_attempt_count" integer DEFAULT 0  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000007')  (1.1ms) COMMIT Migrating to AddFailMessage (20120625000008)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "vuln_attempts" ADD COLUMN "fail_detail" text  (0.2ms) ALTER TABLE "exploit_attempts" ADD COLUMN "fail_detail" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000008')  (0.3ms) COMMIT Migrating to AddOwnerAndPayloadToWebVulns (20120718202805)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "web_vulns" ADD COLUMN "owner" character varying(255)  (0.2ms) ALTER TABLE "web_vulns" ADD COLUMN "payload" text  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120718202805')  (0.3ms) COMMIT Migrating to ChangeRequiredColumnsToNullFalseInWebVulns (20130228214900)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "web_vulns" ALTER "category" SET NOT NULL  (0.2ms) ALTER TABLE "web_vulns" ALTER "confidence" SET NOT NULL  (0.1ms) ALTER TABLE "web_vulns" ALTER "method" SET NOT NULL  (0.2ms) ALTER TABLE "web_vulns" ALTER "name" SET NOT NULL  (0.2ms) ALTER TABLE "web_vulns" ALTER "params" SET NOT NULL  (0.2ms) ALTER TABLE "web_vulns" ALTER "path" SET NOT NULL  (0.2ms) ALTER TABLE "web_vulns" ALTER "pname" SET NOT NULL  (0.2ms) ALTER TABLE "web_vulns" ALTER "proof" SET NOT NULL  (0.2ms) ALTER TABLE "web_vulns" ALTER "risk" SET NOT NULL  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130228214900')  (0.3ms) COMMIT Migrating to ChangeForeignKeyInModuleActions (20130412154159)  (0.1ms) BEGIN  (0.4ms) ALTER TABLE "module_actions" RENAME COLUMN "module_detail_id" TO "detail_id"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130412154159')  (0.3ms) COMMIT Migrating to ChangeForeignKeyInModuleArchs (20130412171844)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "module_archs" RENAME COLUMN "module_detail_id" TO "detail_id"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130412171844')  (0.3ms) COMMIT Migrating to ChangeForeignKeyInModuleAuthors (20130412173121)  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "module_authors" RENAME COLUMN "module_detail_id" TO "detail_id"  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130412173121')  (0.4ms) COMMIT Migrating to ChangeForeignKeyInModuleMixins (20130412173640)  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "module_mixins" RENAME COLUMN "module_detail_id" TO "detail_id"  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130412173640')  (0.3ms) COMMIT Migrating to ChangeForeignKeyInModulePlatforms (20130412174254)  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "module_platforms" RENAME COLUMN "module_detail_id" TO "detail_id"  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130412174254')  (0.3ms) COMMIT Migrating to ChangeForeignKeyInModuleRefs (20130412174719)  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "module_refs" RENAME COLUMN "module_detail_id" TO "detail_id"  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130412174719')  (0.3ms) COMMIT Migrating to ChangeForeignKeyInModuleTargets (20130412175040)  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "module_targets" RENAME COLUMN "module_detail_id" TO "detail_id"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130412175040')  (0.3ms) COMMIT Migrating to AddCredsCounterCache (20130423211152)  (0.1ms) BEGIN  (5.6ms) ALTER TABLE "hosts" ADD COLUMN "cred_count" integer DEFAULT 0 Mdm::Cred Load (0.3ms) SELECT "creds".* FROM "creds"   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130423211152')  (1.0ms) COMMIT Migrating to ChangeRequiredColumnsToNullFalseInHosts (20130430151353)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "hosts" ALTER "address" SET NOT NULL  (0.2ms) ALTER TABLE "hosts" ALTER "workspace_id" SET NOT NULL  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130430151353')  (0.3ms) COMMIT Migrating to EnforceAddressUniquenessInWorkspaceInHosts (20130430162145)  (0.1ms) BEGIN  (0.8ms) SELECT workspace_id, address, count_addr FROM ( SELECT workspace_id, address, COUNT(address) AS count_addr FROM hosts GROUP BY address, workspace_id ) X WHERE count_addr > 1  (0.2ms) DROP INDEX "index_hosts_on_address"  (0.9ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130430162145')  (0.5ms) COMMIT Migrating to RemoveCampaigns (20130510021637)  (0.1ms) BEGIN  (0.9ms) DROP TABLE "attachments"  (0.3ms) DROP TABLE "attachments_email_templates"  (0.7ms) DROP TABLE "email_addresses"  (0.8ms) DROP TABLE "email_templates"  (0.6ms) DROP TABLE "web_templates"  (0.9ms) DROP TABLE "campaigns"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130510021637')  (1.8ms) COMMIT Migrating to ChangeWebVulnsConfidenceToInteger (20130515164311)  (0.2ms) BEGIN  (4.2ms) ALTER TABLE web_vulns ALTER COLUMN confidence TYPE integer USING confidence::integer  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130515164311')  (0.9ms) COMMIT Migrating to ValidMdmWebVulnParams (20130515172727)  (0.1ms) BEGIN Mdm::WebVuln Load (0.5ms) SELECT "web_vulns".* FROM "web_vulns" ORDER BY "web_vulns"."id" ASC LIMIT 1000  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130515172727')  (0.4ms) COMMIT Migrating to MakingVulnsRefsARealArModel (20130516204810)  (0.1ms) BEGIN  (2.5ms) ALTER TABLE "vulns_refs" ADD COLUMN "id" serial primary key  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130516204810')  (0.5ms) COMMIT Migrating to CreateTaskCreds (20130522001343)  (0.1ms) BEGIN  (1.8ms) 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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130522001343')  (0.3ms) COMMIT Migrating to CreateTaskHosts (20130522032517)  (0.1ms) BEGIN  (1.9ms) 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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130522032517')  (0.3ms) COMMIT Migrating to CreateTaskServices (20130522041110)  (0.1ms) BEGIN  (1.9ms) 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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130522041110')  (0.4ms) COMMIT Migrating to RemoveCampaignIdFromClients (20130525015035)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "clients" DROP "campaign_id"  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130525015035')  (0.4ms) COMMIT Migrating to DropTableImportedCreds (20130525212420)  (0.1ms) BEGIN  (0.8ms) DROP TABLE "imported_creds"  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130525212420')  (0.7ms) COMMIT Migrating to MakingHostTagsARealArModel (20130531144949)  (0.1ms) BEGIN  (2.5ms) ALTER TABLE "hosts_tags" ADD COLUMN "id" serial primary key  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130531144949')  (0.6ms) COMMIT Migrating to CreateTaskSessions (20130604145732)  (0.2ms) BEGIN  (1.8ms) 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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130604145732')  (0.3ms) COMMIT Migrating to RemovePnameValidation (20130717150737)  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "web_vulns" ALTER COLUMN "pname" TYPE text  (0.1ms) ALTER TABLE "web_vulns" ALTER "pname" DROP NOT NULL  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130717150737')  (0.3ms) COMMIT Migrating to CreateMetasploitCredentialPublics (20140331173835)  (0.1ms) BEGIN  (1.9ms) 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)  (0.7ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140331173835')  (0.4ms) COMMIT Migrating to CreateMetasploitCredentialPrivates (20140407212345)  (0.1ms) BEGIN  (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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140407212345')  (0.4ms) COMMIT Migrating to CreateMetasploitCredentialRealms (20140410132401)  (0.1ms) BEGIN  (2.7ms) 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)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140410132401')  (0.4ms) COMMIT Migrating to UniqueMetasploitCredentialRealms (20140410161611)  (0.2ms) BEGIN  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140410161611')  (0.3ms) COMMIT Migrating to CreateMetasploitCredentialOriginManuals (20140410191213)  (0.1ms) BEGIN  (1.8ms) 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)  (0.7ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140410191213')  (0.4ms) COMMIT Migrating to CreateMetasploitCredentialOriginImports (20140410205410)  (0.1ms) BEGIN  (2.7ms) 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)   (0.7ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140410205410')  (0.4ms) COMMIT Migrating to CreateMetasploitCredentialOriginSessions (20140411142102)  (0.2ms) BEGIN  (2.6ms) 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)  (0.7ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140411142102')  (0.4ms) COMMIT Migrating to CreateMetasploitCredentialOriginServices (20140411205325)  (0.1ms) BEGIN  (2.4ms) 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)   (0.7ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140411205325')  (0.4ms) COMMIT Migrating to CreateMetasploitCredentialCores (20140414192550)  (0.1ms) BEGIN  (1.9ms) 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)  (0.7ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.7ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.7ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.5ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.7ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140414192550')  (0.4ms) COMMIT Migrating to CreateMetasploitCredentialLogins (20140417140933)  (0.2ms) BEGIN  (2.6ms) 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)   (0.7ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.6ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140417140933')  (0.3ms) COMMIT Migrating to AddLoginsCounterCacheToCores (20140520140817)  (0.2ms) BEGIN  (3.9ms) ALTER TABLE "metasploit_credential_cores" ADD COLUMN "logins_count" integer DEFAULT 0 Metasploit::Credential::Core Load (0.3ms) SELECT "metasploit_credential_cores".* FROM "metasploit_credential_cores"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140520140817')  (0.9ms) COMMIT Migrating to AddJtrFormatToMetasploitCredentialPrivates (20140603163708)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "metasploit_credential_privates" ADD COLUMN "jtr_format" character varying(255)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140603163708')  (0.3ms) COMMIT Migrating to CreateMetasploitCredentialOriginCrackedPasswords (20140605173747)  (0.1ms) BEGIN  (2.0ms) 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)  (0.6ms) CREATE INDEX "originating_credential_cores" ON "metasploit_credential_origin_cracked_passwords" ("metasploit_credential_core_id")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140605173747')  (0.3ms) COMMIT Migrating to CreateCredentialCoresTasksJoinTable (20140702184622)  (0.1ms) BEGIN  (0.6ms) CREATE TABLE "credential_cores_tasks" ("core_id" integer, "task_id" integer)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140702184622')  (0.3ms) COMMIT Migrating to CreateCredentialLoginsTasksJoinTable (20140703144541)  (0.1ms) BEGIN  (0.6ms) CREATE TABLE "credential_logins_tasks" ("login_id" integer, "task_id" integer)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140703144541')  (0.3ms) COMMIT  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Connecting to database specified by database.yml  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (116.8ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (242.0ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (7.5ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (4.3ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (1.1ms) CREATE TABLE "credential_cores_tasks" ("core_id" integer, "task_id" integer)  (0.9ms) CREATE TABLE "credential_logins_tasks" ("login_id" integer, "task_id" integer)   (2.9ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.4ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (4.3ms) 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), "fail_detail" text)  (4.1ms) 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)   (4.0ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.2ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (1.2ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.7ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (0.8ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.9ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.2ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (2.8ms) 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, "macro" text)   (2.8ms) 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, "content_type" character varying(255), "name" text, "info" text)  (2.7ms) 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)   (2.0ms) 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, "logins_count" integer DEFAULT 0)  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (1.0ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.7ms) 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)  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (1.9ms) 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)   (0.8ms) CREATE INDEX "originating_credential_cores" ON "metasploit_credential_origin_cracked_passwords" ("metasploit_credential_core_id")  (2.7ms) 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)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.9ms) 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)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.7ms) 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)   (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.7ms) 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)   (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (2.5ms) 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, "jtr_format" character varying(255))   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (2.0ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.8ms) 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)   (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.4ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.6ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.7ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.8ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.8ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.8ms) 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)  (0.8ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.7ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.8ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.9ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.8ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.4ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.9ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.6ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (1.1ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.1ms) 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, "name" text)  (3.0ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.9ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.9ms) 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)   (2.6ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.8ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (3.0ms) 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)  (2.9ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.8ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.7ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.8ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (1.0ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (1.0ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.9ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (3.2ms) 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)  (3.0ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (3.1ms) 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)  (1.8ms) 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)   (2.1ms) 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)  (2.2ms) 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)   (1.9ms) 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)  (4.6ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (4.8ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (4.7ms) 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, "fail_detail" text)   (4.7ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (4.9ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (1.2ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (3.1ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (4.3ms) 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, "query" text)  (1.2ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (4.6ms) 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, "headers" text, "body" bytea, "request" bytea)  (1.3ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (1.4ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (4.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)   (1.2ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (1.3ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (1.3ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (4.9ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (1.3ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (1.3ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (1.5ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (4.6ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (4.2ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.8ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (2.7ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140703144541')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140520140817')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140603163708')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140605173747')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140702184622')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (137.9ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (229.9ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (6.2ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.6ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (0.6ms) CREATE TABLE "credential_cores_tasks" ("core_id" integer, "task_id" integer)  (0.6ms) CREATE TABLE "credential_logins_tasks" ("login_id" integer, "task_id" integer)   (2.9ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.7ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (3.3ms) 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), "fail_detail" text)  (2.9ms) 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)   (2.5ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.4ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (0.9ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (1.2ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.8ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (0.8ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.9ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.0ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (2.8ms) 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, "macro" text)   (2.5ms) 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, "content_type" character varying(255), "name" text, "info" text)  (22.6ms) 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)   (2.4ms) 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, "logins_count" integer DEFAULT 0)  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.7ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.6ms) 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)  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (1.8ms) 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)   (0.9ms) CREATE INDEX "originating_credential_cores" ON "metasploit_credential_origin_cracked_passwords" ("metasploit_credential_core_id")  (2.7ms) 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)   (0.9ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.8ms) 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)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.7ms) 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)   (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.7ms) 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)   (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (2.4ms) 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, "jtr_format" character varying(255))   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.9ms) 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)   (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.7ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.5ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.2ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.8ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.7ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.8ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.9ms) 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)  (0.8ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.7ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.8ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.9ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.6ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (1.1ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.6ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.5ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.9ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.6ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (2.9ms) 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, "name" text)  (3.0ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.8ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.6ms) 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)   (2.5ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (2.1ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.9ms) 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)  (2.6ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.7ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.8ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (3.8ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.9ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.8ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.8ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.8ms) 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)  (2.8ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (3.1ms) 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)  (2.0ms) 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)   (2.0ms) 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)  (1.8ms) 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)   (4.1ms) 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)  (3.1ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (4.3ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (6.5ms) 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, "fail_detail" text)   (3.9ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (3.0ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.8ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (2.0ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.9ms) 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, "query" text)  (0.8ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.6ms) 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, "headers" text, "body" bytea, "request" bytea)  (2.3ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (1.1ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.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)   (0.8ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.8ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.8ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (1.0ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (1.0ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.9ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.1ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.8ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (3.0ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140703144541')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140520140817')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140603163708')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140605173747')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140702184622')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (7.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (138.9ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (360.0ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (6.7ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.1ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (0.7ms) CREATE TABLE "credential_cores_tasks" ("core_id" integer, "task_id" integer)  (0.8ms) CREATE TABLE "credential_logins_tasks" ("login_id" integer, "task_id" integer)   (20.5ms) 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(256), "source_id" integer, "source_type" character varying(255))  (3.3ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (3.4ms) 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), "fail_detail" text)  (3.5ms) 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)   (3.1ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.6ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.1ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (1.1ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (1.0ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.1ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.9ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.8ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.3ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.8ms) 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, "macro" text)   (2.9ms) 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, "content_type" character varying(255), "name" text, "info" text)  (3.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)   (2.3ms) 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, "logins_count" integer DEFAULT 0)  (1.3ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (1.0ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (1.0ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (3.3ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.1ms) 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)   (1.0ms) CREATE INDEX "originating_credential_cores" ON "metasploit_credential_origin_cracked_passwords" ("metasploit_credential_core_id")  (2.9ms) 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)   (1.0ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (2.1ms) 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)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.9ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.8ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (2.9ms) 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, "jtr_format" character varying(255))   (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (2.0ms) 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)   (1.6ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (3.7ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.6ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (3.6ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.8ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (3.4ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.9ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (4.6ms) 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)  (1.3ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.9ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.8ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.9ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.9ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (1.2ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (3.6ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.9ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (3.1ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.1ms) 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, "name" text)  (3.0ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (1.5ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.9ms) 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)   (2.7ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.8ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (3.0ms) 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)  (3.1ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.8ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (3.2ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.8ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (1.0ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (1.1ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.9ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (3.5ms) 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)  (3.1ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (3.9ms) 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)  (2.1ms) 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)   (2.1ms) 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)  (2.2ms) 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)   (2.1ms) 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)  (3.1ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (3.5ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (2.8ms) 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, "fail_detail" text)   (3.8ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (3.5ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (1.1ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (2.3ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (3.1ms) 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, "query" text)  (1.0ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (3.6ms) 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, "headers" text, "body" bytea, "request" bytea)  (0.9ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (1.0ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (3.0ms) 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)   (1.4ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (1.1ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (1.0ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.1ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.9ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.9ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.9ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.0ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.9ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.8ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (3.2ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20140703144541')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140520140817')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140603163708')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140605173747')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140702184622')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (144.6ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (374.4ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.5ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.9ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (0.6ms) CREATE TABLE "credential_cores_tasks" ("core_id" integer, "task_id" integer)  (0.8ms) CREATE TABLE "credential_logins_tasks" ("login_id" integer, "task_id" integer)   (21.1ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.9ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.9ms) 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), "fail_detail" text)  (3.0ms) 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)   (3.3ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.5ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (1.3ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.9ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (0.9ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.8ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.8ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.2ms) 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, "macro" text)   (3.5ms) 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, "content_type" character varying(255), "name" text, "info" text)  (3.0ms) 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)   (2.1ms) 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, "logins_count" integer DEFAULT 0)  (1.0ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (1.0ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (3.0ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.1ms) 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)   (0.8ms) CREATE INDEX "originating_credential_cores" ON "metasploit_credential_origin_cracked_passwords" ("metasploit_credential_core_id")  (2.9ms) 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)   (0.7ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (2.0ms) 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)   (0.9ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (3.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)   (1.0ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.7ms) 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)   (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (2.8ms) 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, "jtr_format" character varying(255))   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.9ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.8ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.7ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.8ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.4ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.9ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.9ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.8ms) 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)  (0.8ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.8ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.9ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.8ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.7ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.7ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.7ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.7ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.7ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (1.0ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.5ms) 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, "name" text)  (2.9ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (1.0ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (3.8ms) 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)   (2.8ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.9ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.8ms) 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)  (2.9ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.9ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.8ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.9ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (1.0ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.9ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (1.1ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (3.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)  (2.7ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (3.2ms) 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)  (1.9ms) 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)   (2.1ms) 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)  (2.1ms) 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)   (2.0ms) 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)  (2.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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (2.9ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (2.7ms) 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, "fail_detail" text)   (2.8ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (3.3ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.9ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (2.0ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.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, "query" text)  (1.0ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (3.0ms) 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, "headers" text, "body" bytea, "request" bytea)  (0.9ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.8ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (3.0ms) 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)   (0.8ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.9ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.8ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.1ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.9ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.8ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.8ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.0ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.7ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (1.0ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (2.9ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140703144541')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140520140817')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140603163708')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140605173747')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140702184622')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (136.2ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (346.6ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.4ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.9ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (0.7ms) CREATE TABLE "credential_cores_tasks" ("core_id" integer, "task_id" integer)  (0.7ms) CREATE TABLE "credential_logins_tasks" ("login_id" integer, "task_id" integer)   (20.8ms) 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(256), "source_id" integer, "source_type" character varying(255))  (3.2ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.9ms) 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), "fail_detail" text)  (2.9ms) 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)   (2.7ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.4ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (1.2ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.9ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (0.9ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.9ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.8ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.1ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (2.9ms) 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, "macro" text)   (2.9ms) 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, "content_type" character varying(255), "name" text, "info" text)  (3.0ms) 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)   (2.1ms) 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, "logins_count" integer DEFAULT 0)  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.8ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.1ms) 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)   (0.9ms) CREATE INDEX "originating_credential_cores" ON "metasploit_credential_origin_cracked_passwords" ("metasploit_credential_core_id")  (3.2ms) 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)   (0.9ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (2.1ms) 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)   (0.9ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.9ms) 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)   (1.1ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.8ms) 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)   (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (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, "jtr_format" character varying(255))   (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.8ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (3.3ms) 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)   (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (3.1ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (3.2ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.7ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (1.2ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (3.1ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.9ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (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)  (0.8ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.9ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.8ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.8ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.7ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.7ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.7ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.9ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.3ms) 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, "name" text)  (2.7ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.9ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.7ms) 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)   (2.7ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.9ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (3.0ms) 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)  (2.9ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.7ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.9ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.8ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.7ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.8ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (1.0ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (3.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)  (3.1ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (3.4ms) 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)  (1.8ms) 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)   (2.3ms) 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)  (2.1ms) 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)   (1.8ms) 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)  (3.0ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (3.2ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (2.7ms) 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, "fail_detail" text)   (9.4ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (9.5ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (1.1ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (1.9ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.9ms) 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, "query" text)  (0.8ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.9ms) 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, "headers" text, "body" bytea, "request" bytea)  (1.0ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (1.0ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.9ms) 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)   (0.8ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.8ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.9ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.0ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.8ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.9ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.9ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (6.2ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (6.7ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.9ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (3.0ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140703144541')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140520140817')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140603163708')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140605173747')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140702184622')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (132.2ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (353.4ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.5ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.8ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (0.9ms) CREATE TABLE "credential_cores_tasks" ("core_id" integer, "task_id" integer)  (0.6ms) CREATE TABLE "credential_logins_tasks" ("login_id" integer, "task_id" integer)   (3.0ms) 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(256), "source_id" integer, "source_type" character varying(255))  (3.1ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.8ms) 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), "fail_detail" text)  (2.8ms) 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)   (2.8ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.3ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.1ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (1.4ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.9ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.0ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (1.0ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (1.0ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.2ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.0ms) 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, "macro" text)   (2.7ms) 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, "content_type" character varying(255), "name" text, "info" text)  (3.0ms) 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)   (2.1ms) 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, "logins_count" integer DEFAULT 0)  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.7ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (1.0ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.5ms) 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)   (1.0ms) CREATE INDEX "originating_credential_cores" ON "metasploit_credential_origin_cracked_passwords" ("metasploit_credential_core_id")  (2.9ms) 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)   (0.9ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (2.1ms) 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)   (1.0ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.9ms) 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)   (1.0ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.9ms) 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)   (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (2.9ms) 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, "jtr_format" character varying(255))   (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (2.2ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.8ms) 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)   (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.7ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.9ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.6ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (3.1ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.8ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (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)  (1.0ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.9ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (1.0ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (1.0ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (3.1ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.8ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.8ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.5ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (1.2ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.0ms) 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, "name" text)  (2.9ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.9ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.8ms) 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)   (20.6ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (1.2ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.8ms) 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)  (2.7ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.8ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.8ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (1.0ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.8ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.8ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (1.0ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (3.3ms) 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)  (2.9ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (3.1ms) 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)  (2.0ms) 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)   (2.1ms) 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)  (2.1ms) 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)   (2.0ms) 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)  (2.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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (3.7ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (2.8ms) 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, "fail_detail" text)   (3.1ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (6.8ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (1.1ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (6.2ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.9ms) 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, "query" text)  (0.8ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.9ms) 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, "headers" text, "body" bytea, "request" bytea)  (0.8ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (1.1ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.8ms) 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)   (4.3ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (1.1ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.9ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.3ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.9ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.8ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.9ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.6ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.9ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.8ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (2.7ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.5ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140703144541')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140520140817')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140603163708')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140605173747')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140702184622')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (130.9ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (377.4ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.4ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.9ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (0.6ms) CREATE TABLE "credential_cores_tasks" ("core_id" integer, "task_id" integer)  (0.6ms) CREATE TABLE "credential_logins_tasks" ("login_id" integer, "task_id" integer)   (3.1ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.9ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (3.0ms) 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), "fail_detail" text)  (3.0ms) 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)   (2.8ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.6ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.4ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (1.2ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.9ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (0.9ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (1.0ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.3ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (2.9ms) 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, "macro" text)   (2.8ms) 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, "content_type" character varying(255), "name" text, "info" text)  (3.0ms) 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)   (2.5ms) 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, "logins_count" integer DEFAULT 0)  (1.0ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.7ms) 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)  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.2ms) 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)   (0.8ms) CREATE INDEX "originating_credential_cores" ON "metasploit_credential_origin_cracked_passwords" ("metasploit_credential_core_id")  (2.9ms) 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)   (0.9ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.9ms) 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)   (0.9ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.8ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.6ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (2.8ms) 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, "jtr_format" character varying(255))   (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (2.0ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (3.7ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (3.0ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.6ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.8ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (3.1ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (1.0ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.7ms) 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)  (0.9ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (1.0ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.9ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.9ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.8ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.6ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.6ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.7ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.7ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.3ms) 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, "name" text)  (2.9ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.9ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (3.0ms) 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)   (2.8ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.9ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (3.0ms) 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)  (2.9ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.6ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (3.6ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.9ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.9ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.9ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.8ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.9ms) 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)  (3.1ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (3.5ms) 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)  (1.9ms) 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)   (2.0ms) 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)  (1.9ms) 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)   (2.1ms) 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)  (3.8ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (3.0ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (2.9ms) 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, "fail_detail" text)   (3.5ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (3.2ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.8ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (1.8ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (3.1ms) 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, "query" text)  (0.9ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.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, "headers" text, "body" bytea, "request" bytea)  (0.8ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.9ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (3.4ms) 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)   (0.8ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.8ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (1.0ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.0ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.9ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.9ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.9ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.0ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (3.2ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.8ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (3.0ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140703144541')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140520140817')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140603163708')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140605173747')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140702184622')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (131.0ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (358.9ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.6ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.6ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (0.8ms) CREATE TABLE "credential_cores_tasks" ("core_id" integer, "task_id" integer)  (0.7ms) CREATE TABLE "credential_logins_tasks" ("login_id" integer, "task_id" integer)   (3.2ms) 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(256), "source_id" integer, "source_type" character varying(255))  (3.0ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.8ms) 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), "fail_detail" text)  (2.8ms) 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)   (2.9ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.3ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.2ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (1.3ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.7ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.2ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.9ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.2ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.2ms) 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, "macro" text)   (3.0ms) 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, "content_type" character varying(255), "name" text, "info" text)  (3.0ms) 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)   (1.9ms) 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, "logins_count" integer DEFAULT 0)  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.7ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.7ms) 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)  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (1.2ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.1ms) 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)   (1.1ms) CREATE INDEX "originating_credential_cores" ON "metasploit_credential_origin_cracked_passwords" ("metasploit_credential_core_id")  (3.0ms) 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)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (2.3ms) 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)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (3.0ms) 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)   (1.0ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.8ms) 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)   (1.0ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (3.1ms) 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, "jtr_format" character varying(255))   (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.8ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.8ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.7ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (3.0ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.8ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (3.3ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.8ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.9ms) 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)  (0.8ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (1.0ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.8ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.9ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.8ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.5ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (3.3ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (1.0ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.9ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.6ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.0ms) 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, "name" text)  (2.8ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.8ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.8ms) 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)   (2.7ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (1.0ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (3.0ms) 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)  (2.7ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (3.0ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.9ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (1.0ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.8ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (1.0ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.8ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (5.8ms) 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)  (4.2ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (4.6ms) 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)  (2.1ms) 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)   (2.1ms) 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)  (2.2ms) 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)   (2.0ms) 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)  (3.1ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (2.8ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (2.8ms) 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, "fail_detail" text)   (3.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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (3.2ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.9ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (1.9ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.7ms) 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, "query" text)  (0.9ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (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, "headers" text, "body" bytea, "request" bytea)  (1.0ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (1.0ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (3.1ms) 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)   (1.0ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (1.0ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.7ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.1ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (1.0ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (1.0ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (1.0ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.1ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (3.0ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.9ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (3.0ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140703144541')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140520140817')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140603163708')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140605173747')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140702184622')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (5.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateTables (0)  (0.1ms) BEGIN  (4.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))   (0.7ms) CREATE UNIQUE INDEX "index_hosts_on_address" ON "hosts" ("address")  (2.5ms) 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))   (2.6ms) 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))  (2.3ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created" timestamp, "name" character varying(255), "data" text)   (2.5ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created" timestamp, "name" character varying(512))  (0.4ms) CREATE TABLE "vulns_refs" ("ref_id" integer, "vuln_id" integer)   (2.5ms) CREATE TABLE "notes" ("id" serial primary key, "host_id" integer, "created" timestamp, "ntype" character varying(512), "data" text)  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('0')  (0.8ms) COMMIT Migrating to AddWmapTables (1)  (0.4ms) BEGIN  (2.7ms) 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)  (4.9ms) 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)   (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ('1')  (0.6ms) COMMIT Migrating to AddWorkspaces (2)  (0.2ms) BEGIN  (2.0ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.7ms) ALTER TABLE "hosts" ADD COLUMN "workspace_id" integer  (0.3ms) DROP INDEX "index_hosts_on_address"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('2')  (0.9ms) COMMIT Migrating to MoveNotes (3)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "notes" DROP "host_id"  (3.1ms) ALTER TABLE "notes" ADD COLUMN "workspace_id" integer DEFAULT 1 NOT NULL  (0.2ms) ALTER TABLE "notes" ADD COLUMN "service_id" integer  (0.2ms) ALTER TABLE "notes" ADD COLUMN "host_id" integer  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('3')  (0.7ms) COMMIT Migrating to AddEventsTable (4)  (0.1ms) BEGIN  (2.8ms) 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))  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('4')  (0.4ms) COMMIT Migrating to ExpandInfo (5)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "events" DROP "info"  (0.2ms) ALTER TABLE "events" ADD COLUMN "info" character varying(4096)  (0.2ms) ALTER TABLE "notes" DROP "data"  (0.2ms) ALTER TABLE "notes" ADD COLUMN "data" character varying(4096)  (0.2ms) ALTER TABLE "vulns" DROP "data"  (0.2ms) ALTER TABLE "vulns" ADD COLUMN "data" character varying(4096)  (0.2ms) ALTER TABLE "hosts" DROP "info"  (0.2ms) ALTER TABLE "hosts" ADD COLUMN "info" character varying(4096)  (0.2ms) ALTER TABLE "services" DROP "info"  (0.2ms) ALTER TABLE "services" ADD COLUMN "info" character varying(4096)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('5')  (0.4ms) COMMIT Migrating to AddTimestamps (6)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "clients" RENAME COLUMN "created" TO "created_at"  (0.2ms) ALTER TABLE "hosts" RENAME COLUMN "created" TO "created_at"  (0.2ms) ALTER TABLE "notes" RENAME COLUMN "created" TO "created_at"  (0.2ms) ALTER TABLE "refs" RENAME COLUMN "created" TO "created_at"  (0.2ms) ALTER TABLE "services" RENAME COLUMN "created" TO "created_at"  (0.2ms) ALTER TABLE "vulns" RENAME COLUMN "created" TO "created_at"  (0.2ms) ALTER TABLE "wmap_requests" RENAME COLUMN "created" TO "created_at"  (0.2ms) ALTER TABLE "wmap_targets" ADD COLUMN "created_at" timestamp  (0.2ms) ALTER TABLE "clients" ADD COLUMN "updated_at" timestamp  (0.2ms) ALTER TABLE "events" ADD COLUMN "updated_at" timestamp  (0.2ms) ALTER TABLE "hosts" ADD COLUMN "updated_at" timestamp  (0.2ms) ALTER TABLE "notes" ADD COLUMN "updated_at" timestamp  (0.2ms) ALTER TABLE "refs" ADD COLUMN "updated_at" timestamp  (0.2ms) ALTER TABLE "services" ADD COLUMN "updated_at" timestamp  (0.2ms) ALTER TABLE "vulns" ADD COLUMN "updated_at" timestamp  (0.2ms) ALTER TABLE "wmap_requests" ADD COLUMN "updated_at" timestamp  (0.2ms) ALTER TABLE "wmap_targets" ADD COLUMN "updated_at" timestamp  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('6')  (5.8ms) COMMIT Migrating to AddLoots (7)  (0.2ms) BEGIN  (15.0ms) 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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('7')  (0.5ms) COMMIT Migrating to CreateUsers (8)  (0.2ms) BEGIN  (2.7ms) 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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('8')  (0.4ms) COMMIT Migrating to AddLootsCtype (9)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "loots" ADD COLUMN "content_type" character varying(255)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('9')  (0.3ms) COMMIT Migrating to AddAlertFields (10)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "notes" ADD COLUMN "critical" boolean  (0.3ms) ALTER TABLE "notes" ADD COLUMN "seen" boolean  (0.2ms) ALTER TABLE "events" ADD COLUMN "critical" boolean  (0.2ms) ALTER TABLE "events" ADD COLUMN "seen" boolean  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('10')  (0.3ms) COMMIT Migrating to AddReports (11)  (0.1ms) BEGIN  (2.8ms) 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)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('11')  (0.4ms) COMMIT Migrating to AddTasks (12)  (0.1ms) BEGIN  (3.1ms) 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)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('12')  (0.4ms) COMMIT Migrating to AddTasksResult (13)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "tasks" ADD COLUMN "result" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('13')  (0.3ms) COMMIT Migrating to AddLootsFields (14)  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "loots" ADD COLUMN "name" text  (0.2ms) ALTER TABLE "loots" ADD COLUMN "info" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('14')  (0.3ms) COMMIT Migrating to RenameUser (15)  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "events" DROP "user"  (0.2ms) ALTER TABLE "events" ADD COLUMN "username" character varying(255)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('15')  (0.3ms) COMMIT Migrating to AddHostPurpose (16)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "hosts" ADD COLUMN "purpose" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('16')  (0.4ms) COMMIT Migrating to ExpandInfo2 (17)  (0.1ms) BEGIN  (0.4ms) ALTER TABLE "events" DROP "info"  (0.2ms) ALTER TABLE "events" ADD COLUMN "info" character varying(65536)  (0.3ms) ALTER TABLE "notes" DROP "data"  (0.2ms) ALTER TABLE "notes" ADD COLUMN "data" character varying(65536)  (0.2ms) ALTER TABLE "vulns" DROP "data"  (0.2ms) ALTER TABLE "vulns" ADD COLUMN "data" character varying(65536)  (0.2ms) ALTER TABLE "hosts" DROP "info"  (0.2ms) ALTER TABLE "hosts" ADD COLUMN "info" character varying(65536)  (0.2ms) ALTER TABLE "services" DROP "info"  (0.2ms) ALTER TABLE "services" ADD COLUMN "info" character varying(65536)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('17')  (6.2ms) COMMIT Migrating to AddWorkspaceUserInfo (18)  (0.2ms) BEGIN  (7.2ms) ALTER TABLE "workspaces" ADD COLUMN "boundary" character varying(4096)  (0.4ms) ALTER TABLE "users" ADD COLUMN "fullname" character varying(255)  (0.3ms) ALTER TABLE "users" ADD COLUMN "email" character varying(255)  (0.2ms) ALTER TABLE "users" ADD COLUMN "phone" character varying(255)  (0.2ms) ALTER TABLE "users" ADD COLUMN "company" character varying(255)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('18')  (4.6ms) COMMIT Migrating to AddWorkspaceDesc (19)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "workspaces" ADD COLUMN "description" character varying(4096)  (0.3ms) ALTER TABLE "hosts" ADD COLUMN "comments" character varying(4096)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('19')  (0.2ms) COMMIT Migrating to AddUserPreferences (20)  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "users" ADD COLUMN "prefs" character varying(524288)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20')  (0.2ms) COMMIT Migrating to StandardizeInfoAndData (21)  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "vulns" DROP "data"  (0.2ms) ALTER TABLE "vulns" ADD COLUMN "info" character varying(65536)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('21')  (0.2ms) COMMIT Migrating to EnlargeEventInfo (22)  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "events" ALTER COLUMN "info" TYPE text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('22')  (0.3ms) COMMIT Migrating to AddReportDownloadedAt (23)  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "reports" ADD COLUMN "downloaded_at" timestamp  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('23')  (0.2ms) COMMIT Migrating to ConvertServiceInfoToText (24)  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "services" ALTER COLUMN "info" TYPE text  (1.8ms) INSERT INTO "schema_migrations" ("version") VALUES ('24')  (0.3ms) COMMIT Migrating to AddUserAdmin (25)  (0.1ms) BEGIN  (2.7ms) ALTER TABLE "users" ADD COLUMN "admin" boolean DEFAULT 't'  (0.6ms) CREATE TABLE "project_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('25')  (0.7ms) COMMIT Migrating to AddCredsTable (26)  (0.1ms) BEGIN  (2.9ms) 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))  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('26')  (0.5ms) COMMIT Migrating to MigrateCredData (20100819123300)  (0.2ms) BEGIN Mdm::Note Load (0.3ms) SELECT "notes".* FROM "notes" Mdm::Note Load (0.2ms) SELECT "notes".* FROM "notes"   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100819123300')  (0.4ms) COMMIT Migrating to AddExploitedTable (20100824151500)  (0.1ms) BEGIN  (5.1ms) 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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100824151500')  (0.5ms) COMMIT Migrating to AddOwnerToWorkspaces (20100908001428)  (0.2ms) BEGIN  (0.2ms) ALTER TABLE "workspaces" ADD COLUMN "owner_id" integer  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100908001428')  (0.3ms) COMMIT Migrating to AddReportTemplates (20100911122000)  (0.1ms) BEGIN  (2.7ms) 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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100911122000')  (0.3ms) COMMIT Migrating to RequireAdminFlag (20100916151530)  (0.2ms) BEGIN SQL (0.4ms) UPDATE "users" SET "admin" = 't' WHERE "users"."admin" IS NULL  (0.4ms) ALTER TABLE "users" ALTER COLUMN "admin" TYPE boolean  (0.3ms) ALTER TABLE "users" ALTER COLUMN "admin" SET DEFAULT 't'  (0.2ms) UPDATE "users" SET "admin"='t' WHERE "admin" IS NULL  (0.2ms) ALTER TABLE "users" ALTER "admin" SET NOT NULL  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100916151530')  (6.1ms) COMMIT Migrating to AddCampaignsAndTemplates (20100916175000)  (0.2ms) BEGIN  (14.3ms) 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)   (2.7ms) CREATE TABLE "email_templates" ("id" serial primary key, "name" character varying(512), "subject" character varying(1024), "body" text, "parent_id" integer, "campaign_id" integer)  (2.5ms) 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)   (0.4ms) CREATE TABLE "attachments_email_templates" ("attachment_id" integer, "email_template_id" integer)  (2.9ms) 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)   (2.5ms) CREATE TABLE "web_templates" ("id" serial primary key, "name" character varying(512), "title" character varying(512), "body" character varying(524288), "campaign_id" integer)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100916175000')  (0.7ms) COMMIT Migrating to AddGenerateExeColumn (20100920012100)  (0.4ms) BEGIN  (2.8ms) ALTER TABLE "email_templates" ADD COLUMN "generate_exe" boolean DEFAULT 'f' NOT NULL  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100920012100')  (0.7ms) COMMIT Migrating to AddTemplatePrefs (20100926214000)  (0.1ms) BEGIN  (0.4ms) ALTER TABLE "email_templates" DROP "generate_exe"  (0.2ms) ALTER TABLE "email_templates" ADD COLUMN "prefs" text  (0.2ms) ALTER TABLE "web_templates" ADD COLUMN "prefs" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100926214000')  (0.4ms) COMMIT Migrating to AddWebTables (20101001000000)  (0.1ms) BEGIN  (2.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)  (2.7ms) 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)   (3.1ms) 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)  (2.5ms) 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))   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101001000000')  (0.7ms) COMMIT Migrating to AddQuery (20101002000000)  (0.3ms) BEGIN  (0.3ms) ALTER TABLE "web_forms" ADD COLUMN "query" text  (0.2ms) ALTER TABLE "web_vulns" ADD COLUMN "query" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101002000000')  (0.3ms) COMMIT Migrating to AddVulnInfo (20101007000000)  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "web_vulns" ADD COLUMN "category" text  (0.2ms) ALTER TABLE "web_vulns" ADD COLUMN "confidence" text  (0.2ms) ALTER TABLE "web_vulns" ADD COLUMN "description" text  (0.2ms) ALTER TABLE "web_vulns" ADD COLUMN "blame" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101007000000')  (0.3ms) COMMIT Migrating to AddClientsToCampaigns (20101008111800)  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "clients" ADD COLUMN "campaign_id" integer  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101008111800')  (0.3ms) COMMIT Migrating to AddCampaignAttachments (20101009023300)  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "attachments" ADD COLUMN "campaign_id" integer  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101009023300')  (0.3ms) COMMIT Migrating to AddImportedCreds (20101104135100)  (0.1ms) BEGIN  (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')   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101104135100')  (0.4ms) COMMIT Migrating to FixWebTables (20101203000000)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "web_pages" ALTER COLUMN "path" TYPE text  (0.2ms) ALTER TABLE "web_pages" ALTER COLUMN "query" TYPE text  (0.2ms) ALTER TABLE "web_pages" ALTER COLUMN "cookie" TYPE text  (0.2ms) ALTER TABLE "web_pages" ALTER COLUMN "auth" TYPE text  (0.2ms) ALTER TABLE "web_pages" ALTER COLUMN "ctype" TYPE text  (0.2ms) ALTER TABLE "web_pages" ALTER COLUMN "location" TYPE text  (0.2ms) ALTER TABLE "web_pages" ALTER COLUMN "path" TYPE text  (0.2ms) ALTER TABLE "web_vulns" ALTER COLUMN "path" TYPE text  (0.2ms) ALTER TABLE "web_vulns" ALTER COLUMN "pname" TYPE text  (0.2ms) ALTER TABLE "web_pages" ADD COLUMN "request" text  (0.2ms) ALTER TABLE "web_vulns" ADD COLUMN "request" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101203000000')  (0.4ms) COMMIT Migrating to ExpandHostComment (20101203000001)  (0.1ms) BEGIN  (0.4ms) ALTER TABLE "hosts" ALTER COLUMN "comments" TYPE text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101203000001')  (0.4ms) COMMIT Migrating to AddLimitToNetworkToWorkspaces (20101206212033)  (0.1ms) BEGIN  (2.7ms) ALTER TABLE "workspaces" ADD COLUMN "limit_to_network" boolean DEFAULT 'f' NOT NULL  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101206212033')  (0.7ms) COMMIT Migrating to AddModuleUuidToTasks (20110112154300)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "tasks" ADD COLUMN "module_uuid" character varying(8)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110112154300')  (0.3ms) COMMIT Migrating to AddHostTags (20110204112800)  (0.1ms) BEGIN  (2.8ms) 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)   (0.5ms) CREATE TABLE "hosts_tags" ("host_id" integer, "tag_id" integer)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110204112800')  (0.5ms) COMMIT Migrating to AddSessionTable (20110317144932)  (0.2ms) BEGIN  (8.8ms) 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))  (2.7ms) 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)  AddSessionTable::Event Load (0.5ms) SELECT "events".* FROM "events" WHERE "events"."name" = 'session_close' AddSessionTable::Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."name" = 'session_open' AddSessionTable::Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."name" = 'session_command' AddSessionTable::Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."name" = 'session_output' AddSessionTable::Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."name" = 'session_upload' AddSessionTable::Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."name" = 'session_download'  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110317144932')  (0.5ms) COMMIT Migrating to AddLocalIdToSessionTable (20110414180600)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "sessions" ADD COLUMN "local_id" integer  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110414180600')  (0.4ms) COMMIT Migrating to AddRoutesTable (20110415175705)  (0.1ms) BEGIN  (4.9ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))   (0.3ms) ALTER TABLE "sessions" DROP "routes"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110415175705')  (0.4ms) COMMIT Migrating to ConvertBinary (20110422000000)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "web_pages" RENAME COLUMN "body" TO "body_text"  (0.2ms) ALTER TABLE "web_pages" RENAME COLUMN "request" TO "request_text"  (0.3ms) ALTER TABLE "web_vulns" RENAME COLUMN "request" TO "request_text"  (0.2ms) ALTER TABLE "web_vulns" RENAME COLUMN "proof" TO "proof_text"  (0.3ms) ALTER TABLE "web_pages" ADD COLUMN "body" bytea  (0.3ms) ALTER TABLE "web_pages" ADD COLUMN "request" bytea  (0.3ms) ALTER TABLE "web_vulns" ADD COLUMN "request" bytea  (0.2ms) ALTER TABLE "web_vulns" ADD COLUMN "proof" bytea ConvertBinary::WebPage Load (0.4ms) SELECT "web_pages".* FROM "web_pages" ConvertBinary::WebPage Load (0.2ms) SELECT "web_pages".* FROM "web_pages"  ConvertBinary::WebVuln Load (0.4ms) SELECT "web_vulns".* FROM "web_vulns" ConvertBinary::WebVuln Load (0.2ms) SELECT "web_vulns".* FROM "web_vulns"   (0.2ms) ALTER TABLE "web_pages" DROP "body_text"  (0.2ms) ALTER TABLE "web_pages" DROP "request_text"  (0.2ms) ALTER TABLE "web_vulns" DROP "request_text"  (0.2ms) ALTER TABLE "web_vulns" DROP "proof_text"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110422000000')  (0.4ms) COMMIT Migrating to AddLastSeenToSessions (20110425095900)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "sessions" ADD COLUMN "last_seen" timestamp  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110425095900')  (0.3ms) COMMIT Migrating to TrackSuccessfulExploits (20110513143900)  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "vulns" ADD COLUMN "exploited_at" timestamp TrackSuccessfulExploits::ExploitedHost Load (0.3ms) SELECT "exploited_hosts".* FROM "exploited_hosts"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110513143900')  (0.3ms) COMMIT Migrating to RenameAndPruneNessusVulns (20110517160800)  (0.1ms) BEGIN RenameAndPruneNessusVulns::Vuln Load (0.3ms) SELECT "vulns".* FROM "vulns"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110517160800')  (0.3ms) COMMIT Migrating to AddTaskIdToReportsTable (20110527000000)  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "reports" ADD COLUMN "task_id" integer  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110527000000')  (0.3ms) COMMIT Migrating to AddApiKeysTable (20110527000001)  (0.1ms) BEGIN  (4.7ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110527000001')  (0.4ms) COMMIT Migrating to AddMacrosTable (20110606000001)  (0.2ms) BEGIN  (14.0ms) 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)  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110606000001')  (6.1ms) COMMIT Migrating to AddSettingsToTasksTable (20110622000000)  (5.0ms) BEGIN  (0.4ms) ALTER TABLE "tasks" ADD COLUMN "settings" bytea  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110622000000')  (0.5ms) COMMIT Migrating to AddListenersTable (20110624000001)  (0.1ms) BEGIN  (2.9ms) 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)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110624000001')  (0.4ms) COMMIT Migrating to AddMacroToListenersTable (20110625000001)  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "listeners" ADD COLUMN "macro" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110625000001')  (0.3ms) COMMIT Migrating to AddNexposeConsolesTable (20110630000001)  (0.1ms) BEGIN  (2.9ms) 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)  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110630000001')  (0.4ms) COMMIT Migrating to AddNameToNexposeConsolesTable (20110630000002)  (0.2ms) BEGIN  (0.2ms) ALTER TABLE "nexpose_consoles" ADD COLUMN "name" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110630000002')  (0.3ms) COMMIT Migrating to AddProfilesTable (20110717000001)  (0.1ms) BEGIN  (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)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110717000001')  (0.3ms) COMMIT Migrating to ExpandCredPtypeColumn (20110727163801)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "creds" ALTER COLUMN "ptype" TYPE character varying(256)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110727163801')  (0.3ms) COMMIT Migrating to AddInitialIndexes (20110730000001)  (0.1ms) BEGIN  (0.8ms) CREATE INDEX "index_hosts_on_address" ON "hosts" ("address")  (0.7ms) CREATE INDEX "index_hosts_on_address6" ON "hosts" ("address6")  (0.6ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.7ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.7ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (0.7ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.7ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.7ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.6ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.6ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (0.7ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.6ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (0.6ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (0.6ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (0.8ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (6.1ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (6.8ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (10.1ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.8ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (0.8ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (0.7ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (0.7ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.7ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110730000001')  (0.4ms) COMMIT Migrating to PruneIndexes (20110812000001)  (0.2ms) BEGIN  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110812000001')  (0.3ms) COMMIT Migrating to ExpandNotes (20110922000000)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "notes" ALTER COLUMN "data" TYPE text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110922000000')  (0.3ms) COMMIT Migrating to AddModRefTable (20110928101300)  (0.1ms) BEGIN  (2.7ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110928101300')  (0.4ms) COMMIT Migrating to AddDisplayNameToReportsTable (20111011110000)  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "reports" ADD COLUMN "name" character varying(63) AddDisplayNameToReportsTable::Report Load (0.4ms) SELECT "reports".* FROM "reports"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20111011110000')  (0.4ms) COMMIT Migrating to InetColumns (20111203000000)  (0.1ms) BEGIN  (6.3ms) ALTER TABLE "hosts" ALTER COLUMN "address" TYPE INET using address::INET  (0.3ms) ALTER TABLE "hosts" DROP "address6"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20111203000000')  (1.3ms) COMMIT Migrating to MoreInetColumns (20111204000000)  (0.1ms) BEGIN  (2.8ms) ALTER TABLE "wmap_requests" ALTER COLUMN "address" TYPE INET using address::INET  (0.2ms) ALTER TABLE "wmap_requests" DROP "address6"  (2.4ms) ALTER TABLE "wmap_targets" ALTER COLUMN "address" TYPE INET using address::INET  (0.2ms) ALTER TABLE "wmap_targets" DROP "address6"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20111204000000')  (1.0ms) COMMIT Migrating to AddScopeToHosts (20111210000000)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "hosts" ADD COLUMN "scope" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20111210000000')  (0.3ms) COMMIT Migrating to AddVirtualHostToHosts (20120126110000)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "hosts" ADD COLUMN "virtual_host" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120126110000')  (0.3ms) COMMIT Migrating to RenameWorkspaceMembers (20120411173220)  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "project_members" RENAME TO "workspace_members"  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120411173220')  (0.4ms) COMMIT Migrating to AddCounterCachesToHosts (20120601152442)  (0.1ms) BEGIN  (5.7ms) ALTER TABLE "hosts" ADD COLUMN "note_count" integer DEFAULT 0  (5.3ms) ALTER TABLE "hosts" ADD COLUMN "vuln_count" integer DEFAULT 0  (4.8ms) ALTER TABLE "hosts" ADD COLUMN "service_count" integer DEFAULT 0 Mdm::Host Load (0.5ms) SELECT "hosts".* FROM "hosts"   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120601152442')  (2.2ms) COMMIT Migrating to AddVulnDetails (20120625000000)  (0.2ms) BEGIN  (3.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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000000')  (0.4ms) COMMIT Migrating to AddHostDetails (20120625000001)  (0.2ms) BEGIN  (2.1ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000001')  (3.5ms) COMMIT Migrating to ExpandDetails (20120625000002)  (0.3ms) BEGIN  (0.3ms) ALTER TABLE "vuln_details" ADD COLUMN "nx_vuln_status" text  (0.2ms) ALTER TABLE "vuln_details" ADD COLUMN "nx_proof_key" text  (0.2ms) ALTER TABLE "vuln_details" ADD COLUMN "src" character varying(255)  (0.2ms) ALTER TABLE "host_details" ADD COLUMN "src" character varying(255)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000002')  (0.3ms) COMMIT Migrating to ExpandDetails2 (20120625000003)  (0.1ms) BEGIN  (1.6ms) ALTER TABLE "host_details" ADD COLUMN "nx_site_name" character varying(255)  (0.2ms) ALTER TABLE "host_details" ADD COLUMN "nx_site_importance" character varying(255)  (0.2ms) ALTER TABLE "host_details" ADD COLUMN "nx_scan_template" character varying(255)  (0.2ms) ALTER TABLE "host_details" ADD COLUMN "nx_risk_score" float  (0.2ms) ALTER TABLE "vuln_details" ADD COLUMN "nx_scan_id" integer  (0.2ms) ALTER TABLE "vuln_details" ADD COLUMN "nx_vulnerable_since" timestamp  (0.2ms) ALTER TABLE "vuln_details" ADD COLUMN "nx_pci_compliance_status" character varying(255)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000003')  (0.6ms) COMMIT Migrating to AddVulnAttempts (20120625000004)  (0.1ms) BEGIN  (2.7ms) 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)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000004')  (1.7ms) COMMIT Migrating to AddVulnAndHostCounterCaches (20120625000005)  (0.2ms) BEGIN  (7.8ms) ALTER TABLE "hosts" ADD COLUMN "host_detail_count" integer DEFAULT 0  (3.1ms) ALTER TABLE "vulns" ADD COLUMN "vuln_detail_count" integer DEFAULT 0  (3.4ms) ALTER TABLE "vulns" ADD COLUMN "vuln_attempt_count" integer DEFAULT 0  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000005')  (1.8ms) COMMIT Migrating to AddModuleDetails (20120625000006)  (0.2ms) BEGIN  (2.8ms) 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)  (0.7ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (0.7ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.7ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.7ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (2.4ms) CREATE TABLE "module_authors" ("id" serial primary key, "module_detail_id" integer, "name" text, "email" text)   (0.8ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("module_detail_id")  (2.6ms) CREATE TABLE "module_mixins" ("id" serial primary key, "module_detail_id" integer, "name" text)   (0.7ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("module_detail_id")  (2.4ms) CREATE TABLE "module_targets" ("id" serial primary key, "module_detail_id" integer, "index" integer, "name" text)   (0.7ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("module_detail_id")  (2.4ms) CREATE TABLE "module_actions" ("id" serial primary key, "module_detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("module_detail_id")  (2.4ms) CREATE TABLE "module_refs" ("id" serial primary key, "module_detail_id" integer, "name" text)   (0.7ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("module_detail_id")  (0.7ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.6ms) CREATE TABLE "module_archs" ("id" serial primary key, "module_detail_id" integer, "name" text)  (0.7ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("module_detail_id")  (2.5ms) CREATE TABLE "module_platforms" ("id" serial primary key, "module_detail_id" integer, "name" text)  (0.7ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("module_detail_id")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000006')  (0.6ms) COMMIT Migrating to AddExploitAttempts (20120625000007)  (0.5ms) BEGIN  (2.9ms) 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))   (5.5ms) ALTER TABLE "hosts" ADD COLUMN "exploit_attempt_count" integer DEFAULT 0  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000007')  (1.1ms) COMMIT Migrating to AddFailMessage (20120625000008)  (0.2ms) BEGIN  (0.2ms) ALTER TABLE "vuln_attempts" ADD COLUMN "fail_detail" text  (0.2ms) ALTER TABLE "exploit_attempts" ADD COLUMN "fail_detail" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000008')  (0.3ms) COMMIT Migrating to AddOwnerAndPayloadToWebVulns (20120718202805)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "web_vulns" ADD COLUMN "owner" character varying(255)  (0.2ms) ALTER TABLE "web_vulns" ADD COLUMN "payload" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120718202805')  (0.3ms) COMMIT Migrating to ChangeRequiredColumnsToNullFalseInWebVulns (20130228214900)  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "web_vulns" ALTER "category" SET NOT NULL  (0.2ms) ALTER TABLE "web_vulns" ALTER "confidence" SET NOT NULL  (0.2ms) ALTER TABLE "web_vulns" ALTER "method" SET NOT NULL  (0.2ms) ALTER TABLE "web_vulns" ALTER "name" SET NOT NULL  (0.2ms) ALTER TABLE "web_vulns" ALTER "params" SET NOT NULL  (0.2ms) ALTER TABLE "web_vulns" ALTER "path" SET NOT NULL  (0.2ms) ALTER TABLE "web_vulns" ALTER "pname" SET NOT NULL  (0.2ms) ALTER TABLE "web_vulns" ALTER "proof" SET NOT NULL  (0.2ms) ALTER TABLE "web_vulns" ALTER "risk" SET NOT NULL  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130228214900')  (0.3ms) COMMIT Migrating to ChangeForeignKeyInModuleActions (20130412154159)  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "module_actions" RENAME COLUMN "module_detail_id" TO "detail_id"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130412154159')  (0.4ms) COMMIT Migrating to ChangeForeignKeyInModuleArchs (20130412171844)  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "module_archs" RENAME COLUMN "module_detail_id" TO "detail_id"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130412171844')  (0.3ms) COMMIT Migrating to ChangeForeignKeyInModuleAuthors (20130412173121)  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "module_authors" RENAME COLUMN "module_detail_id" TO "detail_id"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130412173121')  (0.2ms) COMMIT Migrating to ChangeForeignKeyInModuleMixins (20130412173640)  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "module_mixins" RENAME COLUMN "module_detail_id" TO "detail_id"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130412173640')  (5.9ms) COMMIT Migrating to ChangeForeignKeyInModulePlatforms (20130412174254)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "module_platforms" RENAME COLUMN "module_detail_id" TO "detail_id"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130412174254')  (6.3ms) COMMIT Migrating to ChangeForeignKeyInModuleRefs (20130412174719)  (0.2ms) BEGIN  (0.2ms) ALTER TABLE "module_refs" RENAME COLUMN "module_detail_id" TO "detail_id"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130412174719')  (6.2ms) COMMIT Migrating to ChangeForeignKeyInModuleTargets (20130412175040)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "module_targets" RENAME COLUMN "module_detail_id" TO "detail_id"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130412175040')  (0.4ms) COMMIT Migrating to AddCredsCounterCache (20130423211152)  (0.1ms) BEGIN  (5.5ms) ALTER TABLE "hosts" ADD COLUMN "cred_count" integer DEFAULT 0 Mdm::Cred Load (0.3ms) SELECT "creds".* FROM "creds"   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130423211152')  (1.0ms) COMMIT Migrating to ChangeRequiredColumnsToNullFalseInHosts (20130430151353)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "hosts" ALTER "address" SET NOT NULL  (0.2ms) ALTER TABLE "hosts" ALTER "workspace_id" SET NOT NULL  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130430151353')  (0.3ms) COMMIT Migrating to EnforceAddressUniquenessInWorkspaceInHosts (20130430162145)  (0.1ms) BEGIN  (0.9ms) SELECT workspace_id, address, count_addr FROM ( SELECT workspace_id, address, COUNT(address) AS count_addr FROM hosts GROUP BY address, workspace_id ) X WHERE count_addr > 1  (0.2ms) DROP INDEX "index_hosts_on_address"  (1.0ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130430162145')  (0.4ms) COMMIT Migrating to RemoveCampaigns (20130510021637)  (0.1ms) BEGIN  (0.9ms) DROP TABLE "attachments"  (0.5ms) DROP TABLE "attachments_email_templates"  (0.9ms) DROP TABLE "email_addresses"  (0.6ms) DROP TABLE "email_templates"  (0.8ms) DROP TABLE "web_templates"  (1.0ms) DROP TABLE "campaigns"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130510021637')  (1.9ms) COMMIT Migrating to ChangeWebVulnsConfidenceToInteger (20130515164311)  (0.2ms) BEGIN  (4.3ms) ALTER TABLE web_vulns ALTER COLUMN confidence TYPE integer USING confidence::integer  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130515164311')  (0.8ms) COMMIT Migrating to ValidMdmWebVulnParams (20130515172727)  (0.1ms) BEGIN Mdm::WebVuln Load (0.5ms) SELECT "web_vulns".* FROM "web_vulns" ORDER BY "web_vulns"."id" ASC LIMIT 1000  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130515172727')  (0.4ms) COMMIT Migrating to MakingVulnsRefsARealArModel (20130516204810)  (0.1ms) BEGIN  (2.4ms) ALTER TABLE "vulns_refs" ADD COLUMN "id" serial primary key  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130516204810')  (0.5ms) COMMIT Migrating to CreateTaskCreds (20130522001343)  (0.2ms) BEGIN  (2.0ms) 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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130522001343')  (0.5ms) COMMIT Migrating to CreateTaskHosts (20130522032517)  (0.1ms) BEGIN  (1.9ms) 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)   (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130522032517')  (0.4ms) COMMIT Migrating to CreateTaskServices (20130522041110)  (0.1ms) BEGIN  (1.8ms) 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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130522041110')  (0.4ms) COMMIT Migrating to RemoveCampaignIdFromClients (20130525015035)  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "clients" DROP "campaign_id"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130525015035')  (0.3ms) COMMIT Migrating to DropTableImportedCreds (20130525212420)  (0.1ms) BEGIN  (0.9ms) DROP TABLE "imported_creds"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130525212420')  (0.8ms) COMMIT Migrating to MakingHostTagsARealArModel (20130531144949)  (0.1ms) BEGIN  (2.7ms) ALTER TABLE "hosts_tags" ADD COLUMN "id" serial primary key  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130531144949')  (0.6ms) COMMIT Migrating to CreateTaskSessions (20130604145732)  (0.2ms) BEGIN  (1.8ms) 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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130604145732')  (0.4ms) COMMIT Migrating to RemovePnameValidation (20130717150737)  (0.2ms) BEGIN  (0.2ms) ALTER TABLE "web_vulns" ALTER COLUMN "pname" TYPE text  (0.1ms) ALTER TABLE "web_vulns" ALTER "pname" DROP NOT NULL  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130717150737')  (0.3ms) COMMIT Migrating to CreateMetasploitCredentialPublics (20140331173835)  (0.1ms) BEGIN  (1.9ms) 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)  (0.7ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140331173835')  (0.3ms) COMMIT Migrating to CreateMetasploitCredentialPrivates (20140407212345)  (0.2ms) BEGIN  (2.8ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140407212345')  (0.4ms) COMMIT Migrating to CreateMetasploitCredentialRealms (20140410132401)  (0.2ms) BEGIN  (2.6ms) 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)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140410132401')  (0.4ms) COMMIT Migrating to UniqueMetasploitCredentialRealms (20140410161611)  (0.2ms) BEGIN  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140410161611')  (0.3ms) COMMIT Migrating to CreateMetasploitCredentialOriginManuals (20140410191213)  (0.1ms) BEGIN  (1.8ms) 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)  (0.6ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140410191213')  (0.4ms) COMMIT Migrating to CreateMetasploitCredentialOriginImports (20140410205410)  (0.1ms) BEGIN  (2.8ms) 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)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140410205410')  (0.3ms) COMMIT Migrating to CreateMetasploitCredentialOriginSessions (20140411142102)  (0.1ms) BEGIN  (2.5ms) 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)  (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140411142102')  (0.3ms) COMMIT Migrating to CreateMetasploitCredentialOriginServices (20140411205325)  (0.2ms) BEGIN  (2.7ms) 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)   (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140411205325')  (0.4ms) COMMIT Migrating to CreateMetasploitCredentialCores (20140414192550)  (0.1ms) BEGIN  (2.0ms) 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)  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.6ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.6ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.6ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140414192550')  (0.5ms) COMMIT Migrating to CreateMetasploitCredentialLogins (20140417140933)  (0.2ms) BEGIN  (2.8ms) 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)   (0.7ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.7ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140417140933')  (0.3ms) COMMIT Migrating to AddLoginsCounterCacheToCores (20140520140817)  (0.2ms) BEGIN  (3.9ms) ALTER TABLE "metasploit_credential_cores" ADD COLUMN "logins_count" integer DEFAULT 0 Metasploit::Credential::Core Load (0.4ms) SELECT "metasploit_credential_cores".* FROM "metasploit_credential_cores"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140520140817')  (0.8ms) COMMIT Migrating to AddJtrFormatToMetasploitCredentialPrivates (20140603163708)  (0.2ms) BEGIN  (0.4ms) ALTER TABLE "metasploit_credential_privates" ADD COLUMN "jtr_format" character varying(255)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140603163708')  (0.7ms) COMMIT Migrating to CreateMetasploitCredentialOriginCrackedPasswords (20140605173747)  (0.1ms) BEGIN  (2.1ms) 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)  (0.7ms) CREATE INDEX "originating_credential_cores" ON "metasploit_credential_origin_cracked_passwords" ("metasploit_credential_core_id")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140605173747')  (0.3ms) COMMIT Migrating to CreateCredentialCoresTasksJoinTable (20140702184622)  (0.1ms) BEGIN  (0.6ms) CREATE TABLE "credential_cores_tasks" ("core_id" integer, "task_id" integer)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140702184622')  (0.4ms) COMMIT Migrating to CreateCredentialLoginsTasksJoinTable (20140703144541)  (0.1ms) BEGIN  (0.6ms) CREATE TABLE "credential_logins_tasks" ("login_id" integer, "task_id" integer)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140703144541')  (0.3ms) COMMIT  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" Connecting to database specified by database.yml  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (118.8ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (234.6ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (7.9ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.3ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (0.7ms) CREATE TABLE "credential_cores_tasks" ("core_id" integer, "task_id" integer)  (0.7ms) CREATE TABLE "credential_logins_tasks" ("login_id" integer, "task_id" integer)   (2.9ms) 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(256), "source_id" integer, "source_type" character varying(255))  (3.1ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.9ms) 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), "fail_detail" text)  (2.9ms) 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)   (5.0ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (5.4ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.2ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (3.3ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.9ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (0.8ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (1.0ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.8ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.2ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (2.9ms) 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, "macro" text)   (2.8ms) 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, "content_type" character varying(255), "name" text, "info" text)  (3.0ms) 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)   (2.1ms) 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, "logins_count" integer DEFAULT 0)  (1.0ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.1ms) 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)   (1.0ms) CREATE INDEX "originating_credential_cores" ON "metasploit_credential_origin_cracked_passwords" ("metasploit_credential_core_id")  (2.9ms) 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)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (2.1ms) 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)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.8ms) 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)   (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.8ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (5.0ms) 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, "jtr_format" character varying(255))   (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.9ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.7ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.7ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.6ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.6ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.9ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (1.0ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.8ms) 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)  (0.9ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.8ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.8ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.9ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.8ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.7ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.6ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.7ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (6.1ms) 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, "name" text)  (3.0ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (1.1ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.7ms) 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)   (3.0ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (1.0ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.9ms) 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)  (3.0ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.6ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (5.0ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.8ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (1.1ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (1.0ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.9ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (3.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)  (3.0ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (3.0ms) 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)  (1.9ms) 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)   (2.1ms) 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)  (2.0ms) 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)   (1.9ms) 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)  (3.0ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (3.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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (2.9ms) 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, "fail_detail" text)   (3.1ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (3.1ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.9ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (1.9ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.9ms) 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, "query" text)  (0.8ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (3.2ms) 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, "headers" text, "body" bytea, "request" bytea)  (0.8ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.9ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.9ms) 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)   (0.8ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.8ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.9ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.0ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.9ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.9ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.8ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.0ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.9ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.8ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (2.9ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140703144541')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140520140817')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140603163708')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140605173747')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140702184622')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.1ms) BEGIN Connecting to database specified by database.yml  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (133.1ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (234.0ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.1ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.1ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (0.9ms) CREATE TABLE "credential_cores_tasks" ("core_id" integer, "task_id" integer)  (0.8ms) CREATE TABLE "credential_logins_tasks" ("login_id" integer, "task_id" integer)   (3.1ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.7ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.8ms) 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), "fail_detail" text)  (3.0ms) 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)   (3.0ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.2ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.1ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (1.3ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.8ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (0.8ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.9ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.9ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.1ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (2.8ms) 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, "macro" text)   (2.7ms) 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, "content_type" character varying(255), "name" text, "info" text)  (2.7ms) 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)   (2.1ms) 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, "logins_count" integer DEFAULT 0)  (1.0ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.7ms) 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)  (1.1ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.2ms) 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)   (0.9ms) CREATE INDEX "originating_credential_cores" ON "metasploit_credential_origin_cracked_passwords" ("metasploit_credential_core_id")  (3.0ms) 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)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.9ms) 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)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.7ms) 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)   (1.0ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.8ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (2.6ms) 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, "jtr_format" character varying(255))   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.9ms) 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)   (0.7ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.9ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.5ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.7ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.6ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (3.2ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (1.0ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (3.2ms) 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)  (0.9ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.9ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (1.1ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.9ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (3.2ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (1.0ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.7ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.8ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.6ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (2.9ms) 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, "name" text)  (3.0ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.9ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.7ms) 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)   (2.8ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.8ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (3.0ms) 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)  (2.6ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.7ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.7ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (1.0ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (1.0ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (1.0ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.8ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.8ms) 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)  (2.7ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (2.9ms) 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)  (2.0ms) 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)   (2.0ms) 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)  (1.9ms) 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)   (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)  (3.0ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (2.9ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (2.9ms) 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, "fail_detail" text)   (2.9ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (3.0ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.9ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (1.7ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.6ms) 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, "query" text)  (0.9ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.7ms) 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, "headers" text, "body" bytea, "request" bytea)  (0.9ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.9ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.8ms) 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)   (0.9ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.9ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.8ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (2.9ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (1.1ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (1.0ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.9ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (2.7ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.6ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.8ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (2.7ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140703144541')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140520140817')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140603163708')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140605173747')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140702184622')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (6.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (152.9ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (352.6ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (6.0ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.9ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (0.7ms) CREATE TABLE "credential_cores_tasks" ("core_id" integer, "task_id" integer)  (0.7ms) CREATE TABLE "credential_logins_tasks" ("login_id" integer, "task_id" integer)   (24.8ms) 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(256), "source_id" integer, "source_type" character varying(255))  (3.0ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (3.0ms) 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), "fail_detail" text)  (3.0ms) 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)   (4.5ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (7.5ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.1ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (5.6ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (1.1ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (0.8ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.9ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.2ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.0ms) 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, "macro" text)   (2.9ms) 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, "content_type" character varying(255), "name" text, "info" text)  (2.9ms) 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)   (2.2ms) 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, "logins_count" integer DEFAULT 0)  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (1.0ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.1ms) 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)   (0.9ms) CREATE INDEX "originating_credential_cores" ON "metasploit_credential_origin_cracked_passwords" ("metasploit_credential_core_id")  (3.0ms) 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)   (0.9ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (2.1ms) 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)   (0.9ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (3.1ms) 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)   (1.0ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.8ms) 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)   (1.0ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (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, "jtr_format" character varying(255))   (1.3ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (2.1ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (3.4ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.7ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.7ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.6ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (3.0ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.8ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (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)  (0.9ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.8ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (1.0ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.8ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.9ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.8ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.8ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (1.0ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.7ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.0ms) 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, "name" text)  (3.2ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.8ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.8ms) 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)   (3.4ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.8ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (3.0ms) 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)  (2.9ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.8ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.8ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (1.0ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.9ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.9ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.8ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.8ms) 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)  (3.1ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (2.9ms) 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)  (2.1ms) 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)   (2.1ms) 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)  (2.0ms) 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)   (2.4ms) 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)  (3.1ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (2.8ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (3.5ms) 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, "fail_detail" text)   (3.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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (3.3ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (1.9ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.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, "query" text)  (0.8ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (3.0ms) 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, "headers" text, "body" bytea, "request" bytea)  (0.8ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.9ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.9ms) 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)   (0.9ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.9ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (1.2ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.1ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.9ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (1.0ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.9ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.1ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.8ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.8ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (2.8ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140703144541')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140520140817')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140603163708')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140605173747')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140702184622')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (136.3ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (375.0ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.4ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.9ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (0.7ms) CREATE TABLE "credential_cores_tasks" ("core_id" integer, "task_id" integer)  (0.6ms) CREATE TABLE "credential_logins_tasks" ("login_id" integer, "task_id" integer)   (21.0ms) 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(256), "source_id" integer, "source_type" character varying(255))  (3.0ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (3.2ms) 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), "fail_detail" text)  (2.7ms) 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)   (3.0ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.4ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.1ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (1.2ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.8ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (0.8ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.9ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.2ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (2.8ms) 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, "macro" text)   (2.7ms) 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, "content_type" character varying(255), "name" text, "info" text)  (2.7ms) 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)   (1.9ms) 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, "logins_count" integer DEFAULT 0)  (1.1ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.7ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.7ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.1ms) 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)   (0.9ms) CREATE INDEX "originating_credential_cores" ON "metasploit_credential_origin_cracked_passwords" ("metasploit_credential_core_id")  (2.9ms) 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)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.9ms) 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)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.7ms) 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)   (1.0ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.7ms) 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)   (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (2.5ms) 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, "jtr_format" character varying(255))   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.9ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.9ms) 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)   (1.3ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (3.4ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (3.1ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.5ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (3.8ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (3.2ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.9ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.8ms) 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)  (5.0ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.9ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (1.0ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.8ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.8ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (1.1ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.8ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.6ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.9ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.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, "name" text)  (2.6ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.9ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.8ms) 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)   (2.7ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.9ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.8ms) 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)  (2.9ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.7ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.6ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.9ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.8ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.8ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.8ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (3.2ms) 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)  (2.7ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (2.8ms) 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)  (2.0ms) 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)   (2.0ms) 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)  (1.9ms) 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)   (4.3ms) 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)  (2.8ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (2.8ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (2.7ms) 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, "fail_detail" text)   (2.9ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (3.0ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.8ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (2.0ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.6ms) 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, "query" text)  (0.8ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.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, "headers" text, "body" bytea, "request" bytea)  (0.8ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.8ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (3.0ms) 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)   (0.8ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.8ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.8ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.2ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.9ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.8ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (1.0ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.0ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.7ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (2.7ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140703144541')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140520140817')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140603163708')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140605173747')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140702184622')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (5.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (5.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (6.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (10.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Errno::EIO: Input/output error - : ROLLBACK Connecting to database specified by database.yml  (7.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (11.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateTables (0)  (0.1ms) BEGIN  (25.5ms) 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))   (0.7ms) CREATE UNIQUE INDEX "index_hosts_on_address" ON "hosts" ("address")  (2.2ms) 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))   (2.4ms) 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))  (2.6ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created" timestamp, "name" character varying(255), "data" text)   (2.4ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created" timestamp, "name" character varying(512))  (0.5ms) CREATE TABLE "vulns_refs" ("ref_id" integer, "vuln_id" integer)   (2.2ms) CREATE TABLE "notes" ("id" serial primary key, "host_id" integer, "created" timestamp, "ntype" character varying(512), "data" text)  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('0')  (0.8ms) COMMIT Migrating to AddWmapTables (1)  (0.4ms) BEGIN  (14.0ms) 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)  (13.6ms) 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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('1')  (0.5ms) COMMIT Migrating to AddWorkspaces (2)  (0.2ms) BEGIN  (7.5ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.3ms) ALTER TABLE "hosts" ADD COLUMN "workspace_id" integer  (0.3ms) DROP INDEX "index_hosts_on_address"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('2')  (6.8ms) COMMIT Migrating to MoveNotes (3)  (5.6ms) BEGIN  (0.4ms) ALTER TABLE "notes" DROP "host_id"  (14.4ms) ALTER TABLE "notes" ADD COLUMN "workspace_id" integer DEFAULT 1 NOT NULL  (0.2ms) ALTER TABLE "notes" ADD COLUMN "service_id" integer  (0.2ms) ALTER TABLE "notes" ADD COLUMN "host_id" integer  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('3')  (6.3ms) COMMIT Migrating to AddEventsTable (4)  (0.2ms) BEGIN  (14.3ms) 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))  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('4')  (5.7ms) COMMIT Migrating to ExpandInfo (5)  (4.9ms) BEGIN  (0.3ms) ALTER TABLE "events" DROP "info"  (0.2ms) ALTER TABLE "events" ADD COLUMN "info" character varying(4096)  (0.2ms) ALTER TABLE "notes" DROP "data"  (0.2ms) ALTER TABLE "notes" ADD COLUMN "data" character varying(4096)  (0.2ms) ALTER TABLE "vulns" DROP "data"  (0.2ms) ALTER TABLE "vulns" ADD COLUMN "data" character varying(4096)  (0.2ms) ALTER TABLE "hosts" DROP "info"  (0.2ms) ALTER TABLE "hosts" ADD COLUMN "info" character varying(4096)  (0.2ms) ALTER TABLE "services" DROP "info"  (0.2ms) ALTER TABLE "services" ADD COLUMN "info" character varying(4096)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('5')  (6.2ms) COMMIT Migrating to AddTimestamps (6)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "clients" RENAME COLUMN "created" TO "created_at"  (0.2ms) ALTER TABLE "hosts" RENAME COLUMN "created" TO "created_at"  (0.2ms) ALTER TABLE "notes" RENAME COLUMN "created" TO "created_at"  (0.2ms) ALTER TABLE "refs" RENAME COLUMN "created" TO "created_at"  (0.1ms) ALTER TABLE "services" RENAME COLUMN "created" TO "created_at"  (0.2ms) ALTER TABLE "vulns" RENAME COLUMN "created" TO "created_at"  (0.2ms) ALTER TABLE "wmap_requests" RENAME COLUMN "created" TO "created_at"  (0.2ms) ALTER TABLE "wmap_targets" ADD COLUMN "created_at" timestamp  (0.2ms) ALTER TABLE "clients" ADD COLUMN "updated_at" timestamp  (0.2ms) ALTER TABLE "events" ADD COLUMN "updated_at" timestamp  (0.2ms) ALTER TABLE "hosts" ADD COLUMN "updated_at" timestamp  (0.2ms) ALTER TABLE "notes" ADD COLUMN "updated_at" timestamp  (0.2ms) ALTER TABLE "refs" ADD COLUMN "updated_at" timestamp  (0.2ms) ALTER TABLE "services" ADD COLUMN "updated_at" timestamp  (0.2ms) ALTER TABLE "vulns" ADD COLUMN "updated_at" timestamp  (0.2ms) ALTER TABLE "wmap_requests" ADD COLUMN "updated_at" timestamp  (0.2ms) ALTER TABLE "wmap_targets" ADD COLUMN "updated_at" timestamp  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('6')  (5.9ms) COMMIT Migrating to AddLoots (7)  (0.2ms) BEGIN  (14.4ms) 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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('7')  (6.4ms) COMMIT Migrating to CreateUsers (8)  (5.0ms) BEGIN  (14.5ms) 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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('8')  (5.7ms) COMMIT Migrating to AddLootsCtype (9)  (4.9ms) BEGIN  (0.3ms) ALTER TABLE "loots" ADD COLUMN "content_type" character varying(255)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('9')  (5.5ms) COMMIT Migrating to AddAlertFields (10)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "notes" ADD COLUMN "critical" boolean  (0.2ms) ALTER TABLE "notes" ADD COLUMN "seen" boolean  (0.2ms) ALTER TABLE "events" ADD COLUMN "critical" boolean  (0.2ms) ALTER TABLE "events" ADD COLUMN "seen" boolean  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('10')  (5.9ms) COMMIT Migrating to AddReports (11)  (0.3ms) BEGIN  (14.8ms) 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)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('11')  (5.7ms) COMMIT Migrating to AddTasks (12)  (4.9ms) BEGIN  (14.6ms) 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)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('12')  (6.4ms) COMMIT Migrating to AddTasksResult (13)  (4.5ms) BEGIN  (0.3ms) ALTER TABLE "tasks" ADD COLUMN "result" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('13')  (6.1ms) COMMIT Migrating to AddLootsFields (14)  (0.2ms) BEGIN  (0.4ms) ALTER TABLE "loots" ADD COLUMN "name" text  (0.2ms) ALTER TABLE "loots" ADD COLUMN "info" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('14')  (5.5ms) COMMIT Migrating to RenameUser (15)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "events" DROP "user"  (0.2ms) ALTER TABLE "events" ADD COLUMN "username" character varying(255)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('15')  (6.0ms) COMMIT Migrating to AddHostPurpose (16)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "hosts" ADD COLUMN "purpose" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('16')  (6.2ms) COMMIT Migrating to ExpandInfo2 (17)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "events" DROP "info"  (0.2ms) ALTER TABLE "events" ADD COLUMN "info" character varying(65536)  (0.3ms) ALTER TABLE "notes" DROP "data"  (0.2ms) ALTER TABLE "notes" ADD COLUMN "data" character varying(65536)  (0.2ms) ALTER TABLE "vulns" DROP "data"  (0.2ms) ALTER TABLE "vulns" ADD COLUMN "data" character varying(65536)  (0.2ms) ALTER TABLE "hosts" DROP "info"  (0.2ms) ALTER TABLE "hosts" ADD COLUMN "info" character varying(65536)  (0.2ms) ALTER TABLE "services" DROP "info"  (0.2ms) ALTER TABLE "services" ADD COLUMN "info" character varying(65536)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('17')  (6.2ms) COMMIT Migrating to AddWorkspaceUserInfo (18)  (0.2ms) BEGIN  (6.7ms) ALTER TABLE "workspaces" ADD COLUMN "boundary" character varying(4096)  (0.3ms) ALTER TABLE "users" ADD COLUMN "fullname" character varying(255)  (0.2ms) ALTER TABLE "users" ADD COLUMN "email" character varying(255)  (0.2ms) ALTER TABLE "users" ADD COLUMN "phone" character varying(255)  (0.2ms) ALTER TABLE "users" ADD COLUMN "company" character varying(255)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('18')  (6.2ms) COMMIT Migrating to AddWorkspaceDesc (19)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "workspaces" ADD COLUMN "description" character varying(4096)  (0.2ms) ALTER TABLE "hosts" ADD COLUMN "comments" character varying(4096)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('19')  (6.1ms) COMMIT Migrating to AddUserPreferences (20)  (0.2ms) BEGIN  (0.4ms) ALTER TABLE "users" ADD COLUMN "prefs" character varying(524288)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20')  (6.2ms) COMMIT Migrating to StandardizeInfoAndData (21)  (0.3ms) BEGIN  (0.4ms) ALTER TABLE "vulns" DROP "data"  (0.3ms) ALTER TABLE "vulns" ADD COLUMN "info" character varying(65536)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('21')  (6.1ms) COMMIT Migrating to EnlargeEventInfo (22)  (0.2ms) BEGIN  (0.4ms) ALTER TABLE "events" ALTER COLUMN "info" TYPE text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('22')  (6.3ms) COMMIT Migrating to AddReportDownloadedAt (23)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "reports" ADD COLUMN "downloaded_at" timestamp  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('23')  (6.2ms) COMMIT Migrating to ConvertServiceInfoToText (24)  (0.3ms) BEGIN  (0.4ms) ALTER TABLE "services" ALTER COLUMN "info" TYPE text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('24')  (5.8ms) COMMIT Migrating to AddUserAdmin (25)  (0.2ms) BEGIN  (13.5ms) ALTER TABLE "users" ADD COLUMN "admin" boolean DEFAULT 't'  (0.6ms) CREATE TABLE "project_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)  (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ('25')  (7.0ms) COMMIT Migrating to AddCredsTable (26)  (0.2ms) BEGIN  (21.7ms) 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))  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('26')  (5.2ms) COMMIT Migrating to MigrateCredData (20100819123300)  (0.3ms) BEGIN Mdm::Note Load (0.3ms) SELECT "notes".* FROM "notes" Mdm::Note Load (0.2ms) SELECT "notes".* FROM "notes"   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100819123300')  (5.7ms) COMMIT Migrating to AddExploitedTable (20100824151500)  (0.2ms) BEGIN  (14.7ms) 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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100824151500')  (5.9ms) COMMIT Migrating to AddOwnerToWorkspaces (20100908001428)  (4.7ms) BEGIN  (0.4ms) ALTER TABLE "workspaces" ADD COLUMN "owner_id" integer  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100908001428')  (6.1ms) COMMIT Migrating to AddReportTemplates (20100911122000)  (0.3ms) BEGIN  (15.0ms) 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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100911122000')  (6.2ms) COMMIT Migrating to RequireAdminFlag (20100916151530)  (4.8ms) BEGIN SQL (0.4ms) UPDATE "users" SET "admin" = 't' WHERE "users"."admin" IS NULL  (0.4ms) ALTER TABLE "users" ALTER COLUMN "admin" TYPE boolean  (0.2ms) ALTER TABLE "users" ALTER COLUMN "admin" SET DEFAULT 't'  (0.2ms) UPDATE "users" SET "admin"='t' WHERE "admin" IS NULL  (0.2ms) ALTER TABLE "users" ALTER "admin" SET NOT NULL  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100916151530')  (6.2ms) COMMIT Migrating to AddCampaignsAndTemplates (20100916175000)  (0.4ms) BEGIN  (14.8ms) 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)   (13.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)  (2.7ms) 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)   (0.5ms) CREATE TABLE "attachments_email_templates" ("attachment_id" integer, "email_template_id" integer)  (2.4ms) 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)   (2.5ms) CREATE TABLE "web_templates" ("id" serial primary key, "name" character varying(512), "title" character varying(512), "body" character varying(524288), "campaign_id" integer)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100916175000')  (0.7ms) COMMIT Migrating to AddGenerateExeColumn (20100920012100)  (0.3ms) BEGIN  (14.3ms) ALTER TABLE "email_templates" ADD COLUMN "generate_exe" boolean DEFAULT 'f' NOT NULL  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100920012100')  (6.4ms) COMMIT Migrating to AddTemplatePrefs (20100926214000)  (0.1ms) BEGIN  (0.5ms) ALTER TABLE "email_templates" DROP "generate_exe"  (0.2ms) ALTER TABLE "email_templates" ADD COLUMN "prefs" text  (0.3ms) ALTER TABLE "web_templates" ADD COLUMN "prefs" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100926214000')  (6.3ms) COMMIT Migrating to AddWebTables (20101001000000)  (0.2ms) BEGIN  (14.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)  (9.2ms) 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)   (2.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)  (2.6ms) 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))   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101001000000')  (0.7ms) COMMIT Migrating to AddQuery (20101002000000)  (0.3ms) BEGIN  (0.3ms) ALTER TABLE "web_forms" ADD COLUMN "query" text  (0.2ms) ALTER TABLE "web_vulns" ADD COLUMN "query" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101002000000')  (5.7ms) COMMIT Migrating to AddVulnInfo (20101007000000)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "web_vulns" ADD COLUMN "category" text  (0.2ms) ALTER TABLE "web_vulns" ADD COLUMN "confidence" text  (0.2ms) ALTER TABLE "web_vulns" ADD COLUMN "description" text  (0.2ms) ALTER TABLE "web_vulns" ADD COLUMN "blame" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101007000000')  (6.2ms) COMMIT Migrating to AddClientsToCampaigns (20101008111800)  (0.3ms) BEGIN  (0.3ms) ALTER TABLE "clients" ADD COLUMN "campaign_id" integer  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101008111800')  (6.2ms) COMMIT Migrating to AddCampaignAttachments (20101009023300)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "attachments" ADD COLUMN "campaign_id" integer  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101009023300')  (5.7ms) COMMIT Migrating to AddImportedCreds (20101104135100)  (0.2ms) BEGIN  (14.9ms) 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')   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101104135100')  (5.9ms) COMMIT Migrating to FixWebTables (20101203000000)  (5.0ms) BEGIN  (0.4ms) ALTER TABLE "web_pages" ALTER COLUMN "path" TYPE text  (0.2ms) ALTER TABLE "web_pages" ALTER COLUMN "query" TYPE text  (0.2ms) ALTER TABLE "web_pages" ALTER COLUMN "cookie" TYPE text  (0.2ms) ALTER TABLE "web_pages" ALTER COLUMN "auth" TYPE text  (0.2ms) ALTER TABLE "web_pages" ALTER COLUMN "ctype" TYPE text  (0.2ms) ALTER TABLE "web_pages" ALTER COLUMN "location" TYPE text  (0.2ms) ALTER TABLE "web_pages" ALTER COLUMN "path" TYPE text  (0.2ms) ALTER TABLE "web_vulns" ALTER COLUMN "path" TYPE text  (0.2ms) ALTER TABLE "web_vulns" ALTER COLUMN "pname" TYPE text  (0.2ms) ALTER TABLE "web_pages" ADD COLUMN "request" text  (0.2ms) ALTER TABLE "web_vulns" ADD COLUMN "request" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101203000000')  (6.2ms) COMMIT Migrating to ExpandHostComment (20101203000001)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "hosts" ALTER COLUMN "comments" TYPE text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101203000001')  (6.2ms) COMMIT Migrating to AddLimitToNetworkToWorkspaces (20101206212033)  (0.2ms) BEGIN  (15.3ms) ALTER TABLE "workspaces" ADD COLUMN "limit_to_network" boolean DEFAULT 'f' NOT NULL  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101206212033')  (6.1ms) COMMIT Migrating to AddModuleUuidToTasks (20110112154300)  (0.2ms) BEGIN  (0.4ms) ALTER TABLE "tasks" ADD COLUMN "module_uuid" character varying(8)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110112154300')  (6.2ms) COMMIT Migrating to AddHostTags (20110204112800)  (0.2ms) BEGIN  (15.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)   (0.7ms) CREATE TABLE "hosts_tags" ("host_id" integer, "tag_id" integer)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110204112800')  (7.0ms) COMMIT Migrating to AddSessionTable (20110317144932)  (0.2ms) BEGIN  (14.3ms) 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))  (7.2ms) 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)  AddSessionTable::Event Load (0.7ms) SELECT "events".* FROM "events" WHERE "events"."name" = 'session_close' AddSessionTable::Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."name" = 'session_open' AddSessionTable::Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."name" = 'session_command' AddSessionTable::Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."name" = 'session_output' AddSessionTable::Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."name" = 'session_upload' AddSessionTable::Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."name" = 'session_download'  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110317144932')  (2.4ms) COMMIT Migrating to AddLocalIdToSessionTable (20110414180600)  (0.4ms) BEGIN  (0.4ms) ALTER TABLE "sessions" ADD COLUMN "local_id" integer  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110414180600')  (5.7ms) COMMIT Migrating to AddRoutesTable (20110415175705)  (0.3ms) BEGIN  (13.9ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))   (0.3ms) ALTER TABLE "sessions" DROP "routes"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110415175705')  (6.1ms) COMMIT Migrating to ConvertBinary (20110422000000)  (4.9ms) BEGIN  (0.3ms) ALTER TABLE "web_pages" RENAME COLUMN "body" TO "body_text"  (0.2ms) ALTER TABLE "web_pages" RENAME COLUMN "request" TO "request_text"  (0.2ms) ALTER TABLE "web_vulns" RENAME COLUMN "request" TO "request_text"  (0.1ms) ALTER TABLE "web_vulns" RENAME COLUMN "proof" TO "proof_text"  (0.2ms) ALTER TABLE "web_pages" ADD COLUMN "body" bytea  (0.2ms) ALTER TABLE "web_pages" ADD COLUMN "request" bytea  (0.2ms) ALTER TABLE "web_vulns" ADD COLUMN "request" bytea  (0.2ms) ALTER TABLE "web_vulns" ADD COLUMN "proof" bytea ConvertBinary::WebPage Load (0.4ms) SELECT "web_pages".* FROM "web_pages" ConvertBinary::WebPage Load (0.2ms) SELECT "web_pages".* FROM "web_pages"  ConvertBinary::WebVuln Load (0.3ms) SELECT "web_vulns".* FROM "web_vulns" ConvertBinary::WebVuln Load (0.2ms) SELECT "web_vulns".* FROM "web_vulns"   (0.2ms) ALTER TABLE "web_pages" DROP "body_text"  (0.2ms) ALTER TABLE "web_pages" DROP "request_text"  (0.2ms) ALTER TABLE "web_vulns" DROP "request_text"  (0.2ms) ALTER TABLE "web_vulns" DROP "proof_text"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110422000000')  (6.2ms) COMMIT Migrating to AddLastSeenToSessions (20110425095900)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "sessions" ADD COLUMN "last_seen" timestamp  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110425095900')  (6.2ms) COMMIT Migrating to TrackSuccessfulExploits (20110513143900)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "vulns" ADD COLUMN "exploited_at" timestamp TrackSuccessfulExploits::ExploitedHost Load (0.3ms) SELECT "exploited_hosts".* FROM "exploited_hosts"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110513143900')  (5.8ms) COMMIT Migrating to RenameAndPruneNessusVulns (20110517160800)  (0.2ms) BEGIN RenameAndPruneNessusVulns::Vuln Load (0.3ms) SELECT "vulns".* FROM "vulns"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110517160800')  (5.7ms) COMMIT Migrating to AddTaskIdToReportsTable (20110527000000)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "reports" ADD COLUMN "task_id" integer  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110527000000')  (5.9ms) COMMIT Migrating to AddApiKeysTable (20110527000001)  (0.1ms) BEGIN  (15.0ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110527000001')  (6.4ms) COMMIT Migrating to AddMacrosTable (20110606000001)  (4.9ms) BEGIN  (14.2ms) 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)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110606000001')  (6.2ms) COMMIT Migrating to AddSettingsToTasksTable (20110622000000)  (5.1ms) BEGIN  (0.4ms) ALTER TABLE "tasks" ADD COLUMN "settings" bytea  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110622000000')  (6.1ms) COMMIT Migrating to AddListenersTable (20110624000001)  (0.1ms) BEGIN  (14.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)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110624000001')  (6.2ms) COMMIT Migrating to AddMacroToListenersTable (20110625000001)  (4.6ms) BEGIN  (0.3ms) ALTER TABLE "listeners" ADD COLUMN "macro" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110625000001')  (5.9ms) COMMIT Migrating to AddNexposeConsolesTable (20110630000001)  (0.2ms) BEGIN  (13.5ms) 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)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110630000001')  (6.0ms) COMMIT Migrating to AddNameToNexposeConsolesTable (20110630000002)  (5.5ms) BEGIN  (0.4ms) ALTER TABLE "nexpose_consoles" ADD COLUMN "name" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110630000002')  (5.9ms) COMMIT Migrating to AddProfilesTable (20110717000001)  (0.2ms) BEGIN  (13.9ms) 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)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110717000001')  (5.6ms) COMMIT Migrating to ExpandCredPtypeColumn (20110727163801)  (4.7ms) BEGIN  (0.3ms) ALTER TABLE "creds" ALTER COLUMN "ptype" TYPE character varying(256)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110727163801')  (5.9ms) COMMIT Migrating to AddInitialIndexes (20110730000001)  (0.1ms) BEGIN  (6.7ms) CREATE INDEX "index_hosts_on_address" ON "hosts" ("address")  (6.1ms) CREATE INDEX "index_hosts_on_address6" ON "hosts" ("address6")  (6.3ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.6ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (0.7ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.7ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.6ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.6ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.6ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (0.6ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.7ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (0.6ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (0.7ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (0.8ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (0.6ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.7ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.7ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.7ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (0.7ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (0.6ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (0.6ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.7ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110730000001')  (0.4ms) COMMIT Migrating to PruneIndexes (20110812000001)  (0.1ms) BEGIN  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110812000001')  (6.1ms) COMMIT Migrating to ExpandNotes (20110922000000)  (0.1ms) BEGIN  (0.4ms) ALTER TABLE "notes" ALTER COLUMN "data" TYPE text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110922000000')  (5.7ms) COMMIT Migrating to AddModRefTable (20110928101300)  (0.3ms) BEGIN  (14.5ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110928101300')  (5.9ms) COMMIT Migrating to AddDisplayNameToReportsTable (20111011110000)  (4.5ms) BEGIN  (0.3ms) ALTER TABLE "reports" ADD COLUMN "name" character varying(63) AddDisplayNameToReportsTable::Report Load (0.3ms) SELECT "reports".* FROM "reports"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20111011110000')  (6.1ms) COMMIT Migrating to InetColumns (20111203000000)  (0.2ms) BEGIN  (29.3ms) ALTER TABLE "hosts" ALTER COLUMN "address" TYPE INET using address::INET  (0.3ms) ALTER TABLE "hosts" DROP "address6"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20111203000000')  (1.4ms) COMMIT Migrating to MoreInetColumns (20111204000000)  (0.2ms) BEGIN  (14.9ms) ALTER TABLE "wmap_requests" ALTER COLUMN "address" TYPE INET using address::INET  (0.3ms) ALTER TABLE "wmap_requests" DROP "address6"  (13.2ms) ALTER TABLE "wmap_targets" ALTER COLUMN "address" TYPE INET using address::INET  (0.3ms) ALTER TABLE "wmap_targets" DROP "address6"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20111204000000')  (1.0ms) COMMIT Migrating to AddScopeToHosts (20111210000000)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "hosts" ADD COLUMN "scope" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20111210000000')  (6.1ms) COMMIT Migrating to AddVirtualHostToHosts (20120126110000)  (0.3ms) BEGIN  (0.3ms) ALTER TABLE "hosts" ADD COLUMN "virtual_host" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120126110000')  (5.6ms) COMMIT Migrating to RenameWorkspaceMembers (20120411173220)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "project_members" RENAME TO "workspace_members"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120411173220')  (6.2ms) COMMIT Migrating to AddCounterCachesToHosts (20120601152442)  (0.3ms) BEGIN  (27.1ms) ALTER TABLE "hosts" ADD COLUMN "note_count" integer DEFAULT 0  (5.1ms) ALTER TABLE "hosts" ADD COLUMN "vuln_count" integer DEFAULT 0  (4.7ms) ALTER TABLE "hosts" ADD COLUMN "service_count" integer DEFAULT 0 Mdm::Host Load (0.5ms) SELECT "hosts".* FROM "hosts"   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120601152442')  (2.4ms) COMMIT Migrating to AddVulnDetails (20120625000000)  (0.3ms) BEGIN  (13.9ms) 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)   (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000000')  (6.4ms) COMMIT Migrating to AddHostDetails (20120625000001)  (5.0ms) BEGIN  (8.0ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000001')  (6.4ms) COMMIT Migrating to ExpandDetails (20120625000002)  (6.1ms) BEGIN  (0.4ms) ALTER TABLE "vuln_details" ADD COLUMN "nx_vuln_status" text  (0.2ms) ALTER TABLE "vuln_details" ADD COLUMN "nx_proof_key" text  (0.3ms) ALTER TABLE "vuln_details" ADD COLUMN "src" character varying(255)  (0.3ms) ALTER TABLE "host_details" ADD COLUMN "src" character varying(255)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000002')  (6.2ms) COMMIT Migrating to ExpandDetails2 (20120625000003)  (0.2ms) BEGIN  (7.2ms) ALTER TABLE "host_details" ADD COLUMN "nx_site_name" character varying(255)  (0.4ms) ALTER TABLE "host_details" ADD COLUMN "nx_site_importance" character varying(255)  (0.3ms) ALTER TABLE "host_details" ADD COLUMN "nx_scan_template" character varying(255)  (0.4ms) ALTER TABLE "host_details" ADD COLUMN "nx_risk_score" float  (0.3ms) ALTER TABLE "vuln_details" ADD COLUMN "nx_scan_id" integer  (0.2ms) ALTER TABLE "vuln_details" ADD COLUMN "nx_vulnerable_since" timestamp  (0.2ms) ALTER TABLE "vuln_details" ADD COLUMN "nx_pci_compliance_status" character varying(255)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000003')  (6.3ms) COMMIT Migrating to AddVulnAttempts (20120625000004)  (0.3ms) BEGIN  (14.8ms) 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)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000004')  (6.2ms) COMMIT Migrating to AddVulnAndHostCounterCaches (20120625000005)  (5.0ms) BEGIN  (28.0ms) ALTER TABLE "hosts" ADD COLUMN "host_detail_count" integer DEFAULT 0  (3.1ms) ALTER TABLE "vulns" ADD COLUMN "vuln_detail_count" integer DEFAULT 0  (2.9ms) ALTER TABLE "vulns" ADD COLUMN "vuln_attempt_count" integer DEFAULT 0  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000005')  (1.8ms) COMMIT Migrating to AddModuleDetails (20120625000006)  (0.2ms) BEGIN  (14.8ms) 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)  (6.9ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (0.8ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.6ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.6ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (2.4ms) CREATE TABLE "module_authors" ("id" serial primary key, "module_detail_id" integer, "name" text, "email" text)   (0.7ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("module_detail_id")  (2.2ms) CREATE TABLE "module_mixins" ("id" serial primary key, "module_detail_id" integer, "name" text)   (0.6ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("module_detail_id")  (2.3ms) CREATE TABLE "module_targets" ("id" serial primary key, "module_detail_id" integer, "index" integer, "name" text)   (0.7ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("module_detail_id")  (2.2ms) CREATE TABLE "module_actions" ("id" serial primary key, "module_detail_id" integer, "name" text)   (0.6ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("module_detail_id")  (2.3ms) CREATE TABLE "module_refs" ("id" serial primary key, "module_detail_id" integer, "name" text)   (0.6ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("module_detail_id")  (0.7ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.3ms) CREATE TABLE "module_archs" ("id" serial primary key, "module_detail_id" integer, "name" text)  (0.7ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("module_detail_id")  (2.1ms) CREATE TABLE "module_platforms" ("id" serial primary key, "module_detail_id" integer, "name" text)  (0.7ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("module_detail_id")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000006')  (1.1ms) COMMIT Migrating to AddExploitAttempts (20120625000007)  (0.6ms) BEGIN  (14.9ms) 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))   (12.0ms) ALTER TABLE "hosts" ADD COLUMN "exploit_attempt_count" integer DEFAULT 0  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000007')  (1.2ms) COMMIT Migrating to AddFailMessage (20120625000008)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "vuln_attempts" ADD COLUMN "fail_detail" text  (0.2ms) ALTER TABLE "exploit_attempts" ADD COLUMN "fail_detail" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000008')  (6.1ms) COMMIT Migrating to AddOwnerAndPayloadToWebVulns (20120718202805)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "web_vulns" ADD COLUMN "owner" character varying(255)  (0.2ms) ALTER TABLE "web_vulns" ADD COLUMN "payload" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120718202805')  (6.1ms) COMMIT Migrating to ChangeRequiredColumnsToNullFalseInWebVulns (20130228214900)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "web_vulns" ALTER "category" SET NOT NULL  (0.2ms) ALTER TABLE "web_vulns" ALTER "confidence" SET NOT NULL  (0.2ms) ALTER TABLE "web_vulns" ALTER "method" SET NOT NULL  (0.1ms) ALTER TABLE "web_vulns" ALTER "name" SET NOT NULL  (0.2ms) ALTER TABLE "web_vulns" ALTER "params" SET NOT NULL  (0.2ms) ALTER TABLE "web_vulns" ALTER "path" SET NOT NULL  (0.2ms) ALTER TABLE "web_vulns" ALTER "pname" SET NOT NULL  (0.1ms) ALTER TABLE "web_vulns" ALTER "proof" SET NOT NULL  (0.2ms) ALTER TABLE "web_vulns" ALTER "risk" SET NOT NULL  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130228214900')  (6.1ms) COMMIT Migrating to ChangeForeignKeyInModuleActions (20130412154159)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "module_actions" RENAME COLUMN "module_detail_id" TO "detail_id"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130412154159')  (6.1ms) COMMIT Migrating to ChangeForeignKeyInModuleArchs (20130412171844)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "module_archs" RENAME COLUMN "module_detail_id" TO "detail_id"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130412171844')  (6.2ms) COMMIT Migrating to ChangeForeignKeyInModuleAuthors (20130412173121)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "module_authors" RENAME COLUMN "module_detail_id" TO "detail_id"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130412173121')  (6.2ms) COMMIT Migrating to ChangeForeignKeyInModuleMixins (20130412173640)  (0.3ms) BEGIN  (0.4ms) ALTER TABLE "module_mixins" RENAME COLUMN "module_detail_id" TO "detail_id"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130412173640')  (5.9ms) COMMIT Migrating to ChangeForeignKeyInModulePlatforms (20130412174254)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "module_platforms" RENAME COLUMN "module_detail_id" TO "detail_id"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130412174254')  (6.2ms) COMMIT Migrating to ChangeForeignKeyInModuleRefs (20130412174719)  (0.2ms) BEGIN  (0.2ms) ALTER TABLE "module_refs" RENAME COLUMN "module_detail_id" TO "detail_id"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130412174719')  (5.6ms) COMMIT Migrating to ChangeForeignKeyInModuleTargets (20130412175040)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "module_targets" RENAME COLUMN "module_detail_id" TO "detail_id"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130412175040')  (5.8ms) COMMIT Migrating to AddCredsCounterCache (20130423211152)  (0.1ms) BEGIN  (28.8ms) ALTER TABLE "hosts" ADD COLUMN "cred_count" integer DEFAULT 0 Mdm::Cred Load (0.3ms) SELECT "creds".* FROM "creds"   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130423211152')  (1.1ms) COMMIT Migrating to ChangeRequiredColumnsToNullFalseInHosts (20130430151353)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "hosts" ALTER "address" SET NOT NULL  (0.2ms) ALTER TABLE "hosts" ALTER "workspace_id" SET NOT NULL  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130430151353')  (5.8ms) COMMIT Migrating to EnforceAddressUniquenessInWorkspaceInHosts (20130430162145)  (0.2ms) BEGIN  (0.9ms) SELECT workspace_id, address, count_addr FROM ( SELECT workspace_id, address, COUNT(address) AS count_addr FROM hosts GROUP BY address, workspace_id ) X WHERE count_addr > 1  (0.2ms) DROP INDEX "index_hosts_on_address"  (6.7ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130430162145')  (6.0ms) COMMIT Migrating to RemoveCampaigns (20130510021637)  (0.1ms) BEGIN  (0.9ms) DROP TABLE "attachments"  (0.5ms) DROP TABLE "attachments_email_templates"  (0.7ms) DROP TABLE "email_addresses"  (0.7ms) DROP TABLE "email_templates"  (0.6ms) DROP TABLE "web_templates"  (0.7ms) DROP TABLE "campaigns"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130510021637')  (7.6ms) COMMIT Migrating to ChangeWebVulnsConfidenceToInteger (20130515164311)  (0.3ms) BEGIN  (26.2ms) ALTER TABLE web_vulns ALTER COLUMN confidence TYPE integer USING confidence::integer  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130515164311')  (0.9ms) COMMIT Migrating to ValidMdmWebVulnParams (20130515172727)  (0.2ms) BEGIN Mdm::WebVuln Load (0.5ms) SELECT "web_vulns".* FROM "web_vulns" ORDER BY "web_vulns"."id" ASC LIMIT 1000  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130515172727')  (6.0ms) COMMIT Migrating to MakingVulnsRefsARealArModel (20130516204810)  (0.1ms) BEGIN  (8.3ms) ALTER TABLE "vulns_refs" ADD COLUMN "id" serial primary key  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130516204810')  (6.6ms) COMMIT Migrating to CreateTaskCreds (20130522001343)  (5.8ms) BEGIN  (7.4ms) 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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130522001343')  (6.3ms) COMMIT Migrating to CreateTaskHosts (20130522032517)  (6.1ms) BEGIN  (7.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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130522032517')  (6.2ms) COMMIT Migrating to CreateTaskServices (20130522041110)  (5.8ms) BEGIN  (7.8ms) 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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130522041110')  (6.2ms) COMMIT Migrating to RemoveCampaignIdFromClients (20130525015035)  (5.9ms) BEGIN  (0.3ms) ALTER TABLE "clients" DROP "campaign_id"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130525015035')  (5.9ms) COMMIT Migrating to DropTableImportedCreds (20130525212420)  (0.1ms) BEGIN  (0.9ms) DROP TABLE "imported_creds"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130525212420')  (6.5ms) COMMIT Migrating to MakingHostTagsARealArModel (20130531144949)  (0.1ms) BEGIN  (8.2ms) ALTER TABLE "hosts_tags" ADD COLUMN "id" serial primary key  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130531144949')  (6.5ms) COMMIT Migrating to CreateTaskSessions (20130604145732)  (5.7ms) BEGIN  (7.4ms) 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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130604145732')  (6.2ms) COMMIT Migrating to RemovePnameValidation (20130717150737)  (5.5ms) BEGIN  (0.3ms) ALTER TABLE "web_vulns" ALTER COLUMN "pname" TYPE text  (0.2ms) ALTER TABLE "web_vulns" ALTER "pname" DROP NOT NULL  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130717150737')  (6.0ms) COMMIT Migrating to CreateMetasploitCredentialPublics (20140331173835)  (0.1ms) BEGIN  (7.7ms) 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)  (6.4ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140331173835')  (0.4ms) COMMIT Migrating to CreateMetasploitCredentialPrivates (20140407212345)  (0.2ms) BEGIN  (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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140407212345')  (0.5ms) COMMIT Migrating to CreateMetasploitCredentialRealms (20140410132401)  (0.1ms) BEGIN  (2.6ms) 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)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140410132401')  (0.4ms) COMMIT Migrating to UniqueMetasploitCredentialRealms (20140410161611)  (0.2ms) BEGIN  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140410161611')  (0.3ms) COMMIT Migrating to CreateMetasploitCredentialOriginManuals (20140410191213)  (0.1ms) BEGIN  (1.8ms) 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)  (0.7ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140410191213')  (0.4ms) COMMIT Migrating to CreateMetasploitCredentialOriginImports (20140410205410)  (0.2ms) BEGIN  (2.8ms) 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)   (0.7ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140410205410')  (0.5ms) COMMIT Migrating to CreateMetasploitCredentialOriginSessions (20140411142102)  (0.2ms) BEGIN  (2.6ms) 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)  (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140411142102')  (0.5ms) COMMIT Migrating to CreateMetasploitCredentialOriginServices (20140411205325)  (0.2ms) BEGIN  (2.4ms) 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)   (0.7ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140411205325')  (0.4ms) COMMIT Migrating to CreateMetasploitCredentialCores (20140414192550)  (0.2ms) BEGIN  (2.0ms) 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)  (0.7ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.6ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.6ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.6ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.6ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140414192550')  (0.4ms) COMMIT Migrating to CreateMetasploitCredentialLogins (20140417140933)  (0.2ms) BEGIN  (3.0ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.6ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140417140933')  (0.5ms) COMMIT Migrating to AddLoginsCounterCacheToCores (20140520140817)  (0.2ms) BEGIN  (4.0ms) ALTER TABLE "metasploit_credential_cores" ADD COLUMN "logins_count" integer DEFAULT 0 Metasploit::Credential::Core Load (0.4ms) SELECT "metasploit_credential_cores".* FROM "metasploit_credential_cores"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140520140817')  (0.9ms) COMMIT Migrating to AddJtrFormatToMetasploitCredentialPrivates (20140603163708)  (0.2ms) BEGIN  (0.4ms) ALTER TABLE "metasploit_credential_privates" ADD COLUMN "jtr_format" character varying(255)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140603163708')  (0.3ms) COMMIT Migrating to CreateMetasploitCredentialOriginCrackedPasswords (20140605173747)  (0.1ms) BEGIN  (2.0ms) 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)  (0.6ms) CREATE INDEX "originating_credential_cores" ON "metasploit_credential_origin_cracked_passwords" ("metasploit_credential_core_id")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140605173747')  (0.4ms) COMMIT Migrating to CreateCredentialCoresTasksJoinTable (20140702184622)  (0.1ms) BEGIN  (0.6ms) CREATE TABLE "credential_cores_tasks" ("core_id" integer, "task_id" integer)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140702184622')  (0.3ms) COMMIT Migrating to CreateCredentialLoginsTasksJoinTable (20140703144541)  (0.1ms) BEGIN  (0.6ms) CREATE TABLE "credential_logins_tasks" ("login_id" integer, "task_id" integer)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140703144541')  (0.4ms) COMMIT  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (116.6ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (233.2ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.3ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.9ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (1.0ms) CREATE TABLE "credential_cores_tasks" ("core_id" integer, "task_id" integer)  (0.8ms) CREATE TABLE "credential_logins_tasks" ("login_id" integer, "task_id" integer)   (3.1ms) 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(256), "source_id" integer, "source_type" character varying(255))  (3.1ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (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), "fail_detail" text)  (2.8ms) 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)   (2.8ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.3ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.1ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (1.1ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.7ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (0.9ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.9ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.1ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (2.9ms) 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, "macro" text)   (3.6ms) 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, "content_type" character varying(255), "name" text, "info" text)  (2.8ms) 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)   (2.0ms) 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, "logins_count" integer DEFAULT 0)  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.6ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.8ms) 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)  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.8ms) 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)   (0.9ms) CREATE INDEX "originating_credential_cores" ON "metasploit_credential_origin_cracked_passwords" ("metasploit_credential_core_id")  (2.8ms) 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)   (0.9ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (2.0ms) 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)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (3.7ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (3.1ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (2.6ms) 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, "jtr_format" character varying(255))   (1.2ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.8ms) 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)   (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.8ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.6ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.4ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.6ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.9ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.8ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (3.6ms) 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)  (0.9ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (1.0ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (1.0ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (1.0ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.8ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (6.3ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.8ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (1.0ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.9ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (1.0ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.5ms) 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, "name" text)  (2.8ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.9ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.9ms) 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)   (2.6ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (1.2ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (3.0ms) 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)  (2.9ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.7ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.8ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.9ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.8ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.8ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.8ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (3.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)  (3.0ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (3.3ms) 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)  (2.0ms) 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)   (2.0ms) 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)  (2.0ms) 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)   (2.1ms) 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)  (2.8ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (3.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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (2.8ms) 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, "fail_detail" text)   (3.3ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (3.2ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.9ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (1.9ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.7ms) 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, "query" text)  (0.8ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.7ms) 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, "headers" text, "body" bytea, "request" bytea)  (0.9ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.9ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.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)   (0.8ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.9ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (1.1ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.0ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.9ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.8ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (1.0ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.1ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (3.0ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (2.8ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140703144541')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140520140817')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140603163708')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140605173747')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140702184622')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (5.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (147.7ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (277.7ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.8ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.1ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (0.8ms) CREATE TABLE "credential_cores_tasks" ("core_id" integer, "task_id" integer)  (0.8ms) CREATE TABLE "credential_logins_tasks" ("login_id" integer, "task_id" integer)   (20.4ms) 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(256), "source_id" integer, "source_type" character varying(255))  (3.0ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.9ms) 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), "fail_detail" text)  (2.8ms) 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)   (2.8ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.5ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.1ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (1.1ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.8ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (0.8ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (1.0ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.1ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (2.8ms) 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, "macro" text)   (2.6ms) 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, "content_type" character varying(255), "name" text, "info" text)  (2.9ms) 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)   (2.0ms) 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, "logins_count" integer DEFAULT 0)  (1.0ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.0ms) 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)   (0.8ms) CREATE INDEX "originating_credential_cores" ON "metasploit_credential_origin_cracked_passwords" ("metasploit_credential_core_id")  (3.1ms) 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)   (0.9ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (2.0ms) 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)   (0.7ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (3.1ms) 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)   (1.0ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.9ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (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, "jtr_format" character varying(255))   (1.1ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (2.0ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.9ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.7ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.7ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.7ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.9ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (3.1ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.9ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.8ms) 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)  (0.8ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.9ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.8ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.9ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.8ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.8ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.7ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (1.0ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.6ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.2ms) 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, "name" text)  (2.9ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.8ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.6ms) 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)   (2.9ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (1.1ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (3.2ms) 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)  (3.0ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.8ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.9ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.8ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.8ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.8ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.9ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (3.5ms) 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)  (3.1ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (3.3ms) 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)  (1.9ms) 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)   (2.0ms) 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)  (1.9ms) 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)   (2.1ms) 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)  (2.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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (4.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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (3.5ms) 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, "fail_detail" text)   (3.1ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (3.3ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.8ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (2.0ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (3.9ms) 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, "query" text)  (1.0ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (4.5ms) 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, "headers" text, "body" bytea, "request" bytea)  (1.0ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.9ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.9ms) 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)   (0.9ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.9ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (1.0ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.2ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.9ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.8ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.9ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.1ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.7ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (2.8ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140703144541')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140520140817')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140603163708')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140605173747')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140702184622')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (132.0ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (230.6ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (4.7ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.6ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (0.6ms) CREATE TABLE "credential_cores_tasks" ("core_id" integer, "task_id" integer)  (0.7ms) CREATE TABLE "credential_logins_tasks" ("login_id" integer, "task_id" integer)   (2.9ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.9ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.7ms) 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), "fail_detail" text)  (2.7ms) 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)   (2.7ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.3ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (1.2ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.9ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (0.8ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.7ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (1.1ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.2ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (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, "macro" text)   (2.7ms) 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, "content_type" character varying(255), "name" text, "info" text)  (2.9ms) 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)   (1.9ms) 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, "logins_count" integer DEFAULT 0)  (1.0ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.7ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (3.1ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.0ms) 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)   (0.9ms) CREATE INDEX "originating_credential_cores" ON "metasploit_credential_origin_cracked_passwords" ("metasploit_credential_core_id")  (2.8ms) 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)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (2.0ms) 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)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.7ms) 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)   (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.6ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (3.1ms) 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, "jtr_format" character varying(255))   (12.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (6.8ms) 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)   (5.5ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (3.1ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.5ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.5ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.7ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.7ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.9ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.9ms) 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)  (0.8ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (1.0ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.8ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (1.0ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.7ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.7ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.5ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.5ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (2.8ms) 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, "name" text)  (3.0ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.9ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.7ms) 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)   (2.4ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.9ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (3.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)  (2.8ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.7ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.8ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.9ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.7ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.8ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.7ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.7ms) 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)  (2.8ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (3.1ms) 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)  (2.0ms) 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)   (2.4ms) 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)  (1.9ms) 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)   (1.9ms) 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)  (2.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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (2.9ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (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, "fail_detail" text)   (3.1ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (3.1ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (1.8ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.9ms) 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, "query" text)  (0.8ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.7ms) 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, "headers" text, "body" bytea, "request" bytea)  (0.8ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (1.0ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.8ms) 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)   (0.9ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.8ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.8ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.9ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (1.0ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.8ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.0ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.7ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (2.7ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140703144541')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140520140817')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140603163708')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140605173747')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140702184622')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (2.0ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (141.0ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (273.5ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (27.9ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.9ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (0.7ms) CREATE TABLE "credential_cores_tasks" ("core_id" integer, "task_id" integer)  (0.6ms) CREATE TABLE "credential_logins_tasks" ("login_id" integer, "task_id" integer)   (3.2ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.9ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.8ms) 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), "fail_detail" text)  (3.1ms) 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)   (2.6ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.9ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.1ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (1.2ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.8ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (0.8ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.9ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.3ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (2.8ms) 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, "macro" text)   (2.8ms) 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, "content_type" character varying(255), "name" text, "info" text)  (3.1ms) 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)   (2.0ms) 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, "logins_count" integer DEFAULT 0)  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.6ms) 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)  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.0ms) 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)   (0.9ms) CREATE INDEX "originating_credential_cores" ON "metasploit_credential_origin_cracked_passwords" ("metasploit_credential_core_id")  (3.0ms) 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)   (1.0ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.9ms) 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)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.7ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.8ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (2.8ms) 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, "jtr_format" character varying(255))   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.7ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.7ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.5ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (3.3ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.9ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.7ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (3.9ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.8ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.8ms) 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)  (0.9ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.8ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.8ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.9ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.8ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.6ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.9ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.7ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.4ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.6ms) 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, "name" text)  (2.7ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.8ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.8ms) 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)   (2.5ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (1.0ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (3.2ms) 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)  (2.8ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.7ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.9ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.9ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.8ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.8ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.8ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (3.0ms) 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)  (3.0ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (3.0ms) 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)  (1.9ms) 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)   (2.0ms) 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)  (1.9ms) 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)   (2.2ms) 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)  (2.8ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (3.3ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (2.7ms) 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, "fail_detail" text)   (3.2ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (3.0ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (2.1ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.7ms) 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, "query" text)  (0.8ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.9ms) 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, "headers" text, "body" bytea, "request" bytea)  (0.7ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.9ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.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)   (0.7ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.7ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.8ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.0ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.7ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.9ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.8ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (2.9ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (3.2ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (3.2ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140703144541')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140520140817')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140603163708')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140605173747')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140702184622')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.1ms) BEGIN Connecting to database specified by database.yml  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (130.5ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (356.6ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.3ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.8ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (0.7ms) CREATE TABLE "credential_cores_tasks" ("core_id" integer, "task_id" integer)  (0.7ms) CREATE TABLE "credential_logins_tasks" ("login_id" integer, "task_id" integer)   (3.5ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.8ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (3.3ms) 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), "fail_detail" text)  (3.1ms) 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)   (2.9ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.2ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.1ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (1.0ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.9ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (0.9ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.8ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.4ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.1ms) 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, "macro" text)   (2.9ms) 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, "content_type" character varying(255), "name" text, "info" text)  (3.1ms) 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)   (2.4ms) 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, "logins_count" integer DEFAULT 0)  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (3.1ms) 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)  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.2ms) 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)   (0.9ms) CREATE INDEX "originating_credential_cores" ON "metasploit_credential_origin_cracked_passwords" ("metasploit_credential_core_id")  (2.9ms) 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)   (1.0ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (2.0ms) 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)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (3.0ms) 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)   (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (3.0ms) 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)   (1.2ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (2.9ms) 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, "jtr_format" character varying(255))   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.9ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (3.3ms) 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)   (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.8ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.6ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.8ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (1.0ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (3.1ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.9ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (3.1ms) 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)  (1.0ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.8ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.9ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.8ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.9ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.7ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.7ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.8ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (3.0ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.1ms) 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, "name" text)  (2.9ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.9ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.7ms) 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)   (2.9ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.8ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (3.0ms) 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)  (2.9ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.8ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.9ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (1.0ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.9ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.8ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.8ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.9ms) 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)  (2.9ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (3.1ms) 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)  (2.3ms) 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)   (1.9ms) 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)  (2.0ms) 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)   (2.1ms) 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)  (3.1ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (3.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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (2.7ms) 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, "fail_detail" text)   (3.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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (3.2ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (1.1ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (2.0ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.6ms) 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, "query" text)  (0.8ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (28.2ms) 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, "headers" text, "body" bytea, "request" bytea)  (1.0ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (1.0ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.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)   (0.8ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.9ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.8ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.0ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.8ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.9ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (1.0ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.1ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.6ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (2.9ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140703144541')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140520140817')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140603163708')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140605173747')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140702184622')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (134.4ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (368.1ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.3ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.8ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (0.7ms) CREATE TABLE "credential_cores_tasks" ("core_id" integer, "task_id" integer)  (0.7ms) CREATE TABLE "credential_logins_tasks" ("login_id" integer, "task_id" integer)   (3.1ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.6ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.7ms) 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), "fail_detail" text)  (2.7ms) 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)   (2.9ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.2ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.2ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (1.2ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.8ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (0.8ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.7ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.9ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.3ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.1ms) 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, "macro" text)   (2.9ms) 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, "content_type" character varying(255), "name" text, "info" text)  (2.9ms) 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)   (1.9ms) 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, "logins_count" integer DEFAULT 0)  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.8ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.0ms) 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)   (0.9ms) CREATE INDEX "originating_credential_cores" ON "metasploit_credential_origin_cracked_passwords" ("metasploit_credential_core_id")  (2.8ms) 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)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.9ms) 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)   (0.9ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.8ms) 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)   (1.0ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.6ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (2.8ms) 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, "jtr_format" character varying(255))   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (2.0ms) 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)   (0.7ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.7ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.8ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (3.2ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.6ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (1.0ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.9ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.8ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (3.4ms) 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)  (1.0ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (1.0ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.9ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.9ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.7ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.6ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (1.0ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.5ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (3.0ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (2.9ms) 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, "name" text)  (2.7ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.9ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.9ms) 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)   (2.8ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.8ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.9ms) 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)  (2.8ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.7ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.8ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.9ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.8ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.8ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.8ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.9ms) 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)  (2.9ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (3.1ms) 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)  (2.0ms) 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)   (1.9ms) 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)  (2.0ms) 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)   (2.3ms) 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)  (2.8ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (3.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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (2.8ms) 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, "fail_detail" text)   (2.9ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (3.1ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.9ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (2.0ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.7ms) 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, "query" text)  (0.9ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (3.2ms) 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, "headers" text, "body" bytea, "request" bytea)  (0.9ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.9ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.9ms) 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)   (0.8ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.8ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.8ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (2.9ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (1.0ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (1.2ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (1.0ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (2.9ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.9ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.6ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (2.8ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140703144541')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140520140817')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140603163708')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140605173747')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140702184622')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (131.2ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (240.0ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.0ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.5ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (0.6ms) CREATE TABLE "credential_cores_tasks" ("core_id" integer, "task_id" integer)  (0.7ms) CREATE TABLE "credential_logins_tasks" ("login_id" integer, "task_id" integer)   (2.9ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.6ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.7ms) 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), "fail_detail" text)  (2.6ms) 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)   (2.6ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.2ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (0.9ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (1.1ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.8ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (0.8ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.7ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (1.0ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.0ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (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, "macro" text)   (2.8ms) 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, "content_type" character varying(255), "name" text, "info" text)  (3.0ms) 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)   (2.0ms) 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, "logins_count" integer DEFAULT 0)  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.7ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.5ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.0ms) 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)   (0.9ms) CREATE INDEX "originating_credential_cores" ON "metasploit_credential_origin_cracked_passwords" ("metasploit_credential_core_id")  (3.0ms) 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)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.9ms) 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)   (1.0ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.7ms) 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)   (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.5ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (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, "jtr_format" character varying(255))   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.9ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.9ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.5ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.6ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.4ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (3.0ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.8ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.7ms) 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)  (0.9ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.8ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.8ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.8ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.9ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.9ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.7ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.3ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (7.2ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.7ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (3.9ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.0ms) 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, "name" text)  (3.0ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.9ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.5ms) 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)   (2.6ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.8ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.7ms) 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)  (2.6ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.7ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.6ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.8ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.7ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.8ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.8ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.6ms) 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)  (2.7ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (2.8ms) 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)  (2.1ms) 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)   (2.3ms) 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)  (2.0ms) 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)   (1.9ms) 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)  (2.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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (3.3ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (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, "fail_detail" text)   (2.9ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (2.9ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.9ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (1.8ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.9ms) 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, "query" text)  (0.8ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.9ms) 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, "headers" text, "body" bytea, "request" bytea)  (0.8ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (1.0ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.9ms) 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)   (0.9ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.8ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.8ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (2.9ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (1.1ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.9ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.8ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (2.8ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.9ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.6ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (2.8ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140703144541')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140520140817')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140603163708')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140605173747')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140702184622')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (6.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (162.9ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (395.1ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (8.3ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.9ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (0.6ms) CREATE TABLE "credential_cores_tasks" ("core_id" integer, "task_id" integer)  (0.7ms) CREATE TABLE "credential_logins_tasks" ("login_id" integer, "task_id" integer)   (20.2ms) 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(256), "source_id" integer, "source_type" character varying(255))  (3.4ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.8ms) 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), "fail_detail" text)  (3.0ms) 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)   (3.2ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.5ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.3ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (1.2ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.9ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (0.9ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.9ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.9ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.3ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (2.9ms) 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, "macro" text)   (3.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, "content_type" character varying(255), "name" text, "info" text)  (5.0ms) 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)   (2.2ms) 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, "logins_count" integer DEFAULT 0)  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (1.0ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.7ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (3.0ms) 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)  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (1.1ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.9ms) 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)   (1.4ms) CREATE INDEX "originating_credential_cores" ON "metasploit_credential_origin_cracked_passwords" ("metasploit_credential_core_id")  (3.4ms) 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)   (1.0ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (2.1ms) 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)   (1.0ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.8ms) 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)   (1.0ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.7ms) 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)   (1.0ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (3.0ms) 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, "jtr_format" character varying(255))   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (2.2ms) 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)   (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.7ms) 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)   (1.1ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.7ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.5ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.6ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.9ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (1.0ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.9ms) 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)  (0.9ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.9ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.7ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.9ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.9ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.6ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.5ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.9ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (1.0ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.0ms) 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, "name" text)  (2.9ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (1.1ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.8ms) 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)   (2.9ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.8ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.8ms) 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)  (2.8ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.7ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.9ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.8ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (1.0ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.9ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.9ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.6ms) 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)  (3.1ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (3.0ms) 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)  (2.1ms) 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)   (2.2ms) 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)  (2.0ms) 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)   (2.2ms) 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)  (3.0ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (2.8ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (4.9ms) 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, "fail_detail" text)   (3.1ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (3.4ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.7ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (2.1ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (3.0ms) 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, "query" text)  (0.9ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.9ms) 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, "headers" text, "body" bytea, "request" bytea)  (0.9ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.8ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.8ms) 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)   (0.9ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.8ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.9ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.1ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.8ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.8ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.8ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (2.8ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.9ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.6ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (2.9ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140703144541')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140520140817')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140603163708')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140605173747')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140702184622')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (134.6ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (248.1ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (4.9ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.1ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (0.7ms) CREATE TABLE "credential_cores_tasks" ("core_id" integer, "task_id" integer)  (0.7ms) CREATE TABLE "credential_logins_tasks" ("login_id" integer, "task_id" integer)   (3.5ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.8ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (3.0ms) 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), "fail_detail" text)  (2.9ms) 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)   (3.0ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.3ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.1ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (1.2ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.8ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (0.8ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (1.0ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.9ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.3ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (2.9ms) 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, "macro" text)   (2.7ms) 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, "content_type" character varying(255), "name" text, "info" text)  (2.9ms) 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)   (2.1ms) 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, "logins_count" integer DEFAULT 0)  (1.0ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (1.0ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.7ms) 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)  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (1.9ms) 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)   (1.0ms) CREATE INDEX "originating_credential_cores" ON "metasploit_credential_origin_cracked_passwords" ("metasploit_credential_core_id")  (2.9ms) 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)   (1.0ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (2.0ms) 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)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (4.7ms) 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)   (1.4ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.8ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (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, "jtr_format" character varying(255))   (1.1ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (2.2ms) 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)   (0.7ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.8ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.6ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.9ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.6ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (3.2ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.9ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.9ms) 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)  (0.8ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.8ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.8ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.9ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.8ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (3.2ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.5ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.6ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (2.9ms) 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, "name" text)  (2.7ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.8ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.6ms) 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)   (2.6ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.7ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.7ms) 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)  (3.2ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (14.0ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (8.8ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (1.0ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.9ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.8ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.8ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.7ms) 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)  (2.9ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (2.9ms) 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)  (2.1ms) 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)   (1.9ms) 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)  (4.1ms) 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)   (2.0ms) 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)  (4.2ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (3.8ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (4.1ms) 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, "fail_detail" text)   (3.7ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (3.5ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (5.5ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (3.2ms) 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, "query" text)  (1.1ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (4.1ms) 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, "headers" text, "body" bytea, "request" bytea)  (1.0ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (1.0ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (3.0ms) 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)   (0.9ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (1.7ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.8ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.0ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.8ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (1.0ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.8ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (2.9ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.9ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (2.7ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140703144541')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140520140817')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140603163708')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140605173747')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140702184622')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (129.1ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (347.3ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.2ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.1ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (0.7ms) CREATE TABLE "credential_cores_tasks" ("core_id" integer, "task_id" integer)  (0.7ms) CREATE TABLE "credential_logins_tasks" ("login_id" integer, "task_id" integer)   (20.2ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.9ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.7ms) 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), "fail_detail" text)  (2.8ms) 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)   (4.4ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.7ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.2ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (1.1ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.8ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.0ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.9ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.8ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.2ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (2.8ms) 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, "macro" text)   (3.6ms) 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, "content_type" character varying(255), "name" text, "info" text)  (3.1ms) 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)   (2.0ms) 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, "logins_count" integer DEFAULT 0)  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.8ms) 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)  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.0ms) 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)   (0.9ms) CREATE INDEX "originating_credential_cores" ON "metasploit_credential_origin_cracked_passwords" ("metasploit_credential_core_id")  (2.7ms) 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)   (1.0ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.9ms) 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)   (0.9ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.7ms) 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)   (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.6ms) 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)   (1.0ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (2.6ms) 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, "jtr_format" character varying(255))   (0.7ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (2.0ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (3.4ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.6ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.8ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.7ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.6ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.7ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.9ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.8ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.7ms) 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)  (0.8ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.8ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.9ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.8ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.8ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.5ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (1.0ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.8ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.8ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.6ms) 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, "name" text)  (2.6ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.8ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.8ms) 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)   (2.7ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.9ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.7ms) 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)  (2.8ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (3.5ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.8ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (1.0ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (1.0ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.8ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.8ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (3.0ms) 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)  (3.1ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (3.0ms) 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)  (1.9ms) 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)   (2.1ms) 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)  (2.1ms) 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)   (1.9ms) 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)  (2.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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (3.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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (2.7ms) 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, "fail_detail" text)   (3.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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (3.3ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.9ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (1.9ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.6ms) 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, "query" text)  (0.8ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.9ms) 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, "headers" text, "body" bytea, "request" bytea)  (0.9ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.9ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (3.3ms) 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)   (1.1ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.8ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.9ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.0ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.9ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.8ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.9ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (2.8ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.9ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (2.8ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140703144541')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140520140817')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140603163708')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140605173747')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140702184622')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (145.4ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (373.3ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.1ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.6ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (0.7ms) CREATE TABLE "credential_cores_tasks" ("core_id" integer, "task_id" integer)  (0.7ms) CREATE TABLE "credential_logins_tasks" ("login_id" integer, "task_id" integer)   (3.0ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.6ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.7ms) 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), "fail_detail" text)  (2.7ms) 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)   (3.0ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.5ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (1.2ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.8ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (0.8ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (1.0ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.0ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (2.8ms) 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, "macro" text)   (2.9ms) 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, "content_type" character varying(255), "name" text, "info" text)  (3.0ms) 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)   (2.0ms) 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, "logins_count" integer DEFAULT 0)  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.7ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.7ms) 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)  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (1.9ms) 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)   (0.8ms) CREATE INDEX "originating_credential_cores" ON "metasploit_credential_origin_cracked_passwords" ("metasploit_credential_core_id")  (2.8ms) 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)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.8ms) 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)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (3.0ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.6ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (2.6ms) 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, "jtr_format" character varying(255))   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.8ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.9ms) 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)   (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.6ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.8ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.4ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.9ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.8ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.7ms) 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)  (0.8ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.8ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.8ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.8ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.6ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.8ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.5ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.8ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (2.9ms) 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, "name" text)  (3.0ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.9ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.9ms) 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)   (2.7ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.8ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.8ms) 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)  (2.8ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.8ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.6ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (1.1ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.8ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.8ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.8ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.5ms) 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)  (2.8ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (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)  (2.1ms) 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)   (2.1ms) 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)  (2.0ms) 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)   (1.8ms) 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)  (5.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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (3.0ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (6.4ms) 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, "fail_detail" text)   (6.9ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (3.4ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.9ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (1.8ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.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, "query" text)  (0.9ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (3.0ms) 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, "headers" text, "body" bytea, "request" bytea)  (0.9ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (1.0ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.8ms) 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)   (0.8ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (1.0ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (1.1ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.2ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.8ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.8ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (1.1ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.0ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.7ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.8ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (2.8ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140703144541')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140520140817')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140603163708')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140605173747')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140702184622')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (141.4ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (230.3ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (14.0ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.7ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (0.7ms) CREATE TABLE "credential_cores_tasks" ("core_id" integer, "task_id" integer)  (0.6ms) CREATE TABLE "credential_logins_tasks" ("login_id" integer, "task_id" integer)   (2.9ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.8ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.9ms) 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), "fail_detail" text)  (2.8ms) 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)   (2.9ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.4ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (1.0ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.8ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (0.8ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.7ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.8ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.1ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (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, "macro" text)   (2.6ms) 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, "content_type" character varying(255), "name" text, "info" text)  (2.9ms) 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)   (1.9ms) 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, "logins_count" integer DEFAULT 0)  (0.7ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.7ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (1.0ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (5.5ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (6.8ms) 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)  (1.1ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.0ms) 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)   (0.8ms) CREATE INDEX "originating_credential_cores" ON "metasploit_credential_origin_cracked_passwords" ("metasploit_credential_core_id")  (2.7ms) 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)   (0.7ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (2.1ms) 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)   (5.4ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (3.1ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.5ms) 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)   (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (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, "jtr_format" character varying(255))   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.9ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (3.1ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.4ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.5ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.7ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.4ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.7ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (1.0ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.9ms) 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)  (0.8ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.8ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.8ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.9ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.7ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (3.0ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.6ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.7ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.8ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.7ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (2.8ms) 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, "name" text)  (3.3ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.7ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.8ms) 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)   (3.0ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.9ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.6ms) 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)  (2.9ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.7ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.7ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.7ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.7ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.9ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.8ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.7ms) 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)  (2.9ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (2.9ms) 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)  (2.1ms) 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)   (1.9ms) 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)  (2.0ms) 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)   (1.8ms) 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)  (3.0ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (2.7ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (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, "fail_detail" text)   (2.7ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (3.2ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.8ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (1.7ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.6ms) 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, "query" text)  (0.8ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.7ms) 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, "headers" text, "body" bytea, "request" bytea)  (0.8ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.9ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.6ms) 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)   (0.8ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.8ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (1.1ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (2.7ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.8ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.8ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.9ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.0ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.6ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (3.4ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.5ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20140703144541')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140520140817')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140603163708')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140605173747')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140702184622')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (136.6ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (316.4ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.0ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.9ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (0.7ms) CREATE TABLE "credential_cores_tasks" ("core_id" integer, "task_id" integer)  (1.3ms) CREATE TABLE "credential_logins_tasks" ("login_id" integer, "task_id" integer)   (3.0ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.8ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (3.0ms) 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), "fail_detail" text)  (2.8ms) 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)   (2.9ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.0ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (1.2ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (1.0ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.0ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.9ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.0ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (2.8ms) 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, "macro" text)   (2.8ms) 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, "content_type" character varying(255), "name" text, "info" text)  (3.0ms) 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)   (2.0ms) 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, "logins_count" integer DEFAULT 0)  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.7ms) 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)  (1.2ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.0ms) 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)   (0.9ms) CREATE INDEX "originating_credential_cores" ON "metasploit_credential_origin_cracked_passwords" ("metasploit_credential_core_id")  (2.8ms) 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)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (2.0ms) 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)   (0.9ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.8ms) 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)   (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (3.2ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (3.6ms) 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, "jtr_format" character varying(255))   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (2.0ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.7ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.5ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.9ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.8ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (3.0ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (1.1ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (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)  (0.8ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.8ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.9ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.7ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.7ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.9ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.7ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.8ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (2.8ms) 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, "name" text)  (2.9ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.9ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.9ms) 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)   (3.0ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.8ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (3.2ms) 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)  (2.7ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.7ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.8ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.8ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.8ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.8ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.8ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.8ms) 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)  (2.9ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (3.5ms) 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)  (2.1ms) 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)   (2.6ms) 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)  (2.1ms) 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)   (1.8ms) 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)  (3.1ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (2.9ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (3.2ms) 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, "fail_detail" text)   (3.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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (3.2ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.9ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (2.0ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.7ms) 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, "query" text)  (0.8ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (3.3ms) 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, "headers" text, "body" bytea, "request" bytea)  (0.8ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.9ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.8ms) 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)   (0.8ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.9ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (1.3ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.1ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (1.0ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (1.0ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (1.0ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (2.8ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.7ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (2.9ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140703144541')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140520140817')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140603163708')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140605173747')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140702184622')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (129.6ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (238.0ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.0ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.8ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (0.7ms) CREATE TABLE "credential_cores_tasks" ("core_id" integer, "task_id" integer)  (0.7ms) CREATE TABLE "credential_logins_tasks" ("login_id" integer, "task_id" integer)   (3.0ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.9ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.7ms) 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), "fail_detail" text)  (2.7ms) 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)   (2.8ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.2ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (1.1ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.8ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (0.8ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.8ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.0ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (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, "macro" text)   (3.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, "content_type" character varying(255), "name" text, "info" text)  (3.0ms) 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)   (2.1ms) 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, "logins_count" integer DEFAULT 0)  (1.0ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.7ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.7ms) 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)  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.0ms) 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)   (0.8ms) CREATE INDEX "originating_credential_cores" ON "metasploit_credential_origin_cracked_passwords" ("metasploit_credential_core_id")  (2.8ms) 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)   (0.9ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.8ms) 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)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.9ms) 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)   (1.0ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.8ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (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, "jtr_format" character varying(255))   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.8ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.7ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.5ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.7ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.5ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (3.2ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.9ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (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)  (0.8ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.8ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.8ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.7ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.7ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.6ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (3.0ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (4.5ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (1.5ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (1.7ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (3.9ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (4.0ms) 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, "name" text)  (2.8ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.8ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.7ms) 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)   (2.6ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.8ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (3.0ms) 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)  (2.7ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.7ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.8ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.9ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.9ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.9ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.9ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.8ms) 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)  (3.0ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (3.0ms) 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)  (2.0ms) 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)   (1.9ms) 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)  (2.1ms) 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)   (2.2ms) 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)  (3.0ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (3.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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (2.7ms) 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, "fail_detail" text)   (3.4ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (3.0ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.8ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (1.8ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.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, "query" text)  (0.9ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.9ms) 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, "headers" text, "body" bytea, "request" bytea)  (0.8ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.9ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.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)   (0.8ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (1.0ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (1.0ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.3ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.9ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.9ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.9ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.3ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.8ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (3.0ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140703144541')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140520140817')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140603163708')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140605173747')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140702184622')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (127.5ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (232.4ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.3ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.9ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (0.7ms) CREATE TABLE "credential_cores_tasks" ("core_id" integer, "task_id" integer)  (0.7ms) CREATE TABLE "credential_logins_tasks" ("login_id" integer, "task_id" integer)   (3.0ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.7ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (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), "fail_detail" text)  (2.7ms) 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)   (2.5ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.3ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (0.9ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (1.1ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.8ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (0.8ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.9ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.1ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (2.8ms) 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, "macro" text)   (2.8ms) 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, "content_type" character varying(255), "name" text, "info" text)  (2.9ms) 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)   (1.9ms) 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, "logins_count" integer DEFAULT 0)  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (1.0ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (1.8ms) 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)   (0.8ms) CREATE INDEX "originating_credential_cores" ON "metasploit_credential_origin_cracked_passwords" ("metasploit_credential_core_id")  (2.7ms) 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)   (0.9ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.9ms) 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)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.5ms) 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)   (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.8ms) 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)   (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (2.8ms) 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, "jtr_format" character varying(255))   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.9ms) 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)   (0.7ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.7ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.6ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.6ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.4ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.7ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.8ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.9ms) 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)  (0.7ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.8ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.8ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.8ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.5ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.7ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.7ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.4ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.6ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.0ms) 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, "name" text)  (2.8ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.7ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.7ms) 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)   (2.8ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.8ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.7ms) 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)  (2.7ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.9ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.9ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.9ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.8ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.8ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.8ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.7ms) 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)  (2.8ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (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)  (1.8ms) 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)   (2.0ms) 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)  (1.9ms) 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)   (1.9ms) 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)  (2.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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (2.6ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (3.0ms) 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, "fail_detail" text)   (2.9ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (3.0ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.9ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (1.9ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.7ms) 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, "query" text)  (0.9ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (3.1ms) 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, "headers" text, "body" bytea, "request" bytea)  (0.8ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.9ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.6ms) 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)   (0.9ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.8ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.8ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.8ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.8ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.8ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (2.8ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.6ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (2.8ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140703144541')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140520140817')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140603163708')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140605173747')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140702184622')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (133.6ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (233.4ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.1ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.6ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (0.8ms) CREATE TABLE "credential_cores_tasks" ("core_id" integer, "task_id" integer)  (0.7ms) CREATE TABLE "credential_logins_tasks" ("login_id" integer, "task_id" integer)   (3.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(256), "source_id" integer, "source_type" character varying(255))  (2.6ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (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), "fail_detail" text)  (2.6ms) 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)   (3.0ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.3ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (1.0ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.7ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (0.9ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.9ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.0ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (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, "macro" text)   (2.8ms) 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, "content_type" character varying(255), "name" text, "info" text)  (2.9ms) 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)   (2.3ms) 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, "logins_count" integer DEFAULT 0)  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (1.0ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (1.0ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.5ms) 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)  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.1ms) 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)   (0.8ms) CREATE INDEX "originating_credential_cores" ON "metasploit_credential_origin_cracked_passwords" ("metasploit_credential_core_id")  (2.7ms) 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)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.9ms) 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)   (0.9ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.7ms) 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)   (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.5ms) 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)   (1.0ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (3.0ms) 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, "jtr_format" character varying(255))   (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.9ms) 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)   (0.7ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.8ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.5ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.6ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.7ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.5ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.7ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (3.3ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.8ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.8ms) 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)  (0.8ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.7ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.8ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.7ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.6ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.8ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.5ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.9ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.6ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (2.7ms) 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, "name" text)  (2.7ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.8ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.6ms) 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)   (2.5ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.8ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.7ms) 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)  (2.8ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.6ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.6ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.8ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.7ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.8ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.8ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.6ms) 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)  (2.9ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (2.8ms) 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)  (2.1ms) 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)   (2.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)  (2.0ms) 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)   (2.0ms) 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)  (3.0ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (2.7ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (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, "fail_detail" text)   (3.3ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (2.8ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.7ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (1.9ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (9.4ms) 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, "query" text)  (1.1ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.7ms) 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, "headers" text, "body" bytea, "request" bytea)  (0.8ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.9ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.6ms) 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)   (0.8ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (1.0ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.8ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (2.9ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.9ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.7ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.9ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.0ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.6ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (2.6ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140703144541')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140520140817')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140603163708')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140605173747')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140702184622')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (6.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateTables (0) Migrating to AddWmapTables (1) Migrating to AddWorkspaces (2) Migrating to MoveNotes (3) Migrating to AddEventsTable (4) Migrating to ExpandInfo (5) Migrating to AddTimestamps (6) Migrating to AddLoots (7) Migrating to CreateUsers (8) Migrating to AddLootsCtype (9) Migrating to AddAlertFields (10) Migrating to AddReports (11) Migrating to AddTasks (12) Migrating to AddTasksResult (13) Migrating to AddLootsFields (14) Migrating to RenameUser (15) Migrating to AddHostPurpose (16) Migrating to ExpandInfo2 (17) Migrating to AddWorkspaceUserInfo (18) Migrating to AddWorkspaceDesc (19) Migrating to AddUserPreferences (20) Migrating to StandardizeInfoAndData (21) Migrating to EnlargeEventInfo (22) Migrating to AddReportDownloadedAt (23) Migrating to ConvertServiceInfoToText (24) Migrating to AddUserAdmin (25) Migrating to AddCredsTable (26) Migrating to MigrateCredData (20100819123300) Migrating to AddExploitedTable (20100824151500) Migrating to AddOwnerToWorkspaces (20100908001428) Migrating to AddReportTemplates (20100911122000) Migrating to RequireAdminFlag (20100916151530) Migrating to AddCampaignsAndTemplates (20100916175000) Migrating to AddGenerateExeColumn (20100920012100) Migrating to AddTemplatePrefs (20100926214000) Migrating to AddWebTables (20101001000000) Migrating to AddQuery (20101002000000) Migrating to AddVulnInfo (20101007000000) Migrating to AddClientsToCampaigns (20101008111800) Migrating to AddCampaignAttachments (20101009023300) Migrating to AddImportedCreds (20101104135100) Migrating to FixWebTables (20101203000000) Migrating to ExpandHostComment (20101203000001) Migrating to AddLimitToNetworkToWorkspaces (20101206212033) Migrating to AddModuleUuidToTasks (20110112154300) Migrating to AddHostTags (20110204112800) Migrating to AddSessionTable (20110317144932) Migrating to AddLocalIdToSessionTable (20110414180600) Migrating to AddRoutesTable (20110415175705) Migrating to ConvertBinary (20110422000000) Migrating to AddLastSeenToSessions (20110425095900) Migrating to TrackSuccessfulExploits (20110513143900) Migrating to RenameAndPruneNessusVulns (20110517160800) Migrating to AddTaskIdToReportsTable (20110527000000) Migrating to AddApiKeysTable (20110527000001) Migrating to AddMacrosTable (20110606000001) Migrating to AddSettingsToTasksTable (20110622000000) Migrating to AddListenersTable (20110624000001) Migrating to AddMacroToListenersTable (20110625000001) Migrating to AddNexposeConsolesTable (20110630000001) Migrating to AddNameToNexposeConsolesTable (20110630000002) Migrating to AddProfilesTable (20110717000001) Migrating to ExpandCredPtypeColumn (20110727163801) Migrating to AddInitialIndexes (20110730000001) Migrating to PruneIndexes (20110812000001) Migrating to ExpandNotes (20110922000000) Migrating to AddModRefTable (20110928101300) Migrating to AddDisplayNameToReportsTable (20111011110000) Migrating to InetColumns (20111203000000) Migrating to MoreInetColumns (20111204000000) Migrating to AddScopeToHosts (20111210000000) Migrating to AddVirtualHostToHosts (20120126110000) Migrating to RenameWorkspaceMembers (20120411173220) Migrating to AddCounterCachesToHosts (20120601152442) Migrating to AddVulnDetails (20120625000000) Migrating to AddHostDetails (20120625000001) Migrating to ExpandDetails (20120625000002) Migrating to ExpandDetails2 (20120625000003) Migrating to AddVulnAttempts (20120625000004) Migrating to AddVulnAndHostCounterCaches (20120625000005) Migrating to AddModuleDetails (20120625000006) Migrating to AddExploitAttempts (20120625000007) Migrating to AddFailMessage (20120625000008) Migrating to AddOwnerAndPayloadToWebVulns (20120718202805) Migrating to ChangeRequiredColumnsToNullFalseInWebVulns (20130228214900) Migrating to ChangeForeignKeyInModuleActions (20130412154159) Migrating to ChangeForeignKeyInModuleArchs (20130412171844) Migrating to ChangeForeignKeyInModuleAuthors (20130412173121) Migrating to ChangeForeignKeyInModuleMixins (20130412173640) Migrating to ChangeForeignKeyInModulePlatforms (20130412174254) Migrating to ChangeForeignKeyInModuleRefs (20130412174719) Migrating to ChangeForeignKeyInModuleTargets (20130412175040) Migrating to AddCredsCounterCache (20130423211152) Migrating to ChangeRequiredColumnsToNullFalseInHosts (20130430151353) Migrating to EnforceAddressUniquenessInWorkspaceInHosts (20130430162145) Migrating to RemoveCampaigns (20130510021637) Migrating to ChangeWebVulnsConfidenceToInteger (20130515164311) Migrating to ValidMdmWebVulnParams (20130515172727) Migrating to MakingVulnsRefsARealArModel (20130516204810) Migrating to CreateTaskCreds (20130522001343) Migrating to CreateTaskHosts (20130522032517) Migrating to CreateTaskServices (20130522041110) Migrating to RemoveCampaignIdFromClients (20130525015035) Migrating to DropTableImportedCreds (20130525212420) Migrating to MakingHostTagsARealArModel (20130531144949) Migrating to CreateTaskSessions (20130604145732) Migrating to RemovePnameValidation (20130717150737) Migrating to CreateMetasploitCredentialPublics (20140331173835) Migrating to CreateMetasploitCredentialPrivates (20140407212345) Migrating to CreateMetasploitCredentialRealms (20140410132401) Migrating to UniqueMetasploitCredentialRealms (20140410161611) Migrating to CreateMetasploitCredentialOriginManuals (20140410191213) Migrating to CreateMetasploitCredentialOriginImports (20140410205410) Migrating to CreateMetasploitCredentialOriginSessions (20140411142102) Migrating to CreateMetasploitCredentialOriginServices (20140411205325) Migrating to CreateMetasploitCredentialCores (20140414192550) Migrating to CreateMetasploitCredentialLogins (20140417140933) Migrating to AddLoginsCounterCacheToCores (20140520140817) Migrating to AddJtrFormatToMetasploitCredentialPrivates (20140603163708) Migrating to CreateMetasploitCredentialOriginCrackedPasswords (20140605173747) Migrating to CreateCredentialCoresTasksJoinTable (20140702184622) Migrating to CreateCredentialLoginsTasksJoinTable (20140703144541)  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" Connecting to database specified by database.yml  (7.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (12.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateTables (0)  (0.1ms) BEGIN  (5.7ms) 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))   (0.7ms) CREATE UNIQUE INDEX "index_hosts_on_address" ON "hosts" ("address")  (2.6ms) 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))   (2.7ms) 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))  (2.4ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created" timestamp, "name" character varying(255), "data" text)   (4.5ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created" timestamp, "name" character varying(512))  (0.6ms) CREATE TABLE "vulns_refs" ("ref_id" integer, "vuln_id" integer)   (2.6ms) CREATE TABLE "notes" ("id" serial primary key, "host_id" integer, "created" timestamp, "ntype" character varying(512), "data" text)  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('0')  (0.8ms) COMMIT Migrating to AddWmapTables (1)  (0.4ms) BEGIN  (4.3ms) 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)  (20.8ms) 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)   (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('1')  (5.3ms) COMMIT Migrating to AddWorkspaces (2)  (0.3ms) BEGIN  (2.0ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.2ms) ALTER TABLE "hosts" ADD COLUMN "workspace_id" integer  (0.3ms) DROP INDEX "index_hosts_on_address"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('2')  (1.3ms) COMMIT Migrating to MoveNotes (3)  (0.2ms) BEGIN  (0.8ms) ALTER TABLE "notes" DROP "host_id"  (27.5ms) ALTER TABLE "notes" ADD COLUMN "workspace_id" integer DEFAULT 1 NOT NULL  (0.4ms) ALTER TABLE "notes" ADD COLUMN "service_id" integer  (0.3ms) ALTER TABLE "notes" ADD COLUMN "host_id" integer  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('3')  (0.9ms) COMMIT Migrating to AddEventsTable (4)  (0.2ms) BEGIN  (3.5ms) 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))  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('4')  (0.4ms) COMMIT Migrating to ExpandInfo (5)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "events" DROP "info"  (0.2ms) ALTER TABLE "events" ADD COLUMN "info" character varying(4096)  (0.2ms) ALTER TABLE "notes" DROP "data"  (0.2ms) ALTER TABLE "notes" ADD COLUMN "data" character varying(4096)  (0.2ms) ALTER TABLE "vulns" DROP "data"  (0.2ms) ALTER TABLE "vulns" ADD COLUMN "data" character varying(4096)  (0.2ms) ALTER TABLE "hosts" DROP "info"  (0.2ms) ALTER TABLE "hosts" ADD COLUMN "info" character varying(4096)  (0.2ms) ALTER TABLE "services" DROP "info"  (0.2ms) ALTER TABLE "services" ADD COLUMN "info" character varying(4096)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('5')  (0.3ms) COMMIT Migrating to AddTimestamps (6)  (0.1ms) BEGIN  (0.5ms) ALTER TABLE "clients" RENAME COLUMN "created" TO "created_at"  (0.2ms) ALTER TABLE "hosts" RENAME COLUMN "created" TO "created_at"  (0.2ms) ALTER TABLE "notes" RENAME COLUMN "created" TO "created_at"  (0.2ms) ALTER TABLE "refs" RENAME COLUMN "created" TO "created_at"  (0.2ms) ALTER TABLE "services" RENAME COLUMN "created" TO "created_at"  (0.2ms) ALTER TABLE "vulns" RENAME COLUMN "created" TO "created_at"  (0.2ms) ALTER TABLE "wmap_requests" RENAME COLUMN "created" TO "created_at"  (0.2ms) ALTER TABLE "wmap_targets" ADD COLUMN "created_at" timestamp  (0.2ms) ALTER TABLE "clients" ADD COLUMN "updated_at" timestamp  (0.2ms) ALTER TABLE "events" ADD COLUMN "updated_at" timestamp  (0.2ms) ALTER TABLE "hosts" ADD COLUMN "updated_at" timestamp  (0.2ms) ALTER TABLE "notes" ADD COLUMN "updated_at" timestamp  (0.2ms) ALTER TABLE "refs" ADD COLUMN "updated_at" timestamp  (0.2ms) ALTER TABLE "services" ADD COLUMN "updated_at" timestamp  (0.2ms) ALTER TABLE "vulns" ADD COLUMN "updated_at" timestamp  (0.2ms) ALTER TABLE "wmap_requests" ADD COLUMN "updated_at" timestamp  (0.2ms) ALTER TABLE "wmap_targets" ADD COLUMN "updated_at" timestamp  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('6')  (0.4ms) COMMIT Migrating to AddLoots (7)  (0.1ms) BEGIN  (2.7ms) 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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('7')  (0.4ms) COMMIT Migrating to CreateUsers (8)  (0.2ms) BEGIN  (2.6ms) 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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('8')  (0.4ms) COMMIT Migrating to AddLootsCtype (9)  (0.2ms) BEGIN  (0.2ms) ALTER TABLE "loots" ADD COLUMN "content_type" character varying(255)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('9')  (0.3ms) COMMIT Migrating to AddAlertFields (10)  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "notes" ADD COLUMN "critical" boolean  (0.2ms) ALTER TABLE "notes" ADD COLUMN "seen" boolean  (0.2ms) ALTER TABLE "events" ADD COLUMN "critical" boolean  (0.2ms) ALTER TABLE "events" ADD COLUMN "seen" boolean  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('10')  (0.3ms) COMMIT Migrating to AddReports (11)  (0.1ms) BEGIN  (2.7ms) 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)  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('11')  (0.4ms) COMMIT Migrating to AddTasks (12)  (0.2ms) BEGIN  (3.1ms) 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)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('12')  (0.4ms) COMMIT Migrating to AddTasksResult (13)  (0.2ms) BEGIN  (0.2ms) ALTER TABLE "tasks" ADD COLUMN "result" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('13')  (0.3ms) COMMIT Migrating to AddLootsFields (14)  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "loots" ADD COLUMN "name" text  (0.2ms) ALTER TABLE "loots" ADD COLUMN "info" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('14')  (0.3ms) COMMIT Migrating to RenameUser (15)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "events" DROP "user"  (0.2ms) ALTER TABLE "events" ADD COLUMN "username" character varying(255)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('15')  (0.3ms) COMMIT Migrating to AddHostPurpose (16)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "hosts" ADD COLUMN "purpose" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('16')  (0.3ms) COMMIT Migrating to ExpandInfo2 (17)  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "events" DROP "info"  (0.2ms) ALTER TABLE "events" ADD COLUMN "info" character varying(65536)  (0.3ms) ALTER TABLE "notes" DROP "data"  (0.2ms) ALTER TABLE "notes" ADD COLUMN "data" character varying(65536)  (0.2ms) ALTER TABLE "vulns" DROP "data"  (0.2ms) ALTER TABLE "vulns" ADD COLUMN "data" character varying(65536)  (0.2ms) ALTER TABLE "hosts" DROP "info"  (0.2ms) ALTER TABLE "hosts" ADD COLUMN "info" character varying(65536)  (0.2ms) ALTER TABLE "services" DROP "info"  (0.2ms) ALTER TABLE "services" ADD COLUMN "info" character varying(65536)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('17')  (0.3ms) COMMIT Migrating to AddWorkspaceUserInfo (18)  (0.1ms) BEGIN  (1.2ms) ALTER TABLE "workspaces" ADD COLUMN "boundary" character varying(4096)  (0.2ms) ALTER TABLE "users" ADD COLUMN "fullname" character varying(255)  (0.2ms) ALTER TABLE "users" ADD COLUMN "email" character varying(255)  (0.2ms) ALTER TABLE "users" ADD COLUMN "phone" character varying(255)  (0.2ms) ALTER TABLE "users" ADD COLUMN "company" character varying(255)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('18')  (0.3ms) COMMIT Migrating to AddWorkspaceDesc (19)  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "workspaces" ADD COLUMN "description" character varying(4096)  (0.2ms) ALTER TABLE "hosts" ADD COLUMN "comments" character varying(4096)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('19')  (0.3ms) COMMIT Migrating to AddUserPreferences (20)  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "users" ADD COLUMN "prefs" character varying(524288)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20')  (0.3ms) COMMIT Migrating to StandardizeInfoAndData (21)  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "vulns" DROP "data"  (0.2ms) ALTER TABLE "vulns" ADD COLUMN "info" character varying(65536)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('21')  (0.2ms) COMMIT Migrating to EnlargeEventInfo (22)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "events" ALTER COLUMN "info" TYPE text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('22')  (0.3ms) COMMIT Migrating to AddReportDownloadedAt (23)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "reports" ADD COLUMN "downloaded_at" timestamp  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('23')  (0.3ms) COMMIT Migrating to ConvertServiceInfoToText (24)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "services" ALTER COLUMN "info" TYPE text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('24')  (0.3ms) COMMIT Migrating to AddUserAdmin (25)  (0.1ms) BEGIN  (2.7ms) ALTER TABLE "users" ADD COLUMN "admin" boolean DEFAULT 't'  (0.5ms) CREATE TABLE "project_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('25')  (0.6ms) COMMIT Migrating to AddCredsTable (26)  (0.1ms) BEGIN  (3.0ms) 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))  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('26')  (0.4ms) COMMIT Migrating to MigrateCredData (20100819123300)  (0.2ms) BEGIN Mdm::Note Load (0.3ms) SELECT "notes".* FROM "notes" Mdm::Note Load (0.2ms) SELECT "notes".* FROM "notes"   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100819123300')  (0.3ms) COMMIT Migrating to AddExploitedTable (20100824151500)  (0.1ms) BEGIN  (3.1ms) 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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100824151500')  (0.4ms) COMMIT Migrating to AddOwnerToWorkspaces (20100908001428)  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "workspaces" ADD COLUMN "owner_id" integer  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100908001428')  (0.3ms) COMMIT Migrating to AddReportTemplates (20100911122000)  (0.1ms) BEGIN  (2.8ms) 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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100911122000')  (0.4ms) COMMIT Migrating to RequireAdminFlag (20100916151530)  (0.2ms) BEGIN SQL (0.4ms) UPDATE "users" SET "admin" = 't' WHERE "users"."admin" IS NULL  (0.4ms) ALTER TABLE "users" ALTER COLUMN "admin" TYPE boolean  (0.3ms) ALTER TABLE "users" ALTER COLUMN "admin" SET DEFAULT 't'  (0.2ms) UPDATE "users" SET "admin"='t' WHERE "admin" IS NULL  (0.1ms) ALTER TABLE "users" ALTER "admin" SET NOT NULL  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100916151530')  (0.3ms) COMMIT Migrating to AddCampaignsAndTemplates (20100916175000)  (0.1ms) BEGIN  (2.7ms) 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)   (2.3ms) CREATE TABLE "email_templates" ("id" serial primary key, "name" character varying(512), "subject" character varying(1024), "body" text, "parent_id" integer, "campaign_id" integer)  (2.5ms) 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)   (0.6ms) CREATE TABLE "attachments_email_templates" ("attachment_id" integer, "email_template_id" integer)  (2.7ms) 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)   (2.8ms) CREATE TABLE "web_templates" ("id" serial primary key, "name" character varying(512), "title" character varying(512), "body" character varying(524288), "campaign_id" integer)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100916175000')  (0.7ms) COMMIT Migrating to AddGenerateExeColumn (20100920012100)  (0.3ms) BEGIN  (2.7ms) ALTER TABLE "email_templates" ADD COLUMN "generate_exe" boolean DEFAULT 'f' NOT NULL  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100920012100')  (0.7ms) COMMIT Migrating to AddTemplatePrefs (20100926214000)  (0.1ms) BEGIN  (0.4ms) ALTER TABLE "email_templates" DROP "generate_exe"  (0.2ms) ALTER TABLE "email_templates" ADD COLUMN "prefs" text  (0.2ms) ALTER TABLE "web_templates" ADD COLUMN "prefs" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20100926214000')  (0.2ms) COMMIT Migrating to AddWebTables (20101001000000)  (0.1ms) BEGIN  (2.5ms) 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)  (2.6ms) 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)   (2.4ms) 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)  (2.4ms) 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))   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101001000000')  (0.8ms) COMMIT Migrating to AddQuery (20101002000000)  (0.3ms) BEGIN  (0.3ms) ALTER TABLE "web_forms" ADD COLUMN "query" text  (0.2ms) ALTER TABLE "web_vulns" ADD COLUMN "query" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101002000000')  (0.3ms) COMMIT Migrating to AddVulnInfo (20101007000000)  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "web_vulns" ADD COLUMN "category" text  (0.2ms) ALTER TABLE "web_vulns" ADD COLUMN "confidence" text  (0.2ms) ALTER TABLE "web_vulns" ADD COLUMN "description" text  (0.2ms) ALTER TABLE "web_vulns" ADD COLUMN "blame" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101007000000')  (0.3ms) COMMIT Migrating to AddClientsToCampaigns (20101008111800)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "clients" ADD COLUMN "campaign_id" integer  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101008111800')  (0.3ms) COMMIT Migrating to AddCampaignAttachments (20101009023300)  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "attachments" ADD COLUMN "campaign_id" integer  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101009023300')  (0.2ms) COMMIT Migrating to AddImportedCreds (20101104135100)  (0.1ms) BEGIN  (2.8ms) 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')   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101104135100')  (0.4ms) COMMIT Migrating to FixWebTables (20101203000000)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "web_pages" ALTER COLUMN "path" TYPE text  (0.2ms) ALTER TABLE "web_pages" ALTER COLUMN "query" TYPE text  (0.2ms) ALTER TABLE "web_pages" ALTER COLUMN "cookie" TYPE text  (0.2ms) ALTER TABLE "web_pages" ALTER COLUMN "auth" TYPE text  (0.2ms) ALTER TABLE "web_pages" ALTER COLUMN "ctype" TYPE text  (0.2ms) ALTER TABLE "web_pages" ALTER COLUMN "location" TYPE text  (0.2ms) ALTER TABLE "web_pages" ALTER COLUMN "path" TYPE text  (0.2ms) ALTER TABLE "web_vulns" ALTER COLUMN "path" TYPE text  (0.5ms) ALTER TABLE "web_vulns" ALTER COLUMN "pname" TYPE text  (0.3ms) ALTER TABLE "web_pages" ADD COLUMN "request" text  (0.2ms) ALTER TABLE "web_vulns" ADD COLUMN "request" text  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101203000000')  (0.3ms) COMMIT Migrating to ExpandHostComment (20101203000001)  (0.1ms) BEGIN  (0.4ms) ALTER TABLE "hosts" ALTER COLUMN "comments" TYPE text  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101203000001')  (0.3ms) COMMIT Migrating to AddLimitToNetworkToWorkspaces (20101206212033)  (0.1ms) BEGIN  (3.8ms) ALTER TABLE "workspaces" ADD COLUMN "limit_to_network" boolean DEFAULT 'f' NOT NULL  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101206212033')  (0.8ms) COMMIT Migrating to AddModuleUuidToTasks (20110112154300)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "tasks" ADD COLUMN "module_uuid" character varying(8)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110112154300')  (0.4ms) COMMIT Migrating to AddHostTags (20110204112800)  (0.1ms) BEGIN  (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)   (0.5ms) CREATE TABLE "hosts_tags" ("host_id" integer, "tag_id" integer)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110204112800')  (0.4ms) COMMIT Migrating to AddSessionTable (20110317144932)  (0.2ms) BEGIN  (13.8ms) 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))  (8.7ms) 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)  AddSessionTable::Event Load (0.5ms) SELECT "events".* FROM "events" WHERE "events"."name" = 'session_close' AddSessionTable::Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."name" = 'session_open' AddSessionTable::Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."name" = 'session_command' AddSessionTable::Event Load (0.3ms) SELECT "events".* FROM "events" WHERE "events"."name" = 'session_output' AddSessionTable::Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."name" = 'session_upload' AddSessionTable::Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."name" = 'session_download'  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110317144932')  (0.6ms) COMMIT Migrating to AddLocalIdToSessionTable (20110414180600)  (0.3ms) BEGIN  (0.4ms) ALTER TABLE "sessions" ADD COLUMN "local_id" integer  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110414180600')  (0.3ms) COMMIT Migrating to AddRoutesTable (20110415175705)  (0.1ms) BEGIN  (3.6ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))   (0.3ms) ALTER TABLE "sessions" DROP "routes"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110415175705')  (0.4ms) COMMIT Migrating to ConvertBinary (20110422000000)  (0.2ms) BEGIN  (0.2ms) ALTER TABLE "web_pages" RENAME COLUMN "body" TO "body_text"  (0.2ms) ALTER TABLE "web_pages" RENAME COLUMN "request" TO "request_text"  (0.2ms) ALTER TABLE "web_vulns" RENAME COLUMN "request" TO "request_text"  (0.1ms) ALTER TABLE "web_vulns" RENAME COLUMN "proof" TO "proof_text"  (0.2ms) ALTER TABLE "web_pages" ADD COLUMN "body" bytea  (0.2ms) ALTER TABLE "web_pages" ADD COLUMN "request" bytea  (0.3ms) ALTER TABLE "web_vulns" ADD COLUMN "request" bytea  (0.2ms) ALTER TABLE "web_vulns" ADD COLUMN "proof" bytea ConvertBinary::WebPage Load (0.3ms) SELECT "web_pages".* FROM "web_pages" ConvertBinary::WebPage Load (0.2ms) SELECT "web_pages".* FROM "web_pages"  ConvertBinary::WebVuln Load (0.4ms) SELECT "web_vulns".* FROM "web_vulns" ConvertBinary::WebVuln Load (0.2ms) SELECT "web_vulns".* FROM "web_vulns"   (0.2ms) ALTER TABLE "web_pages" DROP "body_text"  (0.2ms) ALTER TABLE "web_pages" DROP "request_text"  (0.2ms) ALTER TABLE "web_vulns" DROP "request_text"  (0.2ms) ALTER TABLE "web_vulns" DROP "proof_text"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110422000000')  (0.3ms) COMMIT Migrating to AddLastSeenToSessions (20110425095900)  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "sessions" ADD COLUMN "last_seen" timestamp  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110425095900')  (0.3ms) COMMIT Migrating to TrackSuccessfulExploits (20110513143900)  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "vulns" ADD COLUMN "exploited_at" timestamp TrackSuccessfulExploits::ExploitedHost Load (0.3ms) SELECT "exploited_hosts".* FROM "exploited_hosts"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110513143900')  (0.3ms) COMMIT Migrating to RenameAndPruneNessusVulns (20110517160800)  (0.1ms) BEGIN RenameAndPruneNessusVulns::Vuln Load (0.3ms) SELECT "vulns".* FROM "vulns"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110517160800')  (0.3ms) COMMIT Migrating to AddTaskIdToReportsTable (20110527000000)  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "reports" ADD COLUMN "task_id" integer  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110527000000')  (0.2ms) COMMIT Migrating to AddApiKeysTable (20110527000001)  (0.1ms) BEGIN  (2.6ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110527000001')  (0.4ms) COMMIT Migrating to AddMacrosTable (20110606000001)  (0.1ms) BEGIN  (2.4ms) 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)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110606000001')  (0.4ms) COMMIT Migrating to AddSettingsToTasksTable (20110622000000)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "tasks" ADD COLUMN "settings" bytea  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110622000000')  (0.3ms) COMMIT Migrating to AddListenersTable (20110624000001)  (0.1ms) BEGIN  (2.8ms) 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)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110624000001')  (0.4ms) COMMIT Migrating to AddMacroToListenersTable (20110625000001)  (0.2ms) BEGIN  (0.4ms) ALTER TABLE "listeners" ADD COLUMN "macro" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110625000001')  (0.4ms) COMMIT Migrating to AddNexposeConsolesTable (20110630000001)  (0.1ms) BEGIN  (2.9ms) 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)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110630000001')  (0.4ms) COMMIT Migrating to AddNameToNexposeConsolesTable (20110630000002)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "nexpose_consoles" ADD COLUMN "name" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110630000002')  (0.3ms) COMMIT Migrating to AddProfilesTable (20110717000001)  (0.1ms) BEGIN  (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)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110717000001')  (0.4ms) COMMIT Migrating to ExpandCredPtypeColumn (20110727163801)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "creds" ALTER COLUMN "ptype" TYPE character varying(256)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110727163801')  (0.3ms) COMMIT Migrating to AddInitialIndexes (20110730000001)  (0.1ms) BEGIN  (0.8ms) CREATE INDEX "index_hosts_on_address" ON "hosts" ("address")  (0.6ms) CREATE INDEX "index_hosts_on_address6" ON "hosts" ("address6")  (0.9ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (0.7ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.6ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (0.6ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.7ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.7ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.6ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (0.7ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.6ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (0.6ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (0.7ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (0.8ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (0.6ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.7ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.7ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.6ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (0.8ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (0.7ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (0.6ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.6ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110730000001')  (0.4ms) COMMIT Migrating to PruneIndexes (20110812000001)  (0.1ms) BEGIN  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110812000001')  (0.3ms) COMMIT Migrating to ExpandNotes (20110922000000)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "notes" ALTER COLUMN "data" TYPE text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110922000000')  (0.3ms) COMMIT Migrating to AddModRefTable (20110928101300)  (0.1ms) BEGIN  (2.7ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110928101300')  (0.4ms) COMMIT Migrating to AddDisplayNameToReportsTable (20111011110000)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "reports" ADD COLUMN "name" character varying(63) AddDisplayNameToReportsTable::Report Load (0.3ms) SELECT "reports".* FROM "reports"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20111011110000')  (0.3ms) COMMIT Migrating to InetColumns (20111203000000)  (0.1ms) BEGIN  (6.8ms) ALTER TABLE "hosts" ALTER COLUMN "address" TYPE INET using address::INET  (0.3ms) ALTER TABLE "hosts" DROP "address6"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20111203000000')  (1.3ms) COMMIT Migrating to MoreInetColumns (20111204000000)  (0.2ms) BEGIN  (2.8ms) ALTER TABLE "wmap_requests" ALTER COLUMN "address" TYPE INET using address::INET  (0.2ms) ALTER TABLE "wmap_requests" DROP "address6"  (2.5ms) ALTER TABLE "wmap_targets" ALTER COLUMN "address" TYPE INET using address::INET  (0.2ms) ALTER TABLE "wmap_targets" DROP "address6"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20111204000000')  (1.0ms) COMMIT Migrating to AddScopeToHosts (20111210000000)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "hosts" ADD COLUMN "scope" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20111210000000')  (0.4ms) COMMIT Migrating to AddVirtualHostToHosts (20120126110000)  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "hosts" ADD COLUMN "virtual_host" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120126110000')  (0.3ms) COMMIT Migrating to RenameWorkspaceMembers (20120411173220)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "project_members" RENAME TO "workspace_members"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120411173220')  (0.3ms) COMMIT Migrating to AddCounterCachesToHosts (20120601152442)  (0.1ms) BEGIN  (5.8ms) ALTER TABLE "hosts" ADD COLUMN "note_count" integer DEFAULT 0  (5.5ms) ALTER TABLE "hosts" ADD COLUMN "vuln_count" integer DEFAULT 0  (5.3ms) ALTER TABLE "hosts" ADD COLUMN "service_count" integer DEFAULT 0 Mdm::Host Load (0.4ms) SELECT "hosts".* FROM "hosts"   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120601152442')  (2.2ms) COMMIT Migrating to AddVulnDetails (20120625000000)  (0.2ms) BEGIN  (3.1ms) 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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000000')  (0.4ms) COMMIT Migrating to AddHostDetails (20120625000001)  (0.2ms) BEGIN  (2.8ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000001')  (0.3ms) COMMIT Migrating to ExpandDetails (20120625000002)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "vuln_details" ADD COLUMN "nx_vuln_status" text  (0.3ms) ALTER TABLE "vuln_details" ADD COLUMN "nx_proof_key" text  (0.2ms) ALTER TABLE "vuln_details" ADD COLUMN "src" character varying(255)  (0.2ms) ALTER TABLE "host_details" ADD COLUMN "src" character varying(255)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000002')  (0.4ms) COMMIT Migrating to ExpandDetails2 (20120625000003)  (0.1ms) BEGIN  (1.2ms) ALTER TABLE "host_details" ADD COLUMN "nx_site_name" character varying(255)  (0.2ms) ALTER TABLE "host_details" ADD COLUMN "nx_site_importance" character varying(255)  (0.2ms) ALTER TABLE "host_details" ADD COLUMN "nx_scan_template" character varying(255)  (0.3ms) ALTER TABLE "host_details" ADD COLUMN "nx_risk_score" float  (0.2ms) ALTER TABLE "vuln_details" ADD COLUMN "nx_scan_id" integer  (0.2ms) ALTER TABLE "vuln_details" ADD COLUMN "nx_vulnerable_since" timestamp  (0.2ms) ALTER TABLE "vuln_details" ADD COLUMN "nx_pci_compliance_status" character varying(255)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000003')  (0.4ms) COMMIT Migrating to AddVulnAttempts (20120625000004)  (0.1ms) BEGIN  (2.7ms) 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)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000004')  (0.3ms) COMMIT Migrating to AddVulnAndHostCounterCaches (20120625000005)  (0.2ms) BEGIN  (7.6ms) ALTER TABLE "hosts" ADD COLUMN "host_detail_count" integer DEFAULT 0  (3.0ms) ALTER TABLE "vulns" ADD COLUMN "vuln_detail_count" integer DEFAULT 0  (3.2ms) ALTER TABLE "vulns" ADD COLUMN "vuln_attempt_count" integer DEFAULT 0  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000005')  (3.1ms) COMMIT Migrating to AddModuleDetails (20120625000006)  (0.3ms) BEGIN  (2.9ms) 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)  (0.7ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (0.6ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.6ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.6ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (2.4ms) CREATE TABLE "module_authors" ("id" serial primary key, "module_detail_id" integer, "name" text, "email" text)   (0.8ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("module_detail_id")  (2.5ms) CREATE TABLE "module_mixins" ("id" serial primary key, "module_detail_id" integer, "name" text)   (0.7ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("module_detail_id")  (2.4ms) CREATE TABLE "module_targets" ("id" serial primary key, "module_detail_id" integer, "index" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("module_detail_id")  (13.4ms) CREATE TABLE "module_actions" ("id" serial primary key, "module_detail_id" integer, "name" text)   (6.5ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("module_detail_id")  (12.9ms) CREATE TABLE "module_refs" ("id" serial primary key, "module_detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("module_detail_id")  (0.7ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.5ms) CREATE TABLE "module_archs" ("id" serial primary key, "module_detail_id" integer, "name" text)  (0.6ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("module_detail_id")  (2.5ms) CREATE TABLE "module_platforms" ("id" serial primary key, "module_detail_id" integer, "name" text)  (0.7ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("module_detail_id")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000006')  (1.0ms) COMMIT Migrating to AddExploitAttempts (20120625000007)  (0.6ms) BEGIN  (3.5ms) 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))   (5.5ms) ALTER TABLE "hosts" ADD COLUMN "exploit_attempt_count" integer DEFAULT 0  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000007')  (1.1ms) COMMIT Migrating to AddFailMessage (20120625000008)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "vuln_attempts" ADD COLUMN "fail_detail" text  (0.2ms) ALTER TABLE "exploit_attempts" ADD COLUMN "fail_detail" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120625000008')  (0.3ms) COMMIT Migrating to AddOwnerAndPayloadToWebVulns (20120718202805)  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "web_vulns" ADD COLUMN "owner" character varying(255)  (0.2ms) ALTER TABLE "web_vulns" ADD COLUMN "payload" text  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120718202805')  (0.3ms) COMMIT Migrating to ChangeRequiredColumnsToNullFalseInWebVulns (20130228214900)  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "web_vulns" ALTER "category" SET NOT NULL  (0.2ms) ALTER TABLE "web_vulns" ALTER "confidence" SET NOT NULL  (0.2ms) ALTER TABLE "web_vulns" ALTER "method" SET NOT NULL  (0.2ms) ALTER TABLE "web_vulns" ALTER "name" SET NOT NULL  (0.2ms) ALTER TABLE "web_vulns" ALTER "params" SET NOT NULL  (0.2ms) ALTER TABLE "web_vulns" ALTER "path" SET NOT NULL  (0.2ms) ALTER TABLE "web_vulns" ALTER "pname" SET NOT NULL  (0.2ms) ALTER TABLE "web_vulns" ALTER "proof" SET NOT NULL  (0.2ms) ALTER TABLE "web_vulns" ALTER "risk" SET NOT NULL  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130228214900')  (0.3ms) COMMIT Migrating to ChangeForeignKeyInModuleActions (20130412154159)  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "module_actions" RENAME COLUMN "module_detail_id" TO "detail_id"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130412154159')  (0.3ms) COMMIT Migrating to ChangeForeignKeyInModuleArchs (20130412171844)  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "module_archs" RENAME COLUMN "module_detail_id" TO "detail_id"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130412171844')  (0.2ms) COMMIT Migrating to ChangeForeignKeyInModuleAuthors (20130412173121)  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "module_authors" RENAME COLUMN "module_detail_id" TO "detail_id"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130412173121')  (0.3ms) COMMIT Migrating to ChangeForeignKeyInModuleMixins (20130412173640)  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "module_mixins" RENAME COLUMN "module_detail_id" TO "detail_id"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130412173640')  (0.3ms) COMMIT Migrating to ChangeForeignKeyInModulePlatforms (20130412174254)  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "module_platforms" RENAME COLUMN "module_detail_id" TO "detail_id"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130412174254')  (0.3ms) COMMIT Migrating to ChangeForeignKeyInModuleRefs (20130412174719)  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "module_refs" RENAME COLUMN "module_detail_id" TO "detail_id"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130412174719')  (0.3ms) COMMIT Migrating to ChangeForeignKeyInModuleTargets (20130412175040)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "module_targets" RENAME COLUMN "module_detail_id" TO "detail_id"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130412175040')  (0.3ms) COMMIT Migrating to AddCredsCounterCache (20130423211152)  (0.1ms) BEGIN  (5.6ms) ALTER TABLE "hosts" ADD COLUMN "cred_count" integer DEFAULT 0 Mdm::Cred Load (0.3ms) SELECT "creds".* FROM "creds"   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130423211152')  (1.0ms) COMMIT Migrating to ChangeRequiredColumnsToNullFalseInHosts (20130430151353)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "hosts" ALTER "address" SET NOT NULL  (0.2ms) ALTER TABLE "hosts" ALTER "workspace_id" SET NOT NULL  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130430151353')  (0.3ms) COMMIT Migrating to EnforceAddressUniquenessInWorkspaceInHosts (20130430162145)  (0.1ms) BEGIN  (1.1ms) SELECT workspace_id, address, count_addr FROM ( SELECT workspace_id, address, COUNT(address) AS count_addr FROM hosts GROUP BY address, workspace_id ) X WHERE count_addr > 1  (0.2ms) DROP INDEX "index_hosts_on_address"  (0.9ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130430162145')  (0.4ms) COMMIT Migrating to RemoveCampaigns (20130510021637)  (0.1ms) BEGIN  (1.3ms) DROP TABLE "attachments"  (0.3ms) DROP TABLE "attachments_email_templates"  (0.7ms) DROP TABLE "email_addresses"  (0.6ms) DROP TABLE "email_templates"  (0.7ms) DROP TABLE "web_templates"  (0.7ms) DROP TABLE "campaigns"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130510021637')  (2.0ms) COMMIT Migrating to ChangeWebVulnsConfidenceToInteger (20130515164311)  (0.3ms) BEGIN  (4.4ms) ALTER TABLE web_vulns ALTER COLUMN confidence TYPE integer USING confidence::integer  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130515164311')  (0.9ms) COMMIT Migrating to ValidMdmWebVulnParams (20130515172727)  (0.1ms) BEGIN Mdm::WebVuln Load (0.5ms) SELECT "web_vulns".* FROM "web_vulns" ORDER BY "web_vulns"."id" ASC LIMIT 1000  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130515172727')  (0.3ms) COMMIT Migrating to MakingVulnsRefsARealArModel (20130516204810)  (0.1ms) BEGIN  (2.5ms) ALTER TABLE "vulns_refs" ADD COLUMN "id" serial primary key  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130516204810')  (0.5ms) COMMIT Migrating to CreateTaskCreds (20130522001343)  (0.1ms) BEGIN  (2.0ms) 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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130522001343')  (0.4ms) COMMIT Migrating to CreateTaskHosts (20130522032517)  (0.1ms) BEGIN  (2.1ms) 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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130522032517')  (0.4ms) COMMIT Migrating to CreateTaskServices (20130522041110)  (0.1ms) BEGIN  (1.8ms) 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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130522041110')  (0.3ms) COMMIT Migrating to RemoveCampaignIdFromClients (20130525015035)  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "clients" DROP "campaign_id"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130525015035')  (0.3ms) COMMIT Migrating to DropTableImportedCreds (20130525212420)  (0.1ms) BEGIN  (0.8ms) DROP TABLE "imported_creds"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130525212420')  (0.7ms) COMMIT Migrating to MakingHostTagsARealArModel (20130531144949)  (0.1ms) BEGIN  (2.5ms) ALTER TABLE "hosts_tags" ADD COLUMN "id" serial primary key  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130531144949')  (0.6ms) COMMIT Migrating to CreateTaskSessions (20130604145732)  (0.1ms) BEGIN  (1.8ms) 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)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130604145732')  (0.4ms) COMMIT Migrating to RemovePnameValidation (20130717150737)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "web_vulns" ALTER COLUMN "pname" TYPE text  (0.2ms) ALTER TABLE "web_vulns" ALTER "pname" DROP NOT NULL  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130717150737')  (0.2ms) COMMIT Migrating to CreateMetasploitCredentialPublics (20140331173835)  (0.1ms) BEGIN  (7.9ms) 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)  (6.7ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140331173835')  (6.2ms) COMMIT Migrating to CreateMetasploitCredentialPrivates (20140407212345)  (5.0ms) BEGIN  (14.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)   (6.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140407212345')  (0.5ms) COMMIT Migrating to CreateMetasploitCredentialRealms (20140410132401)  (0.2ms) BEGIN  (14.7ms) 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)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140410132401')  (5.8ms) COMMIT Migrating to UniqueMetasploitCredentialRealms (20140410161611)  (4.4ms) BEGIN  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140410161611')  (0.4ms) COMMIT Migrating to CreateMetasploitCredentialOriginManuals (20140410191213)  (0.1ms) BEGIN  (9.2ms) 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)  (6.3ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140410191213')  (6.3ms) COMMIT Migrating to CreateMetasploitCredentialOriginImports (20140410205410)  (0.3ms) BEGIN  (15.0ms) 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)   (6.5ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140410205410')  (4.5ms) COMMIT Migrating to CreateMetasploitCredentialOriginSessions (20140411142102)  (0.3ms) BEGIN  (2.9ms) 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)  (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140411142102')  (0.4ms) COMMIT Migrating to CreateMetasploitCredentialOriginServices (20140411205325)  (0.1ms) BEGIN  (2.8ms) 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)   (0.7ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140411205325')  (0.4ms) COMMIT Migrating to CreateMetasploitCredentialCores (20140414192550)  (0.1ms) BEGIN  (2.0ms) 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)  (0.7ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.7ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.7ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.7ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140414192550')  (0.4ms) COMMIT Migrating to CreateMetasploitCredentialLogins (20140417140933)  (0.2ms) BEGIN  (2.7ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.6ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140417140933')  (0.4ms) COMMIT Migrating to AddLoginsCounterCacheToCores (20140520140817)  (0.2ms) BEGIN  (27.4ms) ALTER TABLE "metasploit_credential_cores" ADD COLUMN "logins_count" integer DEFAULT 0 Metasploit::Credential::Core Load (0.4ms) SELECT "metasploit_credential_cores".* FROM "metasploit_credential_cores"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140520140817')  (0.8ms) COMMIT Migrating to AddJtrFormatToMetasploitCredentialPrivates (20140603163708)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "metasploit_credential_privates" ADD COLUMN "jtr_format" character varying(255)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140603163708')  (0.3ms) COMMIT Migrating to CreateMetasploitCredentialOriginCrackedPasswords (20140605173747)  (0.1ms) BEGIN  (1.9ms) 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)  (0.7ms) CREATE INDEX "originating_credential_cores" ON "metasploit_credential_origin_cracked_passwords" ("metasploit_credential_core_id")  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140605173747')  (0.3ms) COMMIT Migrating to CreateCredentialCoresTasksJoinTable (20140702184622)  (0.2ms) BEGIN  (0.6ms) CREATE TABLE "credential_cores_tasks" ("core_id" integer, "task_id" integer)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140702184622')  (6.2ms) COMMIT Migrating to CreateCredentialLoginsTasksJoinTable (20140703144541)  (0.2ms) BEGIN  (0.7ms) CREATE TABLE "credential_logins_tasks" ("login_id" integer, "task_id" integer)   (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140703144541')  (6.1ms) COMMIT  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" Connecting to database specified by database.yml  (2.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (116.5ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (229.2ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.9ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.8ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (0.7ms) CREATE TABLE "credential_cores_tasks" ("core_id" integer, "task_id" integer)  (0.8ms) CREATE TABLE "credential_logins_tasks" ("login_id" integer, "task_id" integer)   (3.1ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.9ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (3.1ms) 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), "fail_detail" text)  (3.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)   (2.8ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.2ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (1.2ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.8ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (0.7ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.9ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.1ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (2.8ms) 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, "macro" text)   (2.8ms) 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, "content_type" character varying(255), "name" text, "info" text)  (2.9ms) 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)   (2.0ms) 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, "logins_count" integer DEFAULT 0)  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.7ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.7ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.0ms) 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)   (0.9ms) CREATE INDEX "originating_credential_cores" ON "metasploit_credential_origin_cracked_passwords" ("metasploit_credential_core_id")  (2.8ms) 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)   (0.9ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.9ms) 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)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.8ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.7ms) 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)   (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (2.8ms) 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, "jtr_format" character varying(255))   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.7ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (3.0ms) 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)   (12.5ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (7.9ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.6ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.6ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.9ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.8ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.7ms) 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)  (0.9ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (1.0ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.9ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.9ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.7ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.6ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (1.0ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.7ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (3.1ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (2.9ms) 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, "name" text)  (2.7ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (1.0ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (3.8ms) 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)   (2.8ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.7ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.7ms) 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)  (3.6ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.7ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.7ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.8ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.8ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.8ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (1.0ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (3.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)  (4.0ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (3.2ms) 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)  (1.9ms) 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)   (2.0ms) 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)  (1.8ms) 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)   (2.3ms) 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)  (2.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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (2.9ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (2.8ms) 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, "fail_detail" text)   (3.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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (3.1ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.9ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (1.9ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.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, "query" text)  (0.8ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.9ms) 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, "headers" text, "body" bytea, "request" bytea)  (0.9ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.8ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.9ms) 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)   (0.9ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.8ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.8ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.8ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.9ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.8ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (2.9ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.7ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (2.9ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140703144541')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140520140817')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140603163708')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140605173747')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140702184622')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (133.4ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (249.4ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.2ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.7ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (0.6ms) CREATE TABLE "credential_cores_tasks" ("core_id" integer, "task_id" integer)  (0.7ms) CREATE TABLE "credential_logins_tasks" ("login_id" integer, "task_id" integer)   (3.0ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.7ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.9ms) 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), "fail_detail" text)  (2.8ms) 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)   (2.5ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.4ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (1.1ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.8ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (0.8ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.9ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.8ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.1ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (2.9ms) 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, "macro" text)   (2.7ms) 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, "content_type" character varying(255), "name" text, "info" text)  (3.0ms) 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)   (2.2ms) 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, "logins_count" integer DEFAULT 0)  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.8ms) 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)  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (1.9ms) 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)   (0.9ms) CREATE INDEX "originating_credential_cores" ON "metasploit_credential_origin_cracked_passwords" ("metasploit_credential_core_id")  (2.8ms) 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)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.8ms) 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)   (1.0ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.8ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.8ms) 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)   (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (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, "jtr_format" character varying(255))   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.9ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.7ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.6ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.7ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.5ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.8ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.8ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.7ms) 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)  (0.8ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.7ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.9ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.9ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.8ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.7ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.5ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.7ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.7ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.4ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.0ms) 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, "name" text)  (2.9ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.8ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (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)   (2.7ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.8ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.9ms) 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)  (2.6ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.6ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.7ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.9ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (4.0ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (1.0ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.9ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.9ms) 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)  (3.0ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (3.0ms) 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)  (1.8ms) 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)   (2.0ms) 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)  (1.9ms) 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)   (2.0ms) 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)  (2.8ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (2.9ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (2.8ms) 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, "fail_detail" text)   (2.9ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (3.4ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.9ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (1.9ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.9ms) 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, "query" text)  (0.8ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.7ms) 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, "headers" text, "body" bytea, "request" bytea)  (0.8ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.9ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.9ms) 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)   (0.9ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.9ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (1.0ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.2ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.8ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.8ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (1.0ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (2.7ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.6ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (2.8ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140703144541')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140520140817')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140603163708')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140605173747')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140702184622')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (129.6ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (345.0ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.0ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.6ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (0.6ms) CREATE TABLE "credential_cores_tasks" ("core_id" integer, "task_id" integer)  (0.6ms) CREATE TABLE "credential_logins_tasks" ("login_id" integer, "task_id" integer)   (3.2ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.6ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (3.2ms) 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), "fail_detail" text)  (2.6ms) 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)   (2.7ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.3ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.1ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (1.1ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.9ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (0.8ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.7ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.2ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (2.9ms) 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, "macro" text)   (3.0ms) 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, "content_type" character varying(255), "name" text, "info" text)  (2.8ms) 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)   (2.0ms) 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, "logins_count" integer DEFAULT 0)  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (1.0ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.7ms) 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)  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (1.8ms) 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)   (0.8ms) CREATE INDEX "originating_credential_cores" ON "metasploit_credential_origin_cracked_passwords" ("metasploit_credential_core_id")  (2.7ms) 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)   (0.9ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (2.0ms) 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)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.6ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.6ms) 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)   (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (2.6ms) 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, "jtr_format" character varying(255))   (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (2.0ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.9ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.6ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.9ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (1.0ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (3.8ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (3.0ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (1.1ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.9ms) 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)  (0.8ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.7ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.8ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.9ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.8ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.8ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.8ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.7ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.3ms) 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, "name" text)  (2.8ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (1.1ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.6ms) 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)   (2.7ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.9ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.9ms) 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)  (2.9ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.7ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (6.4ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (1.1ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (1.0ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.9ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.8ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (3.0ms) 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)  (3.3ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (3.1ms) 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)  (2.1ms) 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)   (2.0ms) 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)  (1.8ms) 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)   (1.9ms) 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)  (3.2ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (2.9ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (2.9ms) 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, "fail_detail" text)   (2.9ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (2.9ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.8ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (1.8ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.7ms) 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, "query" text)  (0.9ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (3.0ms) 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, "headers" text, "body" bytea, "request" bytea)  (0.9ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.9ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.8ms) 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)   (0.9ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.8ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.9ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.2ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.8ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.9ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.8ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (2.9ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (3.0ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.9ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (2.9ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20140703144541')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140520140817')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140603163708')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140605173747')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140702184622')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (136.9ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (350.3ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.1ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.8ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (0.7ms) CREATE TABLE "credential_cores_tasks" ("core_id" integer, "task_id" integer)  (0.7ms) CREATE TABLE "credential_logins_tasks" ("login_id" integer, "task_id" integer)   (20.5ms) 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(256), "source_id" integer, "source_type" character varying(255))  (19.9ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.9ms) 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), "fail_detail" text)  (3.0ms) 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)   (2.9ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.2ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (0.9ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (1.1ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.9ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (0.8ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.9ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.0ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (2.9ms) 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, "macro" text)   (2.6ms) 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, "content_type" character varying(255), "name" text, "info" text)  (2.8ms) 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)   (2.0ms) 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, "logins_count" integer DEFAULT 0)  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.8ms) 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)  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (1.9ms) 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)   (0.8ms) CREATE INDEX "originating_credential_cores" ON "metasploit_credential_origin_cracked_passwords" ("metasploit_credential_core_id")  (2.8ms) 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)   (0.7ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.9ms) 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)   (0.9ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.8ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.6ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (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, "jtr_format" character varying(255))   (1.1ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.8ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.8ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.5ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.7ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.4ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (1.0ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.8ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.9ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.8ms) 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)  (0.8ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.8ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.8ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.9ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.6ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.7ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.6ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (1.0ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.7ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.0ms) 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, "name" text)  (2.8ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (2.6ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (5.8ms) 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)   (2.9ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (3.6ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (3.4ms) 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)  (3.4ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.9ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.9ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.8ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.8ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.9ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.8ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.9ms) 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)  (2.9ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (3.0ms) 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)  (1.9ms) 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)   (1.9ms) 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)  (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)   (1.9ms) 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)  (2.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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (3.5ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (2.9ms) 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, "fail_detail" text)   (3.2ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (3.0ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.7ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (1.8ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (3.1ms) 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, "query" text)  (0.8ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (3.2ms) 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, "headers" text, "body" bytea, "request" bytea)  (0.9ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (1.2ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (3.2ms) 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)   (0.8ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.8ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.9ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.1ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (1.6ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (1.0ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (1.1ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.0ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.9ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.8ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (3.1ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140703144541')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140520140817')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140603163708')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140605173747')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140702184622')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (25.7ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (132.4ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (251.0ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.6ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.7ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (0.6ms) CREATE TABLE "credential_cores_tasks" ("core_id" integer, "task_id" integer)  (0.7ms) CREATE TABLE "credential_logins_tasks" ("login_id" integer, "task_id" integer)   (3.1ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.7ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.9ms) 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), "fail_detail" text)  (3.3ms) 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)   (2.7ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.3ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.1ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (1.5ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.8ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (0.9ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.9ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.9ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.1ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (2.9ms) 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, "macro" text)   (2.7ms) 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, "content_type" character varying(255), "name" text, "info" text)  (2.8ms) 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)   (2.2ms) 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, "logins_count" integer DEFAULT 0)  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (1.1ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.7ms) 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)  (1.1ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.4ms) 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)   (0.8ms) CREATE INDEX "originating_credential_cores" ON "metasploit_credential_origin_cracked_passwords" ("metasploit_credential_core_id")  (2.9ms) 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)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (2.1ms) 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)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.7ms) 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)   (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.7ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (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, "jtr_format" character varying(255))   (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (2.0ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.7ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (3.3ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.6ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (1.0ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.7ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.8ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (1.0ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (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)  (0.9ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.9ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (1.1ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.9ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.9ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.7ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.8ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.9ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.5ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (14.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, "name" text)  (15.0ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.9ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.8ms) 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)   (2.8ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.9ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.8ms) 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)  (3.2ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.9ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.7ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.9ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (1.0ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.9ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.8ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (2.8ms) 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)  (2.7ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (2.9ms) 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)  (2.0ms) 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)   (2.2ms) 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)  (2.0ms) 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)   (1.9ms) 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)  (3.1ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (2.8ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (2.8ms) 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, "fail_detail" text)   (2.9ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (2.9ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.9ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (1.9ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (3.1ms) 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, "query" text)  (0.8ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.9ms) 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, "headers" text, "body" bytea, "request" bytea)  (0.9ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.9ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.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)   (0.9ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.7ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.8ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.8ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.9ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (1.0ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.5ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.7ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.6ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (3.8ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140703144541')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140520140817')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140603163708')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140605173747')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140702184622')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (136.1ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (371.7ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (4.9ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.7ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (0.6ms) CREATE TABLE "credential_cores_tasks" ("core_id" integer, "task_id" integer)  (0.6ms) CREATE TABLE "credential_logins_tasks" ("login_id" integer, "task_id" integer)   (20.1ms) 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(256), "source_id" integer, "source_type" character varying(255))  (3.4ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.8ms) 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), "fail_detail" text)  (2.7ms) 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)   (3.5ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.8ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (1.2ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.9ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (0.8ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.9ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.1ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (2.8ms) 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, "macro" text)   (2.8ms) 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, "content_type" character varying(255), "name" text, "info" text)  (3.0ms) 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)   (2.1ms) 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, "logins_count" integer DEFAULT 0)  (1.0ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.7ms) 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)  (1.1ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.0ms) 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)   (0.9ms) CREATE INDEX "originating_credential_cores" ON "metasploit_credential_origin_cracked_passwords" ("metasploit_credential_core_id")  (2.8ms) 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)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.9ms) 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)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (3.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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.7ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (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, "jtr_format" character varying(255))   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.9ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (3.0ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.7ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.6ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.9ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (3.0ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.8ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.7ms) 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)  (0.8ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.9ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (1.1ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.9ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (3.0ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (1.0ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (4.1ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.5ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.7ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.9ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (2.9ms) 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, "name" text)  (3.0ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.9ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.5ms) 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)   (2.7ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.8ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (3.0ms) 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)  (2.9ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.7ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.6ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.8ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.8ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (4.6ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.9ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (3.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)  (7.8ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (3.0ms) 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)  (4.0ms) 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)   (4.3ms) 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)  (2.1ms) 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)   (1.9ms) 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)  (7.0ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (3.0ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (2.9ms) 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, "fail_detail" text)   (2.8ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (3.1ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (2.0ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.9ms) 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, "query" text)  (0.9ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (3.0ms) 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, "headers" text, "body" bytea, "request" bytea)  (0.8ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (1.0ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.8ms) 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)   (0.8ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (1.0ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.9ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.0ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.9ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (1.0ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.9ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.0ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.9ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.8ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (3.3ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140703144541')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140520140817')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140603163708')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140605173747')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140702184622')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (2.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (0.0ms) SET search_path TO public  (140.0ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (0.0ms) SET search_path TO public  (381.0ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.0ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.0ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (1.0ms) CREATE TABLE "credential_cores_tasks" ("core_id" integer, "task_id" integer)  (1.0ms) CREATE TABLE "credential_logins_tasks" ("login_id" integer, "task_id" integer)   (20.0ms) 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(256), "source_id" integer, "source_type" character varying(255))  (3.0ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (4.0ms) 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), "fail_detail" text)  (4.0ms) 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)   (3.0ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (4.0ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (12.0ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (1.0ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (1.0ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (1.0ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (1.0ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (1.0ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.0ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.0ms) 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, "macro" text)   (3.0ms) 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, "content_type" character varying(255), "name" text, "info" text)  (3.0ms) 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)   (3.0ms) 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, "logins_count" integer DEFAULT 0)  (1.0ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (1.0ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (1.0ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (2.0ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (1.0ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (3.0ms) 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)  (2.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (3.0ms) 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)   (2.0ms) CREATE INDEX "originating_credential_cores" ON "metasploit_credential_origin_cracked_passwords" ("metasploit_credential_core_id")  (3.0ms) 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)   (2.0ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (2.0ms) 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)   (1.0ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (3.0ms) 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)   (1.0ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (3.0ms) 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)   (1.0ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (3.0ms) 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, "jtr_format" character varying(255))   (2.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (2.0ms) 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)   (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (4.0ms) 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)   (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (3.0ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (3.0ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (1.0ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (3.0ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (1.0ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (3.0ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (1.0ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (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)  (1.0ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (1.0ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (1.0ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (1.0ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (3.0ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (1.0ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (3.0ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (1.0ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (3.0ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (1.0ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (1.0ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (3.0ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (6.0ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.0ms) 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, "name" text)  (3.0ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (1.0ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (3.0ms) 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)   (6.0ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (1.0ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (4.0ms) 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)  (3.0ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (3.0ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (3.0ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (1.0ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (1.0ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (1.0ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (1.0ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (4.0ms) 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)  (3.0ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (3.0ms) 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)  (3.0ms) 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)   (3.0ms) 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)  (2.0ms) 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)   (2.0ms) 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)  (3.0ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (3.0ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (4.0ms) 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, "fail_detail" text)   (3.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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (3.0ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (3.0ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (3.0ms) 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, "query" text)  (1.0ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (3.0ms) 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, "headers" text, "body" bytea, "request" bytea)  (1.0ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (1.0ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.0ms) 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)   (1.0ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (1.0ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (1.0ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (3.0ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (1.0ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (1.0ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (1.0ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.0ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (3.0ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (1.0ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (3.0ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.0ms) SELECT version FROM "schema_migrations"  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20140703144541')  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20140520140817')  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20140603163708')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20140605173747')  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20140702184622')  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (6.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (138.0ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (373.8ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (5.0ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.7ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (0.6ms) CREATE TABLE "credential_cores_tasks" ("core_id" integer, "task_id" integer)  (0.7ms) CREATE TABLE "credential_logins_tasks" ("login_id" integer, "task_id" integer)   (20.1ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.9ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.7ms) 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), "fail_detail" text)  (2.7ms) 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)   (2.7ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.4ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (1.1ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.7ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (0.9ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (1.0ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.9ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.2ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.2ms) 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, "macro" text)   (2.9ms) 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, "content_type" character varying(255), "name" text, "info" text)  (3.0ms) 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)   (1.9ms) 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, "logins_count" integer DEFAULT 0)  (1.0ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (1.0ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.7ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.6ms) 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)  (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.8ms) 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)   (0.9ms) CREATE INDEX "originating_credential_cores" ON "metasploit_credential_origin_cracked_passwords" ("metasploit_credential_core_id")  (2.9ms) 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)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (1.8ms) 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)   (1.0ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.9ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.8ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (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, "jtr_format" character varying(255))   (1.1ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.8ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.9ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (2.7ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.7ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.7ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (2.8ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.9ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (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)  (0.9ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.8ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.9ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (1.0ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.7ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (1.0ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.8ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.7ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.7ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.8ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.7ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.1ms) 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, "name" text)  (2.9ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.9ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.7ms) 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)   (2.7ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (1.1ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.9ms) 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)  (2.7ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.7ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.7ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (5.5ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (1.0ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (1.0ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.8ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (3.0ms) 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)  (3.3ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (2.9ms) 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)  (1.9ms) 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)   (2.1ms) 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)  (5.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)   (2.0ms) 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)  (2.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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (3.6ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (2.7ms) 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, "fail_detail" text)   (2.9ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (2.9ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.9ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (1.9ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.6ms) 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, "query" text)  (0.9ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.7ms) 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, "headers" text, "body" bytea, "request" bytea)  (0.8ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.8ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.8ms) 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)   (0.8ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.9ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.8ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (2.9ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.9ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.8ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.8ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.1ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (3.0ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (3.0ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140703144541')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140520140817')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140603163708')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140605173747')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140702184622')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (166.1ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (389.6ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (10.5ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.7ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (0.8ms) CREATE TABLE "credential_cores_tasks" ("core_id" integer, "task_id" integer)  (0.8ms) CREATE TABLE "credential_logins_tasks" ("login_id" integer, "task_id" integer)   (20.8ms) 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(256), "source_id" integer, "source_type" character varying(255))  (3.0ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.9ms) 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), "fail_detail" text)  (2.8ms) 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)   (3.1ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.6ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (1.6ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.9ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (0.8ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (0.9ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.4ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.0ms) 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, "macro" text)   (2.9ms) 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, "content_type" character varying(255), "name" text, "info" text)  (2.7ms) 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)   (1.9ms) 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, "logins_count" integer DEFAULT 0)  (1.0ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (2.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)  (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (1.1ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.1ms) 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)   (0.8ms) CREATE INDEX "originating_credential_cores" ON "metasploit_credential_origin_cracked_passwords" ("metasploit_credential_core_id")  (2.9ms) 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)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (2.0ms) 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)   (0.9ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.7ms) 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)   (1.0ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (3.0ms) 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)   (0.8ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (2.8ms) 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, "jtr_format" character varying(255))   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.9ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (2.9ms) 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)   (1.0ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (3.0ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (2.7ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.7ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (3.0ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.9ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (3.1ms) 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)  (0.8ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.9ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.9ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.9ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (3.0ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (3.5ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (1.0ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.8ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.5ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.9ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.0ms) 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, "name" text)  (4.2ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.8ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.6ms) 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)   (2.8ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.8ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (3.2ms) 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)  (2.9ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.8ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (2.8ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (1.0ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (1.0ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (0.8ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (0.8ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (3.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)  (2.8ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (3.2ms) 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)  (2.1ms) 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)   (2.3ms) 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)  (2.2ms) 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)   (2.3ms) 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)  (3.0ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (3.2ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (3.0ms) 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, "fail_detail" text)   (3.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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (3.2ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.8ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (2.1ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.7ms) 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, "query" text)  (1.2ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (3.1ms) 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, "headers" text, "body" bytea, "request" bytea)  (0.8ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.9ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.9ms) 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)   (0.9ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.9ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.8ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (2.9ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (1.0ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.9ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.8ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (3.2ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (2.7ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (1.2ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (4.3ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140703144541')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140520140817')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140603163708')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140605173747')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140702184622')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737') Connecting to database specified by database.yml Connecting to database specified by database.yml  (5.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (153.9ms) DROP DATABASE IF EXISTS "metasploit_credential_test"  (370.4ms) CREATE DATABASE "metasploit_credential_test" ENCODING = 'utf8'  (14.6ms) CREATE TABLE "api_keys" ("id" serial primary key, "token" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.9ms) CREATE TABLE "clients" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "ua_string" character varying(1024) NOT NULL, "ua_name" character varying(64), "ua_ver" character varying(32), "updated_at" timestamp)   (0.7ms) CREATE TABLE "credential_cores_tasks" ("core_id" integer, "task_id" integer)  (0.6ms) CREATE TABLE "credential_logins_tasks" ("login_id" integer, "task_id" integer)   (27.0ms) 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(256), "source_id" integer, "source_type" character varying(255))  (2.8ms) CREATE TABLE "events" ("id" serial primary key, "workspace_id" integer, "host_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "critical" boolean, "seen" boolean, "username" character varying(255), "info" text)   (2.9ms) 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), "fail_detail" text)  (2.9ms) 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)   (2.9ms) CREATE TABLE "host_details" ("id" serial primary key, "host_id" integer, "nx_console_id" integer, "nx_device_id" integer, "src" character varying(255), "nx_site_name" character varying(255), "nx_site_importance" character varying(255), "nx_scan_template" character varying(255), "nx_risk_score" float)  (3.4ms) CREATE TABLE "hosts" ("id" serial primary key, "created_at" timestamp, "address" character varying(255) NOT NULL, "mac" character varying(255), "comm" character varying(255), "name" character varying(255), "state" character varying(255), "os_name" character varying(255), "os_flavor" character varying(255), "os_sp" character varying(255), "os_lang" character varying(255), "arch" character varying(255), "workspace_id" integer NOT NULL, "updated_at" timestamp, "purpose" text, "info" character varying(65536), "comments" text, "scope" text, "virtual_host" text, "note_count" integer DEFAULT 0, "vuln_count" integer DEFAULT 0, "service_count" integer DEFAULT 0, "host_detail_count" integer DEFAULT 0, "exploit_attempt_count" integer DEFAULT 0, "cred_count" integer DEFAULT 0)   (1.0ms) CREATE INDEX "index_hosts_on_name" ON "hosts" ("name")  (1.1ms) CREATE INDEX "index_hosts_on_os_flavor" ON "hosts" ("os_flavor")  (0.9ms) CREATE INDEX "index_hosts_on_os_name" ON "hosts" ("os_name")  (0.8ms) CREATE INDEX "index_hosts_on_purpose" ON "hosts" ("purpose")  (0.8ms) CREATE INDEX "index_hosts_on_state" ON "hosts" ("state")  (1.2ms) CREATE UNIQUE INDEX "index_hosts_on_workspace_id_and_address" ON "hosts" ("workspace_id", "address")  (2.3ms) CREATE TABLE "hosts_tags" ("id" serial primary key, "host_id" integer, "tag_id" integer)  (3.0ms) 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, "macro" text)   (3.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, "content_type" character varying(255), "name" text, "info" text)  (3.0ms) 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)   (1.9ms) 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, "logins_count" integer DEFAULT 0)  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_origin_type_and_origin_id" ON "metasploit_credential_cores" ("origin_type", "origin_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_private_id" ON "metasploit_credential_cores" ("private_id")  (0.9ms) CREATE INDEX "index_metasploit_credential_cores_on_public_id" ON "metasploit_credential_cores" ("public_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_realm_id" ON "metasploit_credential_cores" ("realm_id")  (0.8ms) CREATE INDEX "index_metasploit_credential_cores_on_workspace_id" ON "metasploit_credential_cores" ("workspace_id")  (3.0ms) 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)  (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_core_id_and_service_id" ON "metasploit_credential_logins" ("core_id", "service_id")  (0.7ms) CREATE UNIQUE INDEX "index_metasploit_credential_logins_on_service_id_and_core_id" ON "metasploit_credential_logins" ("service_id", "core_id")  (2.2ms) 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)   (0.9ms) CREATE INDEX "originating_credential_cores" ON "metasploit_credential_origin_cracked_passwords" ("metasploit_credential_core_id")  (3.0ms) 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)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_imports_on_task_id" ON "metasploit_credential_origin_imports" ("task_id")  (2.3ms) 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)   (0.8ms) CREATE INDEX "index_metasploit_credential_origin_manuals_on_user_id" ON "metasploit_credential_origin_manuals" ("user_id")  (2.8ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_services" ON "metasploit_credential_origin_services" ("service_id", "module_full_name")  (2.9ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_metasploit_credential_origin_sessions" ON "metasploit_credential_origin_sessions" ("session_id", "post_reference_name")  (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, "jtr_format" character varying(255))   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data" ON "metasploit_credential_privates" ("type", "data")  (1.9ms) 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)   (0.9ms) CREATE UNIQUE INDEX "index_metasploit_credential_publics_on_username" ON "metasploit_credential_publics" ("username")  (3.0ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_metasploit_credential_realms_on_key_and_value" ON "metasploit_credential_realms" ("key", "value")  (3.1ms) CREATE TABLE "mod_refs" ("id" serial primary key, "module" character varying(1024), "mtype" character varying(128), "ref" text)   (23.7ms) CREATE TABLE "module_actions" ("id" serial primary key, "detail_id" integer, "name" text)  (1.5ms) CREATE INDEX "index_module_actions_on_module_detail_id" ON "module_actions" ("detail_id")  (2.7ms) CREATE TABLE "module_archs" ("id" serial primary key, "detail_id" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_archs_on_module_detail_id" ON "module_archs" ("detail_id")  (3.0ms) CREATE TABLE "module_authors" ("id" serial primary key, "detail_id" integer, "name" text, "email" text)  (0.8ms) CREATE INDEX "index_module_authors_on_module_detail_id" ON "module_authors" ("detail_id")  (2.8ms) 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)  (0.8ms) CREATE INDEX "index_module_details_on_description" ON "module_details" ("description")  (0.9ms) CREATE INDEX "index_module_details_on_mtype" ON "module_details" ("mtype")  (0.8ms) CREATE INDEX "index_module_details_on_name" ON "module_details" ("name")  (0.9ms) CREATE INDEX "index_module_details_on_refname" ON "module_details" ("refname")  (2.9ms) CREATE TABLE "module_mixins" ("id" serial primary key, "detail_id" integer, "name" text)   (1.0ms) CREATE INDEX "index_module_mixins_on_module_detail_id" ON "module_mixins" ("detail_id")  (2.9ms) CREATE TABLE "module_platforms" ("id" serial primary key, "detail_id" integer, "name" text)   (0.8ms) CREATE INDEX "index_module_platforms_on_module_detail_id" ON "module_platforms" ("detail_id")  (2.5ms) CREATE TABLE "module_refs" ("id" serial primary key, "detail_id" integer, "name" text)   (0.9ms) CREATE INDEX "index_module_refs_on_module_detail_id" ON "module_refs" ("detail_id")  (0.8ms) CREATE INDEX "index_module_refs_on_name" ON "module_refs" ("name")  (2.8ms) CREATE TABLE "module_targets" ("id" serial primary key, "detail_id" integer, "index" integer, "name" text)  (0.8ms) CREATE INDEX "index_module_targets_on_module_detail_id" ON "module_targets" ("detail_id")  (3.1ms) 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, "name" text)  (2.8ms) CREATE TABLE "notes" ("id" serial primary key, "created_at" timestamp, "ntype" character varying(512), "workspace_id" integer DEFAULT 1 NOT NULL, "service_id" integer, "host_id" integer, "updated_at" timestamp, "critical" boolean, "seen" boolean, "data" text)   (0.9ms) CREATE INDEX "index_notes_on_ntype" ON "notes" ("ntype")  (2.9ms) 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)   (2.7ms) CREATE TABLE "refs" ("id" serial primary key, "ref_id" integer, "created_at" timestamp, "name" character varying(512), "updated_at" timestamp)  (0.9ms) CREATE INDEX "index_refs_on_name" ON "refs" ("name")  (2.9ms) 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)  (2.9ms) 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, "downloaded_at" timestamp, "task_id" integer, "name" character varying(63))   (2.9ms) CREATE TABLE "routes" ("id" serial primary key, "session_id" integer, "subnet" character varying(255), "netmask" character varying(255))  (3.0ms) CREATE TABLE "services" ("id" serial primary key, "host_id" integer, "created_at" timestamp, "port" integer NOT NULL, "proto" character varying(16) NOT NULL, "state" character varying(255), "name" character varying(255), "updated_at" timestamp, "info" text)   (0.9ms) CREATE INDEX "index_services_on_name" ON "services" ("name")  (0.9ms) CREATE INDEX "index_services_on_port" ON "services" ("port")  (1.0ms) CREATE INDEX "index_services_on_proto" ON "services" ("proto")  (1.0ms) CREATE INDEX "index_services_on_state" ON "services" ("state")  (3.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)  (3.0ms) 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), "datastore" text, "opened_at" timestamp NOT NULL, "closed_at" timestamp, "close_reason" character varying(255), "local_id" integer, "last_seen" timestamp)   (3.1ms) 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)  (2.2ms) 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)   (2.1ms) 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)  (1.9ms) 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)   (2.2ms) 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)  (3.0ms) 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, "result" text, "module_uuid" character varying(8), "settings" bytea)   (2.8ms) 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, "fullname" character varying(255), "email" character varying(255), "phone" character varying(255), "company" character varying(255), "prefs" character varying(524288), "admin" boolean DEFAULT 't' NOT NULL)  (2.8ms) 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, "fail_detail" text)   (3.1ms) 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, "nx_vuln_status" text, "nx_proof_key" text, "src" character varying(255), "nx_scan_id" integer, "nx_vulnerable_since" timestamp, "nx_pci_compliance_status" character varying(255))  (3.5ms) CREATE TABLE "vulns" ("id" serial primary key, "host_id" integer, "service_id" integer, "created_at" timestamp, "name" character varying(255), "updated_at" timestamp, "info" character varying(65536), "exploited_at" timestamp, "vuln_detail_count" integer DEFAULT 0, "vuln_attempt_count" integer DEFAULT 0)   (0.9ms) CREATE INDEX "index_vulns_on_name" ON "vulns" ("name")  (2.0ms) CREATE TABLE "vulns_refs" ("id" serial primary key, "ref_id" integer, "vuln_id" integer)   (2.5ms) 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, "query" text)  (0.9ms) CREATE INDEX "index_web_forms_on_path" ON "web_forms" ("path")  (2.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, "headers" text, "body" bytea, "request" bytea)  (0.8ms) CREATE INDEX "index_web_pages_on_path" ON "web_pages" ("path")  (0.9ms) CREATE INDEX "index_web_pages_on_query" ON "web_pages" ("query")  (2.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)   (0.8ms) CREATE INDEX "index_web_sites_on_comments" ON "web_sites" ("comments")  (0.9ms) CREATE INDEX "index_web_sites_on_options" ON "web_sites" ("options")  (0.8ms) CREATE INDEX "index_web_sites_on_vhost" ON "web_sites" ("vhost")  (2.9ms) 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 NOT NULL, "method" character varying(1024) NOT NULL, "params" text NOT NULL, "pname" text, "risk" integer NOT NULL, "name" character varying(1024) NOT NULL, "query" text, "category" text NOT NULL, "confidence" integer NOT NULL, "description" text, "blame" text, "request" bytea, "proof" bytea NOT NULL, "owner" character varying(255), "payload" text)   (0.8ms) CREATE INDEX "index_web_vulns_on_method" ON "web_vulns" ("method")  (0.9ms) CREATE INDEX "index_web_vulns_on_name" ON "web_vulns" ("name")  (0.8ms) CREATE INDEX "index_web_vulns_on_path" ON "web_vulns" ("path")  (2.9ms) CREATE TABLE "wmap_requests" ("id" serial primary key, "host" character varying(255), "address" 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_at" timestamp, "updated_at" timestamp)   (3.0ms) CREATE TABLE "wmap_targets" ("id" serial primary key, "host" character varying(255), "address" character varying(255), "port" integer, "ssl" integer, "selected" integer, "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "workspace_members" ("workspace_id" integer NOT NULL, "user_id" integer NOT NULL)   (2.8ms) CREATE TABLE "workspaces" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "boundary" character varying(4096), "description" character varying(4096), "owner_id" integer, "limit_to_network" boolean DEFAULT 'f' NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140703144541')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140331173835')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140407212345')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410132401')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410161611')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410191213')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140410205410')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411142102')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140411205325')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140414192550')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140417140933')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140520140817')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140603163708')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140605173747')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140702184622')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('5')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('6')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('7')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('8')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('9')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('10')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('11')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('12')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('13')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('14')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('15')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('16')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('17')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('18')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('19')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('21')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('22')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('23')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('24')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('25')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('26')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100819123300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100824151500')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100908001428')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100911122000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916151530')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100916175000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100920012100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20100926214000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101001000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101002000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101007000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101008111800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101009023300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101104135100')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101203000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20101206212033')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110112154300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110204112800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110317144932')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110414180600')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110415175705')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110422000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110425095900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110513143900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110517160800')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110527000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110606000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110622000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110624000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110630000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110717000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110727163801')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110730000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110812000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110922000000')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928101300')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111011110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111203000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111204000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111210000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120126110000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120411173220')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120601152442')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000000')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000001')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000002')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000004')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000005')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000006')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000007')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120625000008')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120718202805')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130228214900')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412154159')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412171844')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173121')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412173640')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174254')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412174719')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130412175040')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130423211152')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430151353')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130430162145')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130510021637')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515164311')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130515172727')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130516204810')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522001343')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522032517')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130522041110')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525015035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130525212420')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130531144949')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130604145732')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717150737')