Skip to content

Instantly share code, notes, and snippets.

@azu
Last active October 7, 2023 00:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save azu/cb616a2bd4b6ad7e4170ff26413dbd58 to your computer and use it in GitHub Desktop.
Save azu/cb616a2bd4b6ad7e4170ff26413dbd58 to your computer and use it in GitHub Desktop.
各SQLサーバでOSコマンドを実行する方法

SQLサーバから別のところに侵入するパターンで、SQLサーバ上でOSのコマンドを利用してるケースが増えている。 各SQLサーバでOSコマンドを実行する方法を知りたい。

Type How To Status
SQL Server xp_cmdshell Disable by Default
MySQL system (\!) Enable in Terminal
PostgreSQL COPY Require pg_execute_server_program role

Related

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment