-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Citrix netscaler OS fixes and add support for netscaler cli history #385
Citrix netscaler OS fixes and add support for netscaler cli history #385
Conversation
The previous approach returned a virtualfilesystem on detect(). As I understand it, an OS plugin should return the system volume on detect, and bootstrap the filesystem in the create classmethod. Also added a check for /log to distinguish ramdisk from system volume. Lastly, account for usage on *only* the ramdisk by falling back to the ramdisk as system volume if the harddisk is not available.
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #385 +/- ##
==========================================
+ Coverage 73.93% 73.98% +0.04%
==========================================
Files 272 273 +1
Lines 22572 22633 +61
==========================================
+ Hits 16689 16744 +55
- Misses 5883 5889 +6
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
ad97c29
to
e73b748
Compare
Also account for nsmonitor user having 'monitors' as its home dir
While testing the code review suggestions, I ran into the |
Co-authored-by: Erik Schamper <[email protected]>
f80ac27
to
8fa8a39
Compare
@Schamper told us to add this here: root@netscaler# gpart show => 0 882482580 ad4s1 BSD (420G) => 63 937703025 ad6 MBR (447G) => 0 882482580 ad6s1 BSD (420G) => 63 890863553 ar0 MBR (424G) [CORRUPT] => 0 882482580 ar0s1 BSD (420G) we therefore created 3 disk images. target-fs netscaler-flash.img ls / target-fs netscaler-root.img ls / while also returning these warnings: running: (dissect) root@hostname:/mnt/netscaler/fs# ls -a flash (dissect) root@hostname:/mnt/netscaler/fs# ls -la var |
@Politie-SOC Thanks for posting. As you can see at https://github.com/fox-it/dissect.target/pull/385/files#diff-7e4df35dcb23e758fc9bb1932a06fed16bfbf6303e9c514cca69cfaecef7562fR84, a filesystem is currently inspected for the presence of a In your output, I see the disk image that should contain the Could you share how you created an image of the flash partition, and why you went that route? It could be that I'm missing something from your posted output, the markdown is a bit iffy. We could add a check for a |
So what we did in this case was create a dd of this:
As mentioned here #484 when we dd /dev/ar0 instead, we also dd the MBR (according to @Schamper ) and Dissect needs that to parse it properly. The output above shows /dev/ar0s1a instead of /dev/ad0s1a but I'm assuming that shouldn't matter. |
All right, seems that we don't have to account for a situation where there is a |
ccbd058
to
86de135
Compare
The previous approach returned a virtualfilesystem on detect(). As I understand it, an OS plugin should return the system volume on detect, and bootstrap the filesystem in the create classmethod. Also added a check for /log to distinguish ramdisk from system volume. Moreover, account for usage on only the ramdisk by falling back to the ramdisk as system volume if the harddisk is not available.
Lastly, this PR adds support for netscaler-cli to the command history plugin.