Skip to content

Instantly share code, notes, and snippets.

@svnlto
Created August 29, 2016 08:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save svnlto/3059e374dfe7014f752eb5a58a722a37 to your computer and use it in GitHub Desktop.
Save svnlto/3059e374dfe7014f752eb5a58a722a37 to your computer and use it in GitHub Desktop.
Machine.schema = Joi.object().keys({
id: Joi.string().required(),
name: Joi.string(),
domain: Joi.string(),
lastSeen: Joi.string(),
versions: Joi.object().keys({
build: Joi.object().keys({
major: Joi.number(),
minor: Joi.number(),
build: Joi.number()
}),
servicePack: Joi.object().keys({
major: Joi.number(),
minor: Joi.number(),
})
}),
suiteMask: Joi.number(),
productType: Joi.string(),
architectureType: Joi.string(),
numberProcessors: Joi.number(),
userName: Joi.string(),
serviceName: Joi.string(),
serviceVersion: Joi.number(),
regCr3: Joi.number(),
dbName: Joi.string(),
pdbGuid: Joi.number(),
pdbAge: Joi.number(),
ntosBase: Joi.number(),
snapshots: Joi.array().items(SnapshotEntry.schema)
});
SnapshotEntry.schema = Joi.object().keys({
snapshot_id: Joi.string().required(),
file_name: Joi.string(),
contentType: Joi.string(),
size: Joi.number(),
created_at: Joi.string().required(),
metadata: Joi.object().keys(),
md5: Joi.string(),
data: Joi.string().required()
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment