Skip to content

Commit

Permalink
show cd-rom as volume
Browse files Browse the repository at this point in the history
Signed-off-by: si458 <simonsmith5521@gmail.com>
  • Loading branch information
si458 committed Feb 22, 2024
1 parent 0b2368d commit 82c7065
Show file tree
Hide file tree
Showing 5 changed files with 1,804 additions and 1,789 deletions.
1 change: 1 addition & 0 deletions agents/meshcore.js
Expand Up @@ -5727,6 +5727,7 @@ function cleanGetBitLockerVolumeInfo(volumes) {
if (v.identifier == '') { delete v.identifier; }
if (v.name == '') { delete v.name; }
if (v.removable != true) { delete v.removable; }
if (v.cdrom != true) { delete v.cdrom; }
if (v.protectionStatus == 'On') { v.protectionStatus = true; } else { delete v.protectionStatus; }
if (v.volumeStatus == 'FullyDecrypted') { delete v.volumeStatus; }
if (v.recoveryPassword == '') { delete v.recoveryPassword; }
Expand Down
3 changes: 2 additions & 1 deletion agents/modules_meshcore/computer-identifiers.js
Expand Up @@ -408,7 +408,8 @@ function windows_volumes()
type: tokens[2].split('"')[1],
size: tokens[3].split('"')[1],
sizeremaining: tokens[4].split('"')[1],
removable: tokens[5].split('"')[1] == 'Removable'
removable: tokens[5].split('"')[1] == 'Removable',
cdrom: tokens[5].split('"')[1] == 'CD-ROM'
};
}
}
Expand Down

0 comments on commit 82c7065

Please sign in to comment.