| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 8eefe4b commit b7d2680
3 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -76,10 +76,9 @@ def __xpCmdshellConfigure2000(self, mode): | |||
| 76 | 76 | logger.debug(debugMsg) | |
| 77 | 77 | ||
| 78 | 78 | if mode == 1: | |
| 79 | - cmd = "EXEC master..sp_addextendedproc 'xp_cmdshell', " | ||
| 80 | - cmd += "@dllname='xplog70.dll'" | ||
| 79 | + cmd = getSPQLSnippet(DBMS.MSSQL, "enable_xp_cmdshell_2000", ENABLE=str(mode)) | ||
| 81 | 80 | else: | |
| 82 | - cmd = "EXEC master..sp_dropextendedproc 'xp_cmdshell'" | ||
| 81 | + cmd = getSPQLSnippet(DBMS.MSSQL, "disable_xp_cmdshell_2000", ENABLE=str(mode)) | ||
| 83 | 82 | ||
| 84 | 83 | return cmd | |
| 85 | 84 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1 @@ | |||
| 1 | + EXEC master..sp_dropextendedproc 'xp_cmdshell'; | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1 @@ | |||
| 1 | + EXEC master..sp_addextendedproc 'xp_cmdshell', @dllname='xplog70.dll'; | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments