国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 數(shù)據(jù)庫 > SQL Server > 正文

MSSQL木馬修復(fù),中木馬后的處理方法

2024-08-31 00:44:23
字體:
供稿:網(wǎng)友

復(fù)制代碼 代碼如下:


declare @t varchar(255),@c varchar(255)
declare table_cursor cursor for select a.name,b.name
from sysobjects a,syscolumns b ,systypes c
where a.id=b.id and a.xtype='u' and c.name
in ('char', 'nchar', 'nvarchar', 'varchar','text','ntext'/* --這里如果你的text(ntext)類型沒有超過8000(4000)長(zhǎng)度,才可以使用*/)
declare @str varchar(500),@str2 varchar(500)
set @str='<script src=fasfdasfasf ></script> ' /*這里是你要替換的字符*/
set @str2='' /*替換后的字符*/
open table_cursor
fetch next from table_cursor
into @t,@c while(@@fetch_status=0)
begin exec('update [' + @t + '] set [' + @c + ']=replace(cast([' + @c + '] as varchar(8000)),'''+@str+''','''+ @str2 +''')')

fetch next from table_cursor
into @t,@c end close table_cursor deallocate table_cursor;

發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 忻州市| 昌邑市| 东辽县| 绥中县| 新昌县| 大洼县| 封开县| 阿尔山市| 天等县| 波密县| 大城县| 平乡县| 清涧县| 晋宁县| 绵竹市| 阳信县| 赞皇县| 瑞丽市| 浦县| 仁化县| 杂多县| 长乐市| 班玛县| 安平县| 库伦旗| 仙居县| 那坡县| 鱼台县| 和平县| 阳原县| 平乐县| 鸡西市| 卓尼县| 浠水县| 繁峙县| 湖州市| 温泉县| 竹北市| 乾安县| 邮箱| 贵阳市|