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

mssqlclient.py commands and prompt improvements #1397

Merged
merged 1 commit into from
Feb 16, 2023

Conversation

Mayfly277
Copy link
Contributor

  • Add -show argument to print command queries.
  • Add some commands :
     enum_db                    - enum databases
     enum_links                 - enum linked servers
     enum_impersonate           - check logins that can be impersonate
     enum_logins                - enum login users
     enum_users                 - enum current db users
     enum_owner                 - enum db owner
     exec_as_user {user}        - impersonate with execute as user
     exec_as_login {login}      - impersonate with execute as login
     xp_dirtree {path}          - executes xp_dirtree on the path
     use_link {link}            - linked server to use (set use_link localhost to go back to local or use_link .. to get back one step)
     show_query                 - show query
     mask_query                 - mask query
  • Improve the column size result
  • Change the prompt indicating current login, current user, db in use and linkedserver if you use one.

@Mayfly277 Mayfly277 changed the title mssqlclient.py commands and promt improvements mssqlclient.py commands and prompt improvements Sep 12, 2022
@gabrielg5 gabrielg5 added the high High priority item label Jan 26, 2023
@0xdeaddood
Copy link
Collaborator

Hi @Mayfly277!
Great PR!! Merging...
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
high High priority item
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants