Skip to content
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

Adding mount command for Windows and Linux #1596

Merged
merged 4 commits into from
Mar 14, 2024

Conversation

precurse-bf
Copy link
Contributor

This PR adds mount command support for Windows and Linux as per #93 . This was a collab between me and @RafBishopFox.

Windows support was added by @RafBishopFox and Linux support added by me.

Output looks like the following:

Linux:

sliver (PANICKY_SCULPTURE) > mount

 Source                     Mount Point                                   Mount Root                                                                                                               Filesystem Type       Options                           Total Space 
========================== ============================================= ======================================================================================================================== ===================== ================================= =============
 fuse-overlayfs             /                                             /                                                                                                                        fuse.fuse-overlayfs   rw,nodev,noatime                  606.80 GB   
 proc                       /proc                                         /                                                                                                                        proc                  rw,nosuid,nodev,noexec,relatime   0 B         
 tmpfs                      /dev                                          /                                                                                                                        tmpfs                 rw,nosuid                         64.00 MB    
 sysfs                      /sys                                          /                                                                                                                        sysfs                 ro,nosuid,nodev,noexec,relatime   0 B         
...omitted for brevity...

Windows:
image

@precurse-bf precurse-bf requested a review from a team as a code owner March 13, 2024 20:59
Copy link
Member

@rkervella rkervella left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one remark on the Windows side of things that may require some changes to the protobuf message and overall parsing.
Looks good otherwise, thanks @RafBishopFox and @precurse.

implant/sliver/mount/mount_windows.go Outdated Show resolved Hide resolved
@precurse-bf precurse-bf requested a review from rkervella March 14, 2024 16:36
@rkervella rkervella merged commit 7465396 into BishopFox:master Mar 14, 2024
5 checks passed
@precurse-bf precurse-bf deleted the mount_linux_rebase branch March 14, 2024 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants