Skip to content

[MSSQL] Adds a download functionality to mssql_shell.py. #3

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Qazeer
Copy link

@Qazeer Qazeer commented Jun 30, 2019

Hi Alamot,

This commit adds a download functionality to mssql_shell.py.

The function uses the certutil utility to base64 encode, in a temporary file in %TEMP%, the file in order to download files with non printable characters. After download, the temporary file is automatically deleted.

The overall process is (very) slow, I would say around 1MB/minute. This is mostly due to the fact that the base64 encoded file content needs to be retrieved through a type.

Tested on the hackthebox machine that originally inspired your script ;)

Best regards,
Qazeer.

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.

1 participant