Commit Graph

97 Commits (0e2dfbaa98a8321402ad26a58fbc7d1be8323b35)

Author SHA1 Message Date
HD Moore 16840ebfa5 Add profiles table
git-svn-id: file:///home/svn/framework3/trunk@13202 4d416f70-5f16-0410-b530-b9f4589650da
2011-07-17 21:39:21 +00:00
HD Moore 17145d07b6 Add some new tables
git-svn-id: file:///home/svn/framework3/trunk@13074 4d416f70-5f16-0410-b530-b9f4589650da
2011-06-30 06:49:04 +00:00
HD Moore 0d0f3804bb Merge in the macro column
git-svn-id: file:///home/svn/framework3/trunk@13027 4d416f70-5f16-0410-b530-b9f4589650da
2011-06-25 18:18:24 +00:00
HD Moore e4eb2a4af0 Add a new table for managing background listeners
git-svn-id: file:///home/svn/framework3/trunk@13024 4d416f70-5f16-0410-b530-b9f4589650da
2011-06-25 06:57:47 +00:00
HD Moore 25a2d846e2 Add the settings column
git-svn-id: file:///home/svn/framework3/trunk@13011 4d416f70-5f16-0410-b530-b9f4589650da
2011-06-23 07:04:20 +00:00
HD Moore fbe525873a Add the new macro table
git-svn-id: file:///home/svn/framework3/trunk@12929 4d416f70-5f16-0410-b530-b9f4589650da
2011-06-12 19:04:05 +00:00
Tod Beardsley 3fde9c6f1f Reworking how imported crendentials work.
git-svn-id: file:///home/svn/framework3/trunk@12908 4d416f70-5f16-0410-b530-b9f4589650da
2011-06-11 02:40:02 +00:00
HD Moore cab5d26181 Add the database table for api keys
git-svn-id: file:///home/svn/framework3/trunk@12755 4d416f70-5f16-0410-b530-b9f4589650da
2011-05-28 03:41:37 +00:00
HD Moore 96e6e22795 Add the task_id to the reports table
git-svn-id: file:///home/svn/framework3/trunk@12751 4d416f70-5f16-0410-b530-b9f4589650da
2011-05-27 23:57:56 +00:00
Tod Beardsley 60dcac616e Renames some nessus-imported vulnerabilities to drop the NSS identifier and just stick with the plugin name (if available). Also drops junk NSS-0 vulnerabilities.
git-svn-id: file:///home/svn/framework3/trunk@12653 4d416f70-5f16-0410-b530-b9f4589650da
2011-05-17 22:18:43 +00:00
HD Moore bf6cab2644 Define Vuln as well for this migration to succeeed
git-svn-id: file:///home/svn/framework3/trunk@12629 4d416f70-5f16-0410-b530-b9f4589650da
2011-05-16 02:39:57 +00:00
HD Moore cd1c6416f3 Add the missing ExploitedHost model to the migration
git-svn-id: file:///home/svn/framework3/trunk@12628 4d416f70-5f16-0410-b530-b9f4589650da
2011-05-16 02:32:16 +00:00
Tod Beardsley 056cde292f Deprecate the exploited_host table. Vulns that indicate a successful exploit without opening a session should set the :exploited_at timestamp.
git-svn-id: file:///home/svn/framework3/trunk@12623 4d416f70-5f16-0410-b530-b9f4589650da
2011-05-15 22:19:00 +00:00
James Lee b61d83a0ae add a last-seen column to the sessions table so we can cull dead sessions on startup
git-svn-id: file:///home/svn/framework3/trunk@12432 4d416f70-5f16-0410-b530-b9f4589650da
2011-04-25 16:11:02 +00:00
HD Moore d27457ad91 Convert binary fields from text to binary
git-svn-id: file:///home/svn/framework3/trunk@12410 4d416f70-5f16-0410-b530-b9f4589650da
2011-04-22 20:44:13 +00:00
James Lee 86bca6438f add a routes table; delete each comm's routes when flushing
git-svn-id: file:///home/svn/framework3/trunk@12377 4d416f70-5f16-0410-b530-b9f4589650da
2011-04-20 17:49:27 +00:00
Tod Beardsley d63fe9a7ba Adding a column for local_id to the sessions table in order to better handle database-mediated session operations.
git-svn-id: file:///home/svn/framework3/trunk@12321 4d416f70-5f16-0410-b530-b9f4589650da
2011-04-14 23:14:36 +00:00
Mike Smith d5d9d56081 Create a dedicated db table to track sessions & session events.
* Add new db tables for session & session_events
* Migrate existing session data from events db table
* Modify session report methods to log to the new tables


git-svn-id: file:///home/svn/framework3/trunk@12273 4d416f70-5f16-0410-b530-b9f4589650da
2011-04-07 21:59:32 +00:00
Tod Beardsley 14e6809b2b migrations for tags
git-svn-id: file:///home/svn/framework3/trunk@11726 4d416f70-5f16-0410-b530-b9f4589650da
2011-02-08 18:53:55 +00:00
Tod Beardsley 5145bd551d Adding a module_uuid field for tasks, for better tracking.
git-svn-id: file:///home/svn/framework3/trunk@11567 4d416f70-5f16-0410-b530-b9f4589650da
2011-01-12 23:37:44 +00:00
HD Moore f448dbace3 Fix up old migrations to make MySQL happy
git-svn-id: file:///home/svn/framework3/trunk@11244 4d416f70-5f16-0410-b530-b9f4589650da
2010-12-07 17:41:44 +00:00
Mike Smith 722ff65e14 Add workspaces.limit_to_network db column
git-svn-id: file:///home/svn/framework3/trunk@11238 4d416f70-5f16-0410-b530-b9f4589650da
2010-12-06 22:19:03 +00:00
Joshua Drake 3fa31f9c32 avoid mysql limitation, fixes #2976
git-svn-id: file:///home/svn/framework3/trunk@11235 4d416f70-5f16-0410-b530-b9f4589650da
2010-12-06 22:03:34 +00:00
HD Moore b6cdf424d3 Expand host comments
git-svn-id: file:///home/svn/framework3/trunk@11221 4d416f70-5f16-0410-b530-b9f4589650da
2010-12-04 03:59:30 +00:00
HD Moore 7765bac17b Add the new migration
git-svn-id: file:///home/svn/framework3/trunk@11220 4d416f70-5f16-0410-b530-b9f4589650da
2010-12-04 03:38:12 +00:00
HD Moore 64e9209a60 This patches the old migration to work with mysql and switches these fields to :text, along with adding a :request column to both web_pages and web_vulns
git-svn-id: file:///home/svn/framework3/trunk@11219 4d416f70-5f16-0410-b530-b9f4589650da
2010-12-04 03:19:01 +00:00
Tod Beardsley f6415186a8 Adds the imported_creds table.
git-svn-id: file:///home/svn/framework3/trunk@10923 4d416f70-5f16-0410-b530-b9f4589650da
2010-11-06 01:01:20 +00:00
James Lee abf19e002d tweak the models
git-svn-id: file:///home/svn/framework3/trunk@10618 4d416f70-5f16-0410-b530-b9f4589650da
2010-10-09 08:35:41 +00:00
James Lee 988bbd13f1 associate clients with a campaign
git-svn-id: file:///home/svn/framework3/trunk@10601 4d416f70-5f16-0410-b530-b9f4589650da
2010-10-08 17:20:57 +00:00
HD Moore 04276d333a Add category, confidence, description, and blame to the web_vulns table.
git-svn-id: file:///home/svn/framework3/trunk@10591 4d416f70-5f16-0410-b530-b9f4589650da
2010-10-08 01:51:28 +00:00
HD Moore 8a567dd3a8 Add query to web_form/web_path
git-svn-id: file:///home/svn/framework3/trunk@10526 4d416f70-5f16-0410-b530-b9f4589650da
2010-10-02 22:55:54 +00:00
HD Moore 5b7296931d This patch merges in support for four new database tables focused on tracking web application information along with a tweak to the task manager code to allow tasks to be run from within tasks without fear of deadlock.
git-svn-id: file:///home/svn/framework3/trunk@10523 4d416f70-5f16-0410-b530-b9f4589650da
2010-10-02 18:48:29 +00:00
James Lee 337a0be8fc adjust templates, move SerializedPrefs into its own file
git-svn-id: file:///home/svn/framework3/trunk@10494 4d416f70-5f16-0410-b530-b9f4589650da
2010-09-27 04:12:04 +00:00
James Lee 5ae74d8913 mar my nice migration with a new one.
git-svn-id: file:///home/svn/framework3/trunk@10392 4d416f70-5f16-0410-b530-b9f4589650da
2010-09-20 07:43:49 +00:00
James Lee c0137c7d61 migrations for campaigns
git-svn-id: file:///home/svn/framework3/trunk@10380 4d416f70-5f16-0410-b530-b9f4589650da
2010-09-19 23:45:40 +00:00
Mike Smith 2b891db0e1 Use the fully-qualified name of the User class. Also, use a bulk UPDATE
instead of one UPDATE per record.

git-svn-id: file:///home/svn/framework3/trunk@10348 4d416f70-5f16-0410-b530-b9f4589650da
2010-09-17 16:12:27 +00:00
Mike Smith 6eed30a78d Add migration to make user.admin required
Revert r10296, which was a bad idea because it did not fix the problem if the
original version of the migration had already been applied.

git-svn-id: file:///home/svn/framework3/trunk@10333 4d416f70-5f16-0410-b530-b9f4589650da
2010-09-16 17:29:14 +00:00
Tod Beardsley 088e862e16 Adds a migration for report template tracking.
git-svn-id: file:///home/svn/framework3/trunk@10303 4d416f70-5f16-0410-b530-b9f4589650da
2010-09-13 12:17:57 +00:00
Mike Smith 0d043457f6 Make user.admin db column not null.
git-svn-id: file:///home/svn/framework3/trunk@10296 4d416f70-5f16-0410-b530-b9f4589650da
2010-09-11 18:21:56 +00:00
Mike Smith af5a77dee5 Add workspaces.owner_id database field
git-svn-id: file:///home/svn/framework3/trunk@10262 4d416f70-5f16-0410-b530-b9f4589650da
2010-09-08 17:51:24 +00:00
Tod Beardsley 1db9d8eb01 Fixes #2444. Adds an ExploitedHost table, adds the db_exploited command, adds the report_exploit() function.
Tested with meterpreter, shell, and clientside exploit sessions. 


git-svn-id: file:///home/svn/framework3/trunk@10130 4d416f70-5f16-0410-b530-b9f4589650da
2010-08-24 21:57:04 +00:00
Tod Beardsley 5b6f110efa Wrapping credential migration in a rescue to ensure it never fails; there are no schema changes in this migration, so a failure in migrating credentials to the Cred table shouldn't block future changes to the schema.
git-svn-id: file:///home/svn/framework3/trunk@10062 4d416f70-5f16-0410-b530-b9f4589650da
2010-08-19 19:51:13 +00:00
Tod Beardsley bae0bbbdbd See #2412. Migrates existing auth.* notes to the new Creds table. Anything unexpected should fall through to a new note of "migrated_auth".
git-svn-id: file:///home/svn/framework3/trunk@10058 4d416f70-5f16-0410-b530-b9f4589650da
2010-08-19 17:35:56 +00:00
Tod Beardsley 6d6a547b34 Fixes #2412. Adds a creds table, modifies the db_report_auth API, adds the db_creds and db_add_cred commands.
git-svn-id: file:///home/svn/framework3/trunk@10034 4d416f70-5f16-0410-b530-b9f4589650da
2010-08-18 00:58:20 +00:00
Mike Smith d2d419e1a7 Default to user.admin = true
git-svn-id: file:///home/svn/framework3/trunk@10032 4d416f70-5f16-0410-b530-b9f4589650da
2010-08-18 00:07:56 +00:00
Mike Smith 8785f22454 Update db schema to add user.admin and project_membership table.
git-svn-id: file:///home/svn/framework3/trunk@10030 4d416f70-5f16-0410-b530-b9f4589650da
2010-08-17 23:46:41 +00:00
Tod Beardsley 7e247e2f29 db migration to convert services info from varchar(65535) to text, and save info as a yaml'ed form in order to preserve funny characters.
git-svn-id: file:///home/svn/framework3/trunk@9633 4d416f70-5f16-0410-b530-b9f4589650da
2010-06-28 22:42:50 +00:00
Mike Smith cae5de9bdc Add reports.downloaded_at db column.
git-svn-id: file:///home/svn/framework3/trunk@9608 4d416f70-5f16-0410-b530-b9f4589650da
2010-06-24 16:13:46 +00:00
Mike Smith 0de01754ff Change event.info db column type from varchar(65535) to text
git-svn-id: file:///home/svn/framework3/trunk@9434 4d416f70-5f16-0410-b530-b9f4589650da
2010-06-05 00:33:31 +00:00
James Lee 0c1878f620 fix buggy migration that caused attempts to set the boundary field in workspace before it existed, fixes #1724
git-svn-id: file:///home/svn/framework3/trunk@9269 4d416f70-5f16-0410-b530-b9f4589650da
2010-05-10 06:59:33 +00:00