写个东东用来搞定数据库中的恶意脚本代码
select 
'update ['+s.name + '] set ['+c.name+']=' +'replace(['+c.name+'],''小白'','''')' 
from sysobjects s,syscolumns c,systypes t
where s.type='u' and s.id=c.id
AND OBJECTPROPERTY(s.id,N'IsUserTable')=1
AND c.xusertype=t.xusertype
AND t.name IN('varchar','nvarchar','char','nchar')
union
select 
'update ['+s.name + '] set ['+c.name+']=' +'replace(Cast(['+c.name+'] as varchar(8000)),''小白'','''')' 
from sysobjects s,syscolumns c,systypes t 
where s.type='u' and s.id=c.id
AND OBJECTPROPERTY(s.id,N'IsUserTable')=1 
AND c.xusertype=t.xusertype 
AND t.name IN('text','ntext')

相关文章:

  • 2021-08-10
  • 2022-01-31
  • 2021-12-14
  • 2021-06-01
  • 2021-10-28
  • 2021-09-15
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-07-29
  • 2022-12-23
  • 2021-11-17
  • 2021-11-26
  • 2022-02-03
相关资源
相似解决方案