p0dalirius / smbclient-ng

smbclient-ng, a fast and user friendly way to interact with SMB shares.

Home Page:https://podalirius.net/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[question] file compression and mount capability

jdivincuit opened this issue · comments

Thanks for this great project master poda.
2 features suggestions that I missed the lot in smbclient.py:

  • compression command for file or directories
  • a command to mount the SMB share on the local filesystem (like with mount.cifs).
    example usage: mount C$ /mnt/disk

Hi!

Thank you for the feedback!

I have created an issue and it will be implemented in future versions:

I don't fully understand what you mean by compression command for file or directories. Can you detail it a lot?

Best regards,

Hi, thanks for your answer!
The compression command would allow you to compress files remotely.
This would save time compared with recursive downloading of a large file, in a redteam context having significant network constraints.
Example of use: compress C:\dir\archive.zip C\folder\source

Okay this is what I understood.

I think this is impossible without executing code on the remote machine with psexec / smbexec / atexec etc...