Tenable Security Center uses an sqlite database. Here’s a few commands to help extract data out of database files.
# cd /opt/sc4
# /opt/sc4/support/bin/sqlite3 application.db “.tables”
AcceptRiskRules AppStyle
AdminDashboardTab AppStyleAttribute
AdminPreferences AppStyleFamily
AdminUser AppStyleFamilyMapping
AppAuditFile AppWindowsCredential
AppAuditFilePlugins AssetTemplate
AppCredential AssetTemplateClause
AppDashboardComponent AssetTemplateClauseGroup
AppDashboardTab Configuration
AppDataTimestamps CorrelatedRepositoryLCE
AppKerberosCredential Email
AppPolicy LCE
AppPolicyAuditFile LCESilo
AppPolicyDisabledPlugins LCETypes
AppPolicyEnabledPlugins OrgLCE
AppPolicyFamily OrgRepository
AppPolicyPluginPrefs Organization
AppPolicyTemplate PassiveScanner
AppPolicyTemplateAuditFile PassiveScannerRepository
AppPolicyTemplateDisabledPlugins RecastRiskRules
AppPolicyTemplateEnabledPlugins Repository
AppPolicyTemplateFamily Scanner
AppPolicyTemplatePluginPrefs UserAuth
AppReportTemplate Zone
AppRole ZoneOrganization
AppSNMPCredential ZoneScanner
AppSSHCredential sc4Schema
AppSchedule
# /opt/sc4/support/bin/sqlite3 jobqueue.db “.tables”
JobQueue sc4Schema
# /opt/sc4/support/bin/sqlite3 application.db “SELECT * FROM Configuration”
[...]
# /opt/sc4/support/bin/sqlite3 application.db “.schema”
[...]
CREATE TABLE [Configuration] (
[type] INTEGER,
[name] VARCHAR NOT NULL,
[value] VARCHAR NOT NULL,
[visible] BOOLEAN NOT NULL DEFAULT ‘true’
, [editable] BOOLEAN NOT NULL DEFAULT ‘true’);
CREATE TABLE [CorrelatedRepositoryLCE] (
[repID] INTEGER NOT NULL,
[lceID] INTEGER NOT NULL
);
[...]
No comments:
Post a Comment